190 lines
11 KiB
XML
190 lines
11 KiB
XML
<Grid x:Class="PDFEditorV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:OPTIMIZER="clr-namespace:EgtBEAMWALL.Optimizer"
|
|
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf">
|
|
|
|
<Grid.Resources>
|
|
<OPTIMIZER:ColumnNameConverter x:Key="ColumnNameConverter"/>
|
|
</Grid.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox Header="PDF Preview"
|
|
Style="{StaticResource PDFPreview_GroupBox}">
|
|
<StackPanel Style="{StaticResource PDFList_StackPanel}">
|
|
<Button ToolTip="PDF Viewer - Preview"
|
|
Command="{Binding CreatePreviewVis_Command}"
|
|
Style="{StaticResource PDFPanel_Button}">
|
|
<Image Source="{StaticResource PDFEditor_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<Button ToolTip="PDF Viewer - Optimizer"
|
|
Command="{Binding CreatePreviewOtt_Command}"
|
|
Style="{StaticResource PDFPanel_Button}">
|
|
<Image Source="{StaticResource PDFEditor_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<Button ToolTip="Close PDF Viewer"
|
|
Command="{Binding ClosePreview_Command}"
|
|
Style="{StaticResource Close_Button}">
|
|
<Image Source="{StaticResource Delete_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<ScrollViewer Grid.Row="1"
|
|
Style="{StaticResource PDF_ScrollViewer}">
|
|
<ItemsControl ItemsSource="{Binding ExpanderList}"
|
|
Style="{StaticResource ExpanderList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource PDF_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Expander Visibility="{Binding ExpanderVisibilty}"
|
|
Style="{StaticResource PDF_Expander}">
|
|
<Expander.Header>
|
|
<TextBlock Text="{Binding sNameCategory}"
|
|
Style="{StaticResource Category_TextBlock}"/>
|
|
</Expander.Header>
|
|
<ItemsControl ItemsSource="{Binding ExpanderElementList}"
|
|
Style="{StaticResource ExpanderElementList_ItemsControl}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Style="{StaticResource PDF_StackPanel}"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.Resources>
|
|
<DataTemplate DataType="{x:Type OPTIMIZER:ExpanderElement}">
|
|
<StackPanel Style="{StaticResource ExpanderElemen_StackPanel}">
|
|
<CheckBox IsChecked="{Binding bParameter_IsChecked, UpdateSourceTrigger=PropertyChanged}"
|
|
Style="{StaticResource Option_CheckBox}"/>
|
|
<TextBlock Text="{Binding sNameParameter}"
|
|
Style="{StaticResource Option_TextBlock}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
<DataTemplate DataType="{x:Type OPTIMIZER:ExpanderTable}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<ListBox ItemsSource="{Binding RawPartColumns}"
|
|
SelectedItem="{Binding SelColumns}"
|
|
Style="{StaticResource ListBox_PDF}"
|
|
ItemContainerStyle="{StaticResource AlternationIndex_ListBoxItem}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Style="{StaticResource PDFEditor_StackPanel}">
|
|
<CheckBox IsChecked="{Binding IsVisible}"
|
|
Style="{StaticResource Option_CheckBox}"/>
|
|
<TextBlock Text="{Binding Key, Converter={StaticResource ColumnNameConverter}}"
|
|
Style="{StaticResource Option_TextBlock}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
<UniformGrid Grid.Row="1"
|
|
Rows="2"
|
|
Visibility="{Binding vRawPartVisibility}">
|
|
<StackPanel Style="{StaticResource ExpanderElemen_StackPanel}">
|
|
<CheckBox IsChecked="{Binding bSection_IsChecked}"
|
|
Style="{StaticResource Option_CheckBox}"/>
|
|
<TextBlock Text="{Binding Section_Msg}"
|
|
Style="{StaticResource Option_TextBlock}"/>
|
|
</StackPanel>
|
|
<StackPanel Style="{StaticResource ExpanderElemen_StackPanel}">
|
|
<CheckBox IsChecked="{Binding bImage_IsChecked}"
|
|
Style="{StaticResource Option_CheckBox}"/>
|
|
<TextBlock Text="{Binding Image_Msg}"
|
|
Style="{StaticResource Option_TextBlock}"/>
|
|
</StackPanel>
|
|
</UniformGrid>
|
|
<StackPanel Grid.Column="1"
|
|
Style="{StaticResource Button_StackPanel}">
|
|
<Button Command="{Binding MoveUpOrder_Command}"
|
|
Style="{StaticResource LeftPanel_Button}">
|
|
<Image Source="{StaticResource MoveUpPDF_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
<Button Command="{Binding MoveDownOrder_Command}"
|
|
Style="{StaticResource LeftPanel_Button}">
|
|
<Image Source="{StaticResource MoveDownPDF_Image}"
|
|
Style="{StaticResource BTLDataWnd_Image}"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
</Expander>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
<GroupBox Grid.Column="1"
|
|
Grid.RowSpan="2"
|
|
Style="{StaticResource PDFPreview_GroupBox}">
|
|
<GroupBox.Header>
|
|
<StackPanel Style="{StaticResource PartManager_StackPanel}">
|
|
<Image Source="{StaticResource PDFPreview_Image}"
|
|
Style="{StaticResource PDF_Image}"/>
|
|
<TextBlock Text="PDF"
|
|
Style="{StaticResource PDF_TextBlock}"/>
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<AdornerDecorator>
|
|
<dxpdf:PdfViewerControl x:Name="PDFViewer"
|
|
CommandBarStyle="None"
|
|
Visibility="{Binding PdfViewer_Visibility}">
|
|
<dxpdf:PdfViewerControl.CommandProvider>
|
|
<dxpdf:PdfCommandProvider>
|
|
<dxpdf:PdfCommandProvider.RibbonActions>
|
|
<dxb:RemoveAction ContainerName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.ContextMenu}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.HandTool}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.SelectAll}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.SelectTool}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.MarqueeZoom}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.ClockwiseRotate}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.FindContext}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.PrintContext}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.Properties}"/>
|
|
<dxb:UpdateAction ElementName="{x:Static dxpdf:DefaultPdfBarManagerItemNames.Ribbon}"
|
|
PropertyName="ShowApplicationButton"
|
|
Value="False"/>
|
|
</dxpdf:PdfCommandProvider.RibbonActions>
|
|
</dxpdf:PdfCommandProvider>
|
|
</dxpdf:PdfViewerControl.CommandProvider>
|
|
<dxpdf:PdfViewerControl.ThumbnailsViewerSettings>
|
|
<dxpdf:PdfThumbnailsViewerSettings HideThumbnailsViewer="True"/>
|
|
</dxpdf:PdfViewerControl.ThumbnailsViewerSettings>
|
|
<dxpdf:PdfViewerControl.AttachmentsViewerSettings>
|
|
<dxpdf:PdfAttachmentsViewerSettings HideAttachmentsViewer="True"/>
|
|
</dxpdf:PdfViewerControl.AttachmentsViewerSettings>
|
|
<dxpdf:PdfViewerControl.CommentViewerSettings>
|
|
<dxpdf:PdfCommentViewerSettings HideCommentViewer="True"/>
|
|
</dxpdf:PdfViewerControl.CommentViewerSettings>
|
|
<dxpdf:PdfViewerControl.OutlinesViewerSettings>
|
|
<dxpdf:PdfOutlinesViewerSettings HideOutlinesViewer="True"/>
|
|
</dxpdf:PdfViewerControl.OutlinesViewerSettings>
|
|
</dxpdf:PdfViewerControl>
|
|
</AdornerDecorator>
|
|
</GroupBox>
|
|
</Grid>
|
|
|
|
</Grid>
|