RibbonApplicationSplitMenuItem.ShouldApplyItemContainerStyle 方法

返回一个值,该值指示是否将来自 ItemContainerStyleItemContainerStyleSelector 属性的样式应用到指定项的容器元素。

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

语法

声明
Protected Overrides Function ShouldApplyItemContainerStyle ( _
    container As DependencyObject, _
    item As Object _
) As Boolean
protected override bool ShouldApplyItemContainerStyle(
    DependencyObject container,
    Object item
)
protected:
virtual bool ShouldApplyItemContainerStyle(
    DependencyObject^ container, 
    Object^ item
) override
abstract ShouldApplyItemContainerStyle : 
        container:DependencyObject * 
        item:Object -> bool 
override ShouldApplyItemContainerStyle : 
        container:DependencyObject * 
        item:Object -> bool 
protected override function ShouldApplyItemContainerStyle(
    container : DependencyObject, 
    item : Object
) : boolean

参数

返回值

类型:System.Boolean
如果 container 为 RibbonApplicationSplitMenuItemRibbonSeparatorRibbonGallery,则为 false;否则为基实现返回的值。

.NET Framework 安全性

请参见

参考

RibbonApplicationSplitMenuItem 类

Microsoft.Windows.Controls.Ribbon 命名空间