I have StackPanel in the third column of Grid "MainGrid". It's(third column) width set to "2*".
I want to hide StackPanel using margin and then use slide animation to show it.
So i need to set Margin of StackPanel to Column[2] Width, but how can i get it? I'm trying this:
Margin="{Binding ElementName=MainGrid, Path=ColumnDefinitions[2].ActualWidth, Converter={StaticResource marginConverter}}
So, i add breakpoint to converter in code-behind and it always get 0.
I've tried to use MainGrid.ActualWidth insted of Column[2] ActualWidth and it send to converter at first zero, then it's actual width.