RibbonSeparator.OnVisualParentChanged 方法

此成员重写 FrameworkElement.OnVisualParentChanged(DependencyObject),且该主题可能包括更完整的文档。

当此元素的父级在可视化树中更改时调用。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Protected Overrides Sub OnVisualParentChanged ( _
    oldParent As DependencyObject _
)
protected override void OnVisualParentChanged(
    DependencyObject oldParent
)
protected:
virtual void OnVisualParentChanged(
    DependencyObject^ oldParent
) override
abstract OnVisualParentChanged : 
        oldParent:DependencyObject -> unit 
override OnVisualParentChanged : 
        oldParent:DependencyObject -> unit 
protected override function OnVisualParentChanged(
    oldParent : DependencyObject
)

参数

  • oldParent
    类型:System.Windows.DependencyObject
    旧父级,在可视树中之前没有父级时,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

RibbonSeparator 类

Microsoft.Windows.Controls.Ribbon 命名空间