ContentElement.GetUIParentCore 方法

定义

在派生类中重写时,如果不存在可视父级,则返回此元素的替代用户界面 (UI) 父级。

protected public:
 virtual System::Windows::DependencyObject ^ GetUIParentCore();
protected internal virtual System.Windows.DependencyObject GetUIParentCore();
abstract member GetUIParentCore : unit -> System.Windows.DependencyObject
override this.GetUIParentCore : unit -> System.Windows.DependencyObject
Protected Friend Overridable Function GetUIParentCore () As DependencyObject

返回

如果派生类的实现具有与报表的备用父连接,则为对象。

注解

此方法的默认虚拟实现返回 nullFrameworkContentElement 提供实际实现。

如果元素创建备用父结构,则替代父级用于事件路由,以便其事件与将可视化树路由到标准父级的标准模式或预览路由策略中的向下路由方式相差。

适用于