123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.CreateFromScannerDialogs"
- 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:prism="http://prismlibrary.com/"
- Width="468"
- Height="520"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="White"
- mc:Ignorable="d">
- <UserControl.Resources>
- <Style x:Key="radioButtonStyle" TargetType="{x:Type ListBox}">
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="Margin" Value="9,8,0,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListBoxItem">
- <RadioButton Focusable="False" IsChecked="{Binding Path=IsSelected, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
- <ContentPresenter />
- </RadioButton>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid Margin="16,0,16,0" Background="White">
- <Grid.RowDefinitions>
- <RowDefinition Height="48" />
- <RowDefinition />
- <RowDefinition Height="64" />
- </Grid.RowDefinitions>
- <TextBlock
- Height="24"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="16"
- FontStyle="Normal"
- FontWeight="SemiBold"
- Text="{Binding TextCreate}" />
- <Grid Grid.Row="1" Background="#F7F8FA">
- <StackPanel>
- <TextBlock
- Margin="8,8,0,0"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="14"
- Foreground="#616469"
- LineHeight="20"
- Text="{Binding TextScans}" />
- <ListBox
- Name="Listboxscan"
- Height="Auto"
- Margin="0,10,0,0"
- Background="#F7F8FA"
- ItemsSource="{Binding Scanitems}"
- BorderThickness="0"
- SelectedIndex="{Binding SeIndex, Mode=TwoWay}"
- Style="{StaticResource radioButtonStyle}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Visibility="{Binding Gridvis,Mode=TwoWay}" Background="#FFFFFF" >
- <StackPanel VerticalAlignment="Center">
-
-
- <Image
- Width="128"
- Height="128"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="pack://application:,,,/PDF Master;component/Resources/HomeIcon/noScanner.png"
- Visibility="Visible"
- />
- <TextBlock
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="12"
- Foreground="#94989C"
- LineHeight="20"
- Text="{Binding TextNoScan}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2">
- <WrapPanel HorizontalAlignment="Right" VerticalAlignment="Center">
- <Button
- x:Name="But_Scan"
- Width="80"
- Height="32"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Command="{Binding ToScanCommand}"
- Content="{Binding BtnScan}"
- IsDefault="True"
- IsEnabled="{Binding IsEnable,Mode=TwoWay}"
- Style="{StaticResource Btn.cta}" />
- <Button
- Width="80"
- Height="32"
- Margin="16,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Content="{Binding BtnCancle}"
- IsCancel="True"
- Style="{StaticResource btn.sec}" />
- </WrapPanel>
- </Grid>
- </Grid>
- </UserControl>
|