获取或设置应用程序菜单辅助窗格的内容。
命名空间: Microsoft.Windows.Controls.Ribbon
程序集: RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)
语法
声明
Public Property AuxiliaryPaneContent As Object
Get
Set
public Object AuxiliaryPaneContent { get; set; }
public:
property Object^ AuxiliaryPaneContent {
Object^ get ();
void set (Object^ value);
}
member AuxiliaryPaneContent : Object with get, set
function get AuxiliaryPaneContent () : Object
function set AuxiliaryPaneContent (value : Object)
属性值
类型:System.Object
“应用程序菜单”辅助窗格的内容。注册的默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。有关可以影响值的因素的更多信息,请参见 依赖项属性值优先级。
依赖项属性信息
标识符字段 |
|
设置为 true 的元数据属性 |
无 |
备注
“应用程序菜单”中有辅助窗格,可以容纳更多的内容。 AuxiliaryPaneContent 属性承载一个 RibbonGallery,通常用于显示最新文档列表。
下图显示了功能区控件的应用程序菜单。 辅助窗格中承载了最近使用文档的列表。
示例
以下示例显示了之前所示的“应用程序菜单”辅助窗格的内容。
<ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<ribbon:RibbonGallery CanUserFilter="False"
ScrollViewer.VerticalScrollBarVisibility="Auto">
<ribbon:RibbonGalleryCategory Header="Recent Documents"
Background="Transparent"
ItemsSource="{DynamicResource MostRecentFiles}">
<ribbon:RibbonGalleryCategory.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" IsItemsHost="True"/>
</ItemsPanelTemplate>
</ribbon:RibbonGalleryCategory.ItemsPanel>
</ribbon:RibbonGalleryCategory>
</ribbon:RibbonGallery>
</ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。