123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <UserControl x:Class="MinicsUI.Views.Dialogs.TraceLog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:MinicsUI.Views.Dialogs"
- mc:Ignorable="d"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid Width="960" MinHeight="640" VerticalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="8"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <ItemsControl ItemsSource="{Binding PlotHelpers}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition Height="0"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <ContentControl Margin="-8,-5,-8,-20" Content="{Binding Value.PlotControl, Mode=OneTime}"/>
- <Button Grid.Row="2" Style="{StaticResource FunctionButton}" HorizontalAlignment="Center" MinWidth="120"
- Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor ,AncestorType=local:TraceLog}, Path=DataContext.EditChannelCommand}"
- CommandParameter="{Binding Value.Channel}">
- <TextBlock Text="{Binding Key}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Button>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- <Button Grid.Row="2" Margin="8" Style="{StaticResource FunctionButton}" Command="{Binding ExitCommand}" MinWidth="100" Height="28" Background="Gray">
- <StackPanel Orientation="Horizontal">
- <Image Source="{StaticResource Icon_Reset}" Height="16" Margin="4,2"/>
- <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="4,2" Text="{DynamicResource Retrun}"/>
- </StackPanel>
- </Button>
- </Grid>
- </UserControl>
|