我想在我自己的应用程序中使用类似 MS Office 2007(及更高版本)的功能区栏。任何人都可以向我提供有关如何执行此操作的链接或参考吗?
编辑: 实际上我正在使用微软的功能区控制库,但找不到像 MS Word 这样添加状态栏的方法。
也许给这个图书馆一个机会?
编辑:实际上,显然微软已经发布了他们自己的.
我找到了StatusBar
一种很好的展示方式,
我希望它可以帮助别人......
<DockPanel LastChildFill="True">
<ribbon:Ribbon DockPanel.Dock="Top">
<ribbon:RibbonTab Label="Banking">
<ribbon:RibbonGroup>
<ribbon:RibbonButton Command="me:AppCommands.Cut"/>
<ribbon:RibbonButton Command="me:AppCommands.Copy"/>
<ribbon:RibbonButton Command="me:AppCommands.Paste"/>
</ribbon:RibbonGroup>
<ribbon:RibbonGroup>
<ribbon:RibbonButton Command="me:AppCommands.AddNew"/>
<ribbon:RibbonButton Command="me:AppCommands.Clear" />
<ribbon:RibbonButton Command="me:AppCommands.Delete"/>
</ribbon:RibbonGroup>
<ribbon:RibbonGroup>
<ribbon:RibbonButton Command="me:AppCommands.DownloadStatements"/>
<ribbon:RibbonButton Command="me:AppCommands.DownloadCreditCards"/>
<ribbon:RibbonButton Command="me:AppCommands.Transfer"/>
</ribbon:RibbonGroup>
</ribbon:RibbonTab>
</ribbon:Ribbon>
<StatusBar x:Name="StatusBar"
VerticalAlignment="Bottom"
DockPanel.Dock="Bottom">
<StatusBar.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="4*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</StatusBar.ItemsPanel>
<StatusBarItem Margin="0,-3,0,-2" BorderThickness="1">
<TextBlock x:Name="statusBarText">www.247moneymakingschemes.blogspot.com</TextBlock>
</StatusBarItem>
<StatusBarItem Grid.Column="1">
<ProgressBar Width="80"
Height="18"
Value="30" />
</StatusBarItem>
<StatusBarItem Grid.Column="3">
<TextBlock>Go!</TextBlock>
</StatusBarItem>
</StatusBar>
<TextBlock DockPanel.Dock="Top" Content="Put your main content/items control here as last child in dock panel" />
</DockPanel>
干杯..