Ok, this has been bugging me for ages. How come I never seem to be
able to bind to ActualHeight?
<Grid x:Name="RadGridPanel"
HorizontalAlignment="Stretch" Margin="0,8,4,0">
<Border x:Name="RadBorder2" BorderThickness="0"
Background="{Binding ElementName=Menu, Path=Background}"
HorizontalAlignment="Stretch" Height="{Binding ElementName=Menu,
Path=ActualHeight}" >
</Border>
<StackPanel x:Name="RadStackPanel"
Style="{StaticResource LinksStackPanelStyle}" Margin="0,8,4,0" >
<telerik:RadMenu x:Name="Menu"
Style="{StaticResource MenuStyle}"
ItemsSource="{StaticResource
MenuItemsSource}"
ItemTemplate="{StaticResource
MenuItemTemplate}"
ItemContainerStyleSelector="{StaticResource MenuItemStyleSelector}" />
<Button x:Name="TheButton" Content="ClickME"
Width="100" />
</StackPanel>
</Grid>
What I want is for the boder height to bind to the Menu's height. It
gets set to 0, so I can only assume that the binding is resolved
before the menu's height is calculated. Shouldn't this work? Maybe the
ActualHeight change does not notify anything bound to it. Anyone know
of a work around for this, because there's so many times I'd love to
be able to bind to something's height or width but if its set to Auto
height then it just doesn't work. Codebehind hacks soon follow. :(
cheers,
Stephen
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight