StatusBar.PrepareContainerForItemOverride(DependencyObject, Object) 方法

定义

准备要在 StatusBar 中显示的项。

protected:
 override void PrepareContainerForItemOverride(System::Windows::DependencyObject ^ element, System::Object ^ item);
protected override void PrepareContainerForItemOverride (System.Windows.DependencyObject element, object item);
override this.PrepareContainerForItemOverride : System.Windows.DependencyObject * obj -> unit
Protected Overrides Sub PrepareContainerForItemOverride (element As DependencyObject, item As Object)

参数

element
DependencyObject

要在 StatusBar 中显示的项。

item
Object

要显示的项的内容。

注解

如果为 element a Separator,则此方法设置其 Style

适用于