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
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
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
ddb8f9c7de
Update unit tests to use new default theme URLs.
4 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
Dariusz Komosinski
cca1d4abc4
Fix even more tests.
5 years ago
Yoh Deadfall
741f3458d4
Allowed empty templates
5 years ago
Nikita Tsukanov
61792ce45f
Allow binding to classes with Classes.ClassName
5 years ago
artyom
b7b5eaa702
Add a failing test
5 years ago
Steven Kirk
ad677f0ff4
Added failing test for #4900 .
6 years ago
Andrey Kunchev
cc1051efa3
add failing test for set of base class property
6 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Steven Kirk
8d2af50808
Add failing tests for #3552 .
6 years ago
Steven Kirk
42859fae89
Refactored resources.
Split resource nodes into two types:
- `IResourceHost` represents controls and `Application`
- `IResourceProvider` represents resource dictionaries and styles, these are owned by `IResourceHost`s
Dynamic resources are now always resolved from an `IResourceHost`: if an `IResourceProvider` doesn't have a host then a dynamic resource in the resource provider will not be resolved. Resource providers no longer have a `ResourcesChanged` event, instead they notify their `IResourceHost` owner of a resource change by calling the `NotifyHostedResourcesChanged` method.
6 years ago
Steven Kirk
8e7c0e1c59
Make Transitions a styled property.
This requires that a `<Transitions>` element is used to contain the transitions in XAML and a `new Transitions()` is used when assigning transitions from code.
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
6 years ago
Steven Kirk
ab67200954
Implement finding common base type.
Had to also change the unit test to use controls that all have the `Background` property in a common base type.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Steven Kirk
370590f3e0
Add failing tests for #2838 .
6 years ago
Andrey Kunchev
b1cc2a1d9c
enable valid xamlil test (disabled before because of portable.xaml)
6 years ago
Andrey Kunchev
73be933bd0
add failing test for ControlTemplate can't be added to resources #3145
6 years ago
Andrey Kunchev
97f57c7bec
add test for style resources
6 years ago
Andrey Kunchev
a04d0b7bbb
add failing test for ControlTemplate don't respect TargetType
6 years ago
Steven Kirk
c2f3f3fdf2
Added failing tests for #3323 .
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
7 years ago
Jeremy Koritzinsky
84b4b8c12e
x:DataContextType -> x:DataType to match Xamarin.Forms.
7 years ago
Steven Kirk
0eb7b2d25e
Enable adding event handlers to Gestures events.
Added the `Add*Handler` and `Remove*Handler` events required by XAML in order to use attached event syntax. Added unit test to ensure this works.
7 years ago
Steven Kirk
d7357ec876
Remove ContentControlMixin.
And implement the functionality in the content controls themselves. `ContentControlMixin` was too complex and even with its complexity had bugs (such as in #2821 ). By moving the functionality to the content controls there is some repeated code but it's much more straightforward.
7 years ago
Nikita Tsukanov
766a4d69c8
Fixed escaped attribute values (e. g. StringFormat="\{0\}!")
7 years ago
Nikita Tsukanov
af4c1f06ad
Extra tests for markup extensions
7 years ago
Steven Kirk
a6c9086782
Fix flaky XAML tests.
Make tests that load XAML inherit from `XamlTestBase` which ensures that `Avalonia.Markup` is loaded.
7 years ago
Jeremy Koritzinsky
ccfcbadc2f
Fix failing tests
7 years ago
Nikita Tsukanov
c61644721e
Actually use parent name scope for templates
7 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Jeremy Koritzinsky
e3bc5345ae
Finish initial implementation of compiled bindings. Still some bugs to work out, but we have something that works now.
7 years ago
Steven Kirk
fdd5d7afec
Added failing (skipped) test for #2592 .
7 years ago
Steven Kirk
0225023d53
Added failing tests for #2372 .
7 years ago
Nikita Tsukanov
8ad9a0f675
Compiled property paths
7 years ago