ActualWidth used in converter is 0 instead of actual width
Posted: 24 Dec 2021, 18:09
Hi,
This was working fine with 3.0.10, but seems broken with 3.1.2. The code works also fine in Blend, so I assume this is a bug in Noesis introduced between 3.0.10 and now.
I have some decorator used to later get the width of some elements.
Then binding to 'ActualWidth' with a converter to get the negative value, to move the object to the left of the screen. When I put a breakpoint in the Convert method of the converter, the received value is 0.
I would love to find a workaround until this gets fixed, else I'll have to revert to 3.0.xx
Thanks
This was working fine with 3.0.10, but seems broken with 3.1.2. The code works also fine in Blend, so I assume this is a bug in Noesis introduced between 3.0.10 and now.
I have some decorator used to later get the width of some elements.
Code: Select all
<Decorator Grid.ColumnSpan="5" x:Name="RefWidth"></Decorator>
Code: Select all
<Grid.Resources>
<Storyboard x:Key="StoryBoardEmailInfo">
<DoubleAnimation Storyboard.TargetName="GridCreateAccount"
Storyboard.TargetProperty="RenderTransform.(TranslateTransform.X)"
To="{Binding ActualWidth, ElementName=RefWidth, Converter={StaticResource NegativeConverter}}" Duration="0:0:0.5">
<DoubleAnimation.EasingFunction>
<PowerEase EasingMode="EaseIn"/>
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</Grid.Resources>
Thanks