Max Katz
41d31d8857
Add thickness test as well
4 years ago
Max Katz
6520722e54
Attempt to not deferr value types
4 years ago
Max Katz
705e9065a3
Add more tests for lazy resources
4 years ago
Max Katz
1731f88822
Rename Default to Simple
4 years ago
Max Katz
33931e99bb
Fix unit tests
4 years ago
Benedikt Stebner
fdb19912b8
Fix tests
4 years ago
Max Katz
34f8f3d556
Fix DataType set on Binding extension + add tests
4 years ago
Max Katz
2619ab1759
Fix compiled binding with TemplatedParent relative source
4 years ago
Max Katz
142b878984
Fix special case of compiled binding with Path child
4 years ago
Max Katz
042fd47c1e
Fix ElementName binding inside of control template
4 years ago
Max Katz
a1804e2e16
Add tests for explicitly implemented interface property binding
4 years ago
Benedikt Stebner
1408e52199
Add IAddChild support
4 years ago
Steven Kirk
5c6eeed4fa
Initial support for deferred resources in XAML compiler.
4 years ago
Steven Kirk
d21e634ab3
Added support for implicit themes.
If no `Theme` property is provided, try to look up a resource keyed with the control's `StyleKey`.
4 years ago
Steven Kirk
8c61f25188
Promote theme to LocalValue if applied from style.
4 years ago
Steven Kirk
fc3c036b02
Move Theme to StyledElement.
The WPF equivalent (`Style`) is in `FrameworkElement` so it would make sense. Will also make stuff a lot easier and removes the need for an `IThemed` interface.
4 years ago
Steven Kirk
dee353bb96
Support ControlTheme in XAML compiler.
4 years ago
Steven Kirk
902703fbed
Allow nested styles inline in parent style XAML.
Removes the need to enclose nested styles in a `<Style.Children>` element in XAML.
4 years ago
Max Katz
bc2179b337
Add XDataType_Should_Be_Ignored_If_DataType_Has_Non_Standard_Name test
4 years ago
Max Katz
1d9645f01f
Validate DataTemplates
4 years ago
Max Katz
d2af5dbcac
Implicitly map x:DataType to a DataType on a DataTemplate.
4 years ago
Max Katz
b567fcebf5
Rename TemplateDataTypeAttribute to DataTypeAttribute
4 years ago
Max Katz
f1a2716858
Inherit DataType from template without hardcoding on specific DataTemplate implementation
4 years ago
Steven Kirk
556adb4bc7
Use ^ as nesting selector.
`&` causes problems in xml files.
4 years ago
Steven Kirk
646ce23bb4
Initial XAML implementation of nested styles.
4 years ago
Steven Kirk
fb0da85ad3
Merge core libraries. ( #5831 )
* Merge core libraries.
Everything below `Avalonia.Controls` into `Avalonia.Base`.
* Move new files to correct place.
* Removed unused dirs/projects,
* Removed outdated references from theme assemblies.
* Merge unit tests to match new assembly layout.
* Fixup test namespaces.
* Make directory match namespace.
* Move files to match namespace.
* Move files to match namespace.
* Fix up incorrect namespace.
`Avalonia.Visuals.Media.Imaging` -> `Avalonia.Media.Imaging`.
* Fix resource URL.
* Removed outdated dependencies.
* Added missing project reference.
* Update test namespaces.
* Fix merge error.
* Fix merge errors.
* Fix bad merge in WindowsInteropTest.csproj.
* Fix up merge errors in csprojs.
* Remove merged tests from nuke.
* Fix up namespace.
* Fix compile error.
* Fix failing tests.
Now that more unit tests are present in Avalonia.Base.UnitTests, general `AvaloniaObject` properties are getting registered. Ignore those.
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
4 years ago
Steven Kirk
f8706278a8
Make OnPropertyChanged non-generic.
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
Dariusz Komosinski
d9909ab527
Cleanup test.
4 years ago
Dariusz Komosinski
0d32823c59
Fixed compiled self binding not working from setters. Add extra tests for both reflection and compiled bindings.
4 years ago
Benedikt Stebner
95769ff007
Add TextBlock inlines support
4 years ago
Steven Kirk
beaf956af7
Use TemplatedParent priority in ControlTemplates.
4 years ago
Steven Kirk
f7ff0a0289
More failing tests for ControlTemplate resources.
4 years ago
Steven Kirk
351be2f4b2
Use style priority for attached values in templates.
4 years ago
Steven Kirk
a26059630f
Add failing test for control template value priority.
Add tests to check that template values are assigned with Style priority and move other XAML control template tests alongside it in a new test class.
4 years ago
Steven Kirk
ddb8f9c7de
Update unit tests to use new default theme URLs.
4 years ago
Jeremy Koritzinsky
1d5e262487
Use a dynamically-emitted trampoline method so we can handle the "execute method has a return type" case cleanly.
This also provides a location for us to add any other trampolines that we need to emit.
4 years ago
Jeremy Koritzinsky
cdc8c9f078
Add some tests
4 years ago
Jeremy Koritzinsky
0576baf5b7
Add tests for full-fidelity method->delegate conversion in compiled bindings.
4 years ago
Jeremy Koritzinsky
7624e14bcd
Support RelativeSource-based bindings without requiring an x:DataType property.
Only require an x:DataType property when we actually use it.
4 years ago
Steven Kirk
5153cc4e12
Remove unneeded dependency.
5 years ago
Steven Kirk
721547fcb2
Update samples/tests to net6.0.
And no longer target net461 in unit tests as we've not had a test pass in net core and fail in netfx in years, and it bloats our CI time; EXCEPT Avalonia.Markup.Xaml.UnitTests where we're still testing against net4.7 as MSIL generation is runtime-sensitive.
5 years ago
Dan Walmsley
51ab3266dd
add a unit test.
5 years ago
Max Katz
f276c4ed8b
Changes after review
5 years ago
Max Katz
031e8ac2f0
Complete
5 years ago
Max Katz
e5ca5c38e8
Update IChildIndexProvider interface with ChildIndexChanged and implement in on items controls
5 years ago
Max Katz
69fb1c056f
FIrst version of nth-child
5 years ago
Nikita Tsukanov
5ede6f9ae2
Added support for non-control templates in XAML
5 years ago
Giuseppe Lippolis
df5250e155
ref(tests): warning CS0067 The event 'TrackingResourceProvider.OwnerChanged' is never used
5 years ago
Steven Kirk
911262bf3f
Correctly handle long-form bindings with empty path.
5 years ago