开发者

ActualHeight binding does not update

I am trying to set up a binding to the ActualHeight of a FrameworkElement. It only seems to update once, but never updates after that. I tested this in a simple silverlight application with this markup, and it doesn't update when the browser window is resized. If I hook the LayoutUpdated, you can see that the ActualHeight is changing, but it is not updating the binding.

<Grid x:Name="LayoutRoot" Background="White">
    <TextBlock Text="{Binding ActualHeight, ElementName=LayoutRoot}" />
</Grid>开发者_StackOverflow;

Shouldn't I be able to bind to ActualHeight?


This is a known issue with Silverlight. See this post for more information. You'd need to use a solution like I describe here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜