-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.xaml
39 lines (37 loc) · 2.54 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<Window x:Class="CustomizeReportDesignerToolbar.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dxpbars="http://schemas.devexpress.com/winfx/2008/xaml/printing/bars"
xmlns:dxrud="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesigner"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
Height="350" Width="525" Loaded="Window_Loaded">
<dxrud:ReportDesigner x:Name="reportDesigner">
<dxrud:ReportDesigner.RibbonCustomizationActions>
<dxb:RemoveAction ElementName="{x:Static dxrud:DefaultBarItemNames.SaveAs}" />
<dxb:RemoveAction ContainerName="{x:Static dxrud:DefaultBarItemNames.DesignerPage}"
ElementName="{x:Static dxrud:DefaultBarItemNames.FontGroup}" />
<dxb:RemoveAction ContainerName="{x:Static dxrud:DefaultBarItemNames.PreviewPage}"
ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.FileGroup}" />
<dxb:InsertAction ContainerName="{x:Static dxrud:DefaultBarItemNames.ReportGroup}">
<dxb:InsertAction.Element>
<dxb:BarButtonItem LargeGlyph="{dx:SvgImageSource Uri='/CustomizeReportDesignerToolbar;component/Images/Close.svg'}"
Content="Close Document" ItemClick="CloseDocumentButton_ItemClick"/>
</dxb:InsertAction.Element>
</dxb:InsertAction>
<dxb:InsertAction ContainerName="{x:Static dxrud:DefaultBarItemNames.DesignerHomePage}">
<dxb:InsertAction.Element>
<dxr:RibbonPageGroup Caption="Help" Name="CustomCommandsGroup" />
</dxb:InsertAction.Element>
</dxb:InsertAction>
<dxb:InsertAction ContainerName="CustomCommandsGroup">
<dxb:InsertAction.Element>
<dxb:BarButtonItem LargeGlyph="{dx:SvgImageSource Uri='/CustomizeReportDesignerToolbar;component/Images/About.svg'}"
Content="About" ItemClick="AboutButton_ItemClick"/>
</dxb:InsertAction.Element>
</dxb:InsertAction>
</dxrud:ReportDesigner.RibbonCustomizationActions>
</dxrud:ReportDesigner>
</Window>