【问题标题】:ActualHeight binding does not updateActualHeight 绑定不更新
【发布时间】:2011-05-10 17:00:38
【问题描述】:

我正在尝试设置与FrameworkElementActualHeight 的绑定。它似乎只更新一次,但之后再也不更新。我用这个标记在一个简单的 silverlight 应用程序中测试了这个,当浏览器窗口调整大小时它不会更新。如果我钩住LayoutUpdated,你可以看到ActualHeight正在改变,但它并没有更新绑定。

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

难道我不能绑定到ActualHeight吗?

【问题讨论】:

    标签: silverlight binding silverlight-4.0 actualheight


    【解决方案1】:

    这是 Silverlight 的一个已知问题。请参阅this post 了解更多信息。您需要使用像我描述的here 这样的解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-30
      • 2011-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多