I have a panel that's width can be resized during runtime
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="770*"/>
</Grid.ColumnDefinitions>
<panels:NavigationPanel x:Name="cmBar" Margin="2,2,0,2" HorizontalAlignment="Left" Width="220"/>
<panels:DetailAreaPanel x:Name="detailGrid" Margin="224,2,2,2" />
</Grid>
When the program is closed i want to save the new width in the registry. So the program will load to the same size next time its opened. I have everything working except the width, unless i hardcode the new width. So i would assume that my save is wrong.
all[5] = cmBar.ActualWidth.ToString();
all[]
is then wrote into the registry. No matter how the panel is resized cmBar.ActualWidth is always 220. Any ideas?