TraceLog.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <UserControl x:Class="MinicsUI.Views.Dialogs.TraceLog"
  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:MinicsUI.Views.Dialogs"
  7. mc:Ignorable="d"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <Grid Width="960" MinHeight="640" VerticalAlignment="Center">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="*"/>
  14. <RowDefinition Height="8"/>
  15. <RowDefinition Height="auto"/>
  16. </Grid.RowDefinitions>
  17. <ItemsControl ItemsSource="{Binding PlotHelpers}">
  18. <ItemsControl.ItemTemplate>
  19. <DataTemplate>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition/>
  23. <RowDefinition Height="0"/>
  24. <RowDefinition Height="auto"/>
  25. </Grid.RowDefinitions>
  26. <ContentControl Margin="-8,-5,-8,-20" Content="{Binding Value.PlotControl, Mode=OneTime}"/>
  27. <Button Grid.Row="2" Style="{StaticResource FunctionButton}" HorizontalAlignment="Center" MinWidth="120"
  28. Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor ,AncestorType=local:TraceLog}, Path=DataContext.EditChannelCommand}"
  29. CommandParameter="{Binding Value.Channel}">
  30. <TextBlock Text="{Binding Key}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  31. </Button>
  32. </Grid>
  33. </DataTemplate>
  34. </ItemsControl.ItemTemplate>
  35. <ItemsControl.ItemsPanel>
  36. <ItemsPanelTemplate>
  37. <UniformGrid/>
  38. </ItemsPanelTemplate>
  39. </ItemsControl.ItemsPanel>
  40. </ItemsControl>
  41. <Button Grid.Row="2" Margin="8" Style="{StaticResource FunctionButton}" Command="{Binding ExitCommand}" MinWidth="100" Height="28" Background="Gray">
  42. <StackPanel Orientation="Horizontal">
  43. <Image Source="{StaticResource Icon_Reset}" Height="16" Margin="4,2"/>
  44. <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,2" Text="{DynamicResource Retrun}"/>
  45. </StackPanel>
  46. </Button>
  47. </Grid>
  48. </UserControl>