开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 2652|回复: 0

WPF 下 PdfViewer例子 移去OpenFromWeb指令不好使

[复制链接]

0

精华

3

贡献

21

赞扬

帖子
57
软币
458
在线时间
41 小时
注册时间
2015-8-24
发表于 2015-8-31 20:16:51 | 显示全部楼层 |阅读模式
例子中
<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>


回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-23 19:06

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表