csharp System.Windows.FrameworkElement.Parent类(方法)实例源码

下面列出了csharp System.Windows.FrameworkElement.Parent 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Window   
private void OnUIReady(object sender, System.EventArgs e)
{
    LinePane.Width = ((StackPanel)LinePane.Parent).ActualWidth;
    LinePane.Height = ((StackPanel)LinePane.Parent).ActualHeight;
    DesignerPane.MouseLeave += new System.Windows.Input.MouseEventHandler(DesignerPane_MouseLeave);
    this.SizeChanged += new SizeChangedEventHandler(Window1_SizeChanged);
}


问题


面经


文章

微信
公众号

扫码关注公众号