ConfigFileComparision.xaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl x:Class="HistoryView.Views.Dialogs.ConfigFileComparision"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:HistoryView.Views.Dialogs"
  7. xmlns:Config="clr-namespace:HistoryView.Controls.Configs"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid Width="860" Height="640">
  11. <Grid Margin="16">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="auto"/>
  14. <RowDefinition Height="8"/>
  15. <RowDefinition Height="*"/>
  16. </Grid.RowDefinitions>
  17. <Grid>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="auto"/>
  20. <ColumnDefinition Width="16"/>
  21. <ColumnDefinition Width="auto"/>
  22. <ColumnDefinition Width="*"/>
  23. <ColumnDefinition Width="16"/>
  24. <ColumnDefinition Width="auto"/>
  25. </Grid.ColumnDefinitions>
  26. <StackPanel Orientation="Horizontal">
  27. <TextBlock VerticalAlignment="Center" Text="{DynamicResource ComparisionSource}"/>
  28. <ComboBox VerticalAlignment="Center" Margin="16,0" ItemsSource="{Binding ConfigFiles}" DisplayMemberPath="ConfigName" SelectedItem="{Binding Source}" Width="140"/>
  29. </StackPanel>
  30. <StackPanel Grid.Column="2" Orientation="Horizontal">
  31. <TextBlock VerticalAlignment="Center" Text="{DynamicResource ComparisionTarget}"/>
  32. <ComboBox VerticalAlignment="Center" Margin="16,0" ItemsSource="{Binding ConfigFiles}" DisplayMemberPath="ConfigName" SelectedItem="{Binding Target}" Width="140"/>
  33. </StackPanel>
  34. <Button Grid.Column="10" Style="{StaticResource FunctionButton}" Command="{Binding ExitCommand}" Width="120" Height="24" Content="{DynamicResource Exit}"/>
  35. </Grid>
  36. <Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
  37. <Config:TempConfigComparision Source="{Binding Source}" Target="{Binding Target}"/>
  38. </Border>
  39. </Grid>
  40. </Grid>
  41. </UserControl>