Files
downkyicore/DownKyi/Views/Dialogs/ViewParsingSelector.axaml

98 lines
4.0 KiB
XML

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True"
x:Class="DownKyi.Views.Dialogs.ViewParsingSelector"
xmlns:vmd="clr-namespace:DownKyi.ViewModels.Dialogs"
x:DataType="vmd:ViewParsingSelectorViewModel">
<!-- <prismExtension:Dialog.Theme> -->
<!-- <ControlTheme TargetType="Window"> -->
<!-- <Setter Property="CanResize" Value="False" /> -->
<!-- <Setter Property="ShowInTaskbar" Value="False" /> -->
<!-- <Setter Property="SizeToContent" Value="WidthAndHeight" /> -->
<!-- <Setter Property="SystemDecorations" Value="None" /> -->
<!-- </ControlTheme> -->
<!-- </prismExtension:Dialog.Theme> -->
<Border BorderBrush="{DynamicResource BrushWindowBorder}" BorderThickness="1,1,1,0.6">
<Grid RowDefinitions="40,*">
<Grid
Grid.Row="0"
Background="{DynamicResource BrushBackgroundGreyTranslucent3}" ColumnDefinitions="*,50,*,50">
<TextBlock
Grid.Column="0"
Margin="10,0"
VerticalAlignment="Center"
FontSize="12"
Foreground="{DynamicResource BrushCaptionForeground}"
Text="{Binding Title}" />
<Button
Grid.Column="4"
Command="{Binding CloseCommand}"
Theme="{StaticResource CloseBtnStyle}"
ToolTip.Tip="{DynamicResource Close}">
<Path
Width="{Binding CloseIcon.Width}"
Height="{Binding CloseIcon.Height}"
Data="{Binding CloseIcon.Data}"
Fill="{Binding CloseIcon.Fill}"
Stretch="UniformToFill" />
</Button>
</Grid>
<StackPanel
Grid.Row="1"
MinWidth="250"
Margin="15,10"
Orientation="Vertical">
<Button
Width="160"
Height="35"
Margin="0,10,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Command="{Binding ParseSelectedItemCommand}"
Content="{DynamicResource ParseSelectedItem}"
FontSize="12"
Foreground="{DynamicResource BrushText}"
Theme="{StaticResource BtnStyle}" />
<Button
Width="160"
Height="35"
Margin="0,30,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Command="{Binding ParseCurrentSectionCommand}"
Content="{DynamicResource ParseCurrentSection}"
FontSize="12"
Foreground="{DynamicResource BrushText}"
Theme="{StaticResource BtnStyle}" />
<Button
Width="160"
Height="35"
Margin="0,30,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Command="{Binding ParseAllCommand}"
Content="{DynamicResource ParseAll}"
FontSize="12"
Foreground="{DynamicResource BrushText}"
Theme="{StaticResource BtnStyle}" />
<CheckBox
Margin="0,30,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="12"
Content="{DynamicResource SetParseDefault}"
IsChecked="{Binding IsParseDefault, Mode=TwoWay}" />
</StackPanel>
</Grid>
</Border>
</UserControl>