- 积分
- 27
- 在线时间
- 42 小时
- 主题
- 1
- 注册时间
- 2015-8-24
- 帖子
- 58
- 最后登录
- 2024-8-27
- 帖子
- 58
- 软币
- 469
- 在线时间
- 42 小时
- 注册时间
- 2015-8-24
|
例子中
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.OpenFromWeb}"/>
不是把OpenFromWeb项移去,而是Open项都移去了
<Window xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf"
x:Class="PdfViewerCustomization.MainWindow"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxpdf:PdfViewerControl CommandBarStyle="Ribbon">
<dxpdf:PdfViewerControl.CommandProvider>
<dxpdf:PdfCommandProvider>
<dxpdf:PdfCommandProvider.RibbonActions>
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.OpenFromWeb}"/>
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.Find}"/>
<dxb:RemoveBarItemAndLinkAction ItemName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.SaveAs}"/>
<dxr:RemoveRibbonPageGroupAction PageName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.MainRibbonPage}" GroupName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.ZoomRibbonGroup}"/>
</dxpdf:PdfCommandProvider.RibbonActions>
</dxpdf:PdfCommandProvider>
</dxpdf:PdfViewerControl.CommandProvider>
</dxpdf:PdfViewerControl>
</Grid>
</Window>
|
|