-
Notifications
You must be signed in to change notification settings - Fork 17
/
EtwProvidersWindow.xaml
29 lines (29 loc) · 2.29 KB
/
EtwProvidersWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Window x:Class="TraceSpy.EtwProvidersWindow"
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:local="clr-namespace:TraceSpy"
mc:Ignorable="d"
Title="ETW Providers" Height="400" Width="600" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="45" />
</Grid.RowDefinitions>
<ListView Name="LV" SelectionMode="Single" ItemsSource="{Binding Providers}" MouseDoubleClick="LV_MouseDoubleClick">
<ListView.View>
<GridView>
<GridViewColumn Header="Active" Width="40" DisplayMemberBinding="{Binding IsActive}" ></GridViewColumn>
<GridViewColumn Header="Level" Width="40" DisplayMemberBinding="{Binding TraceLevel}"></GridViewColumn>
<GridViewColumn Header="Guid" Width="250" DisplayMemberBinding="{Binding Guid}"></GridViewColumn>
<GridViewColumn Header="Description" Width="300" DisplayMemberBinding="{Binding Description}"></GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<Button Name="Add" Grid.Row="1" Content="_Add" Margin="10,0,0,10" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Bottom" Click="Add_Click" />
<Button Name="Remove" Grid.Row="1" IsEnabled="{Binding RemoveEnabled, UpdateSourceTrigger=PropertyChanged}" Content="_Remove" Margin="95,0,0,10" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Bottom" Click="Remove_Click" />
<Button Name="Modify" Grid.Row="1" IsEnabled="{Binding ModifyEnabled, UpdateSourceTrigger=PropertyChanged}" Content="_Modify" Margin="180,0,0,10" HorizontalAlignment="Left" Width="75" Height="23" VerticalAlignment="Bottom" Click="Modify_Click" />
<Button Name="Close" Grid.Row="1" IsDefault="True" IsCancel="True" Content="Close" Margin="0,0,10,10" HorizontalAlignment="Right" Width="75" Height="23" VerticalAlignment="Bottom" Click="Close_Click" />
</Grid>
</Window>