Open RomanSoloweow opened 2 years ago
I can't set a value for a property field.
StyledProperty in "MyControl"
public static readonly StyledProperty<MyClass?> MyClassProperty = AvaloniaProperty.Register<MyControl, MyClass?>(nameof(MyClass)); public MyClass MyClass { get => this.GetValue<MyClass>(MyClassProperty ); set => SetValue(MyClassProperty , value); }
Style:
<Style Selector="controls|MyControl"> <Setter Property="MyClass.MyValue" Value="123"/> </Style>
MyValue in MyClass is also StyledProperty
Won't it conflict with attached properties syntax? How it works in WPF? I don't really remember.
I can't set a value for a property field.
StyledProperty in "MyControl"
Style:
MyValue in MyClass is also StyledProperty