123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <UserControl
- x:Class="PDF_Master.Views.PropertyPanel.ViewModular.SplitScreenContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:AnnotPanel="clr-namespace:PDF_Master.Views.PropertyPanel.AnnotPanel"
- xmlns:Convert="clr-namespace:PDF_Master.DataConvert"
- xmlns:DataConvert="clr-namespace:PDF_Master.DataConvert"
- xmlns:ViewModular="clr-namespace:PDF_Master.ViewModels.PropertyPanel.ViewModular"
- xmlns:customControl="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.PropertyPanel.ViewModular"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- d:DataContext="{d:DesignInstance Type=ViewModular:SplitScreenContentViewModel}"
- d:DesignHeight="700"
- d:DesignWidth="500"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <DataConvert:BoolToVisible x:Key="BoolToVisible" />
- <Style x:Key="ListboxItemStyle" TargetType="{x:Type ListBoxItem}">
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Height" Value="30" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ContentControl}">
- <Border
- x:Name="border"
- Padding="10,0"
- Background="{TemplateBinding Background}">
- <ContentPresenter />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#e2e3e5" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="#e2e3e5" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <StackPanel
- Name="StkpnlContent"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Vertical"
- Visibility="{Binding StkpnlContentVisibility}">
- <Border
- Width="130"
- Height="180"
- BorderThickness="2"
- CornerRadius="4">
- <Border.BorderBrush>
- <VisualBrush>
- <VisualBrush.Visual>
- <Rectangle
- Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"
- Stroke="Black"
- StrokeDashArray="4 3" />
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.BorderBrush>
- <Button
- x:Name="BtnAddFile"
- Width="130"
- Height="180"
- Background="Transparent"
- Command="{Binding AddFileCommand}"
- Style="{StaticResource btn.icon-fill}">
- <Button.Content>
- <Path Data="M13.3333 16.6667V30H16.6667V16.6667H30V13.3333H16.6667V0H13.3333V13.3333H0V16.6667H13.3333Z" Fill="#94989C" />
- </Button.Content>
- </Button>
- </Border>
- <!--<Button
- Grid.Column="0"
- Height="30"
- Padding="10,6"
- Content="Select PDF"
- Foreground="#252629"
- Style="{StaticResource btn.sec}" />-->
- <customControl:CustomIconToggleBtn
- x:Name="BtnSelectedFiles"
- Width="140"
- Height="32"
- Margin="0,50,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="White"
- BorderThickness="0"
- Click="BtnSelectedFiles_Click"
- Initialized="BtnSelectedFiles_Initialized">
- <ToggleButton.Content>
- <StackPanel Orientation="Horizontal">
- <TextBlock
- Width="100"
- HorizontalAlignment="Left"
- VerticalAlignment="Stretch"
- Text="Select PDF" />
- <Path
- HorizontalAlignment="Left"
- Data="M6 7.56427L2.03039 3.59467L0.969727 4.65533L5.46967 9.15526C5.76256 9.44816 6.23743 9.44816 6.53033 9.15526L11.0303 4.65533L9.9696 3.59467L6 7.56427Z"
- Fill="#94989C" />
- </StackPanel>
- </ToggleButton.Content>
- <ToggleButton.ContextMenu>
- <ContextMenu Name="MenuSelectedFiles" Placement="Bottom" />
- </ToggleButton.ContextMenu>
- </customControl:CustomIconToggleBtn>
- <!--<ListBox
- x:Name="ListSelectedFiles"
- Margin="0,3,0,0"
- BorderThickness="0"
- ItemContainerStyle="{StaticResource ListboxItemStyle}"
- ItemsSource="{Binding SelectedFiles}"
- Visibility="{Binding ElementName=BtnSelectedFiles, Path=IsChecked, Converter={StaticResource ResourceKey=BoolToVisible}}">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel
- IsItemsHost="True"
- Orientation="Vertical"
- ScrollViewer.CanContentScroll="True" />
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <TextBlock VerticalAlignment="Center" Text="{Binding}" />
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>-->
- </StackPanel>
- <Grid
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Visibility="{Binding PDFViewerVisibility}">
- <ContentControl
- x:Name="PDFViewerContent"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- prism:RegionManager.RegionName="{Binding SplitViewRegionName}" />
- <customControl:CustomIconToggleBtn
- x:Name="BtnReselect"
- Width="32"
- Height="32"
- Margin="0,0,20,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background=" #FFFFFF"
- BorderThickness="0"
- Click="BtnReselect_Click"
- Initialized="BtnReselect_Initialized"
- MouseEnter="RectReselect_MouseEnter"
- MouseLeave="BtnReselect_MouseLeave"
- Style="{StaticResource ToggleBtnScreenAnnotationStyle}">
- <ToggleButton.Content>
- <Path Data="M6.39722 5.49998L5.95192 4.83203L4.82691 3.14451C4.80836 3.11669 4.77714 3.09998 4.74371 3.09998H1.6C1.54477 3.09998 1.5 3.14475 1.5 3.19998V12.8C1.5 12.8552 1.54477 12.9 1.6 12.9H14.4C14.4552 12.9 14.5 12.8552 14.5 12.8V5.59998C14.5 5.54475 14.4552 5.49998 14.4 5.49998H7.2H6.39722ZM1.6 1.59998C0.716345 1.59998 0 2.31632 0 3.19998V12.8C0 13.6836 0.716345 14.4 1.6 14.4H14.4C15.2837 14.4 16 13.6836 16 12.8V5.59998C16 4.71632 15.2837 3.99998 14.4 3.99998H7.2L6.07499 2.31246C5.77824 1.86734 5.27867 1.59998 4.74371 1.59998H1.6Z" Fill="#616469" />
- </ToggleButton.Content>
- <ToggleButton.ContextMenu>
- <ContextMenu Name="MenuReselect" Placement="Bottom">
- <MenuItem
- Command="{Binding AddFileCommand}"
- Header="Select file" />
- </ContextMenu>
- </ToggleButton.ContextMenu>
- </customControl:CustomIconToggleBtn>
- <Rectangle
- x:Name="RectReselect"
- Width="40"
- Height="40"
- Margin="0,0,20,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Fill="Transparent"
- MouseEnter="RectReselect_MouseEnter" />
- <ContentControl
- x:Name="SplitScreenPage"
- Margin="0,0,0,14"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- prism:RegionManager.RegionName="{Binding SplitScreenPageRegionName}" />
- </Grid>
- </Grid>
- </UserControl>
|