C# Ribbon应用程序菜单中的最新文档是按钮吗?
我试图复制写字板功能区控件的样式和功能 在C# Ribbon应用程序菜单中的最新文档是按钮吗?,c#,wpf,ribbon-control,C#,Wpf,Ribbon Control,我试图复制写字板功能区控件的样式和功能 在RibbonApplicationMenu中,有一个MRU列表,显示最近文档的文件名。当我点击文件名时,它会有样式变化并打开文档 存放文件名“test1”的控件是什么?是缎带扣吗?列表框?彩带盒?有人知道吗 这取决于你想在该区域内持有什么 试试我发布的这个代码。希望它能解决问题 <Ribbon:Ribbon Grid.Row="0"> <Ribbon:Ribbon.ApplicationMenu>
RibbonApplicationMenu
中,有一个MRU列表,显示最近文档的文件名。当我点击文件名时,它会有样式变化并打开文档
存放文件名“test1”的控件是什么?是缎带扣吗?列表框?彩带盒?有人知道吗
这取决于你想在该区域内持有什么 试试我发布的这个代码。希望它能解决问题
<Ribbon:Ribbon Grid.Row="0">
<Ribbon:Ribbon.ApplicationMenu>
<Ribbon:RibbonApplicationMenu>
<Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<Grid MinHeight="500">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="DarkBlue" BorderThickness="0,0,0,1">
<StackPanel
Orientation="Vertical">
<Label Foreground="DarkBlue" HorizontalAlignment="Left" VerticalAlignment="Center" HorizontalContentAlignment="Left"
VerticalContentAlignment="Center" Content="Hello World" />
</StackPanel>
</Border>
<ListBox Grid.Row="1">
<ListBoxItem>List Box Item 1</ListBoxItem>
<ListBoxItem>List Box Item 2</ListBoxItem>
<ListBoxItem>List Box Item 3</ListBoxItem>
<ListBoxItem>List Box Item 4</ListBoxItem>
</ListBox>
</Grid>
</Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
</Ribbon:RibbonApplicationMenu>
</Ribbon:Ribbon.ApplicationMenu>
</Ribbon:Ribbon>
列表框项目1
列表框项目2
列表框项目3
列表框项目4
这取决于您在该区域内想要持有的任何物品
试试我发布的这个代码。希望它能解决问题
<Ribbon:Ribbon Grid.Row="0">
<Ribbon:Ribbon.ApplicationMenu>
<Ribbon:RibbonApplicationMenu>
<Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<Grid MinHeight="500">
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="DarkBlue" BorderThickness="0,0,0,1">
<StackPanel
Orientation="Vertical">
<Label Foreground="DarkBlue" HorizontalAlignment="Left" VerticalAlignment="Center" HorizontalContentAlignment="Left"
VerticalContentAlignment="Center" Content="Hello World" />
</StackPanel>
</Border>
<ListBox Grid.Row="1">
<ListBoxItem>List Box Item 1</ListBoxItem>
<ListBoxItem>List Box Item 2</ListBoxItem>
<ListBoxItem>List Box Item 3</ListBoxItem>
<ListBoxItem>List Box Item 4</ListBoxItem>
</ListBox>
</Grid>
</Ribbon:RibbonApplicationMenu.AuxiliaryPaneContent>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
<Ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon" ImageSource="Images\LargeIcon.png"/>
</Ribbon:RibbonApplicationMenu>
</Ribbon:Ribbon.ApplicationMenu>
</Ribbon:Ribbon>
列表框项目1
列表框项目2
列表框项目3
列表框项目4
谢谢。但它的内部是一个RibbonControl,因为它继承了RibbonControl样式(黄色背景等),所以它不是一个列表框,所以我关心的是.NET中可用的控件类型。或者这是我必须从头开始写的东西。你可以浏览Ribbon控件,它的源代码可以在thank You上找到。但它的内部是一个RibbonControl,因为它继承了RibbonControl样式(黄色背景等),所以它不是一个列表框,所以我关心的是.NET中可用的控件类型。或者这是我必须从头开始写的东西。你可以浏览Ribbon控件,它的源代码在