/
MainWindow.xaml
26 lines (26 loc) · 1.38 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
<Window x:Class="HideExportFormats.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"
xmlns:printing="clr-namespace:DevExpress.XtraPrinting;assembly=DevExpress.Printing.v22.2.Core"
xmlns:local="clr-namespace:HideExportFormats"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="850">
<Window.Resources>
<DataTemplate x:Key="dayNameTemplate">
<dxe:TextEdit IsPrintingMode="True" Text="{Binding Path=Content}" />
</DataTemplate>
</Window.Resources>
<Grid>
<dxp:DocumentPreviewControl Name="preview" CommandBarStyle="Bars">
<dxp:DocumentPreviewControl.HiddenExportFormats>
<printing:ExportFormat>Htm</printing:ExportFormat>
<printing:ExportFormat>Mht</printing:ExportFormat>
<printing:ExportFormat>Csv</printing:ExportFormat>
</dxp:DocumentPreviewControl.HiddenExportFormats>
</dxp:DocumentPreviewControl>
</Grid>
</Window>