Steven Kirk
0cb590e03b
Remove now-unnecessary casts.
3 years ago
Giuseppe Lippolis
20971097ca
test: Binding StringFormat without curly braces
3 years ago
Giuseppe Lippolis
cf2d107a19
test: fix test CompiledBinding Binding Command DependsOn
3 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
3 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
Steven Kirk
ba7e8a20b5
Added ItemsControl.ItemsSource.
`ItemsControl` now works more like WPF, in that there are separate `Items` and `ItemsSource` properties. For backwards compatibility `Items` can still be set, though the setter is deprecated. `Items` needed to be changed from `IEnumerable` to `IList` though.
3 years ago
Max Katz
29d92f75dc
Fix Relative Source with {x:Type} bindings
3 years ago
Max Katz
e9a01c6c21
Update naming
3 years ago
Max Katz
d8d2240ecb
Implement support for DataTypeInheritFromAttribute
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Max Katz
4460de529e
Implement multiple documents loading and transforming in AvaloniaRuntimeXamlLoader
3 years ago
Steven Kirk
1a338ac087
Remove IStyler and make style apply internal.
- Removes the `IStyler` service and the `Styler` implementation
- Moves the logic for applying styles and control themes into `StyledElement`
- Removes the style `TryAttach` method from the public API
- Removes style caching for now - this will need to be added back
3 years ago
Max Katz
c111b235f7
Fix static property getter/setter
3 years ago
Max Katz
7b00f34df8
Fix template parent compiled bindings with "!" in the beginning
3 years ago
Max Katz
bdd588fef8
Also check for previous XamlIlTypeSelector
3 years ago
Max Katz
ddeb27e0a3
CompiledBinding resolve template type from selector
3 years ago
Max Katz
5553958238
Remove RuntimeHostConfigurationOption
3 years ago
Giuseppe Lippolis
6213676115
fix: Address CA1822 rule
3 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
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
b567fcebf5
Rename TemplateDataTypeAttribute to DataTypeAttribute
4 years ago
Max Katz
f1a2716858
Inherit DataType from template without hardcoding on specific DataTemplate implementation
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
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
911262bf3f
Correctly handle long-form bindings with empty path.
5 years ago
Steven Kirk
551380e71d
Added failing test for #4392 .
5 years ago
Nikita Tsukanov
b229acf8dc
Don't use the concrete type in tests
5 years ago
Andrey Kunchev
f9de2a9c82
add more tests for CompiledBinding Source with StaticResource
5 years ago
Andrey Kunchev
80a87d7aa3
add failing tests for CompiledBidning with Source set to StaticResource and x:Static
5 years ago
Andrey Kunchev
bf2dfff8f6
add test for casting after indexer
5 years ago
Andrey Kunchev
ebe1af51a9
modify tests to c# style casting in binding path
5 years ago
Andrey Kunchev
fa754bcaa2
add test for converter with parameter in compiled binding
5 years ago
Andrey Kunchev
9633300e5d
add few more tests for cast in binding path
5 years ago
Andrey Kunchev
df95ba630d
add test for $parent as it look like not working for compiled binding
5 years ago
Andrey Kunchev
604a8b635f
add some tests for cast in path expression
5 years ago
Nikita Tsukanov
d355007c57
Extracted runtime XAML loader to a separate package
6 years ago
Jeremy Koritzinsky
5fb7fe3c32
Fix Discovering properties and indexers on parent interfaces of an interface type.
Fixes #4234
6 years ago
Jeremy Koritzinsky
f9993e8980
Rename BindingExtension->ReflectionBindingExtension.
Implement x:CompileBindings directive to toggle between transforming Binding->ReflectionBindingExtension and Binding->CompiledBindingExtension.
Expose a property on AvaloniaXamlIlCompiler to set the default transformation.
7 years ago
Jeremy Koritzinsky
5e5e7e22ae
Support synthetic Source property.
7 years ago
Jeremy Koritzinsky
c0c1ccb544
Enable transforming old-style RelativeSource/ElementName properties in CompiledBindings to element path nodes during XamlIl compilation.
7 years ago
Jeremy Koritzinsky
70ae77e797
Fix ElementName bindings.
7 years ago
Jeremy Koritzinsky
d89f5d019b
Fix assigning binding paths via the property.
7 years ago