Often in WPF we need to cast property to specific type to be able to access further properties in the path, e.g. from some answer:
Storyboard.TargetProperty="(Ellipse.RenderTransform).(TranslateTransform.X)"
Here we cast Ellipse.RenderTransform
to TranslateTransform
first, so that we can specify X
as a target property.
How can I do the same in Avalonia to target e.g. control's Effect
property?
Here is what I want:
<Grid><Grid.Effect><BlurEffect Radius="0"/> <!-- I want to access Radius --></Grid.Effect><Grid.Transitions><Transitions><DoubleTransition Property="(Grid.Effect).(BlurEffect.Radius)" Duration="1"/> <!-- AVLN:0004 - Internal compiler error while transforming node XamlX.Ast.XamlAstXamlPropertyValueNode: Avalonia.Data.Core.ExpressionParseException: Expected end of expression. --></Transitions></Grid.Transitions></Grid>