-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
GlobalsControl.xaml
44 lines (41 loc) · 2 KB
/
GlobalsControl.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<UserControl x:Class="XSharp.Debugger.UI.GlobalsControl"
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:toolkit="clr-namespace:Community.VisualStudio.Toolkit;assembly=Community.VisualStudio.Toolkit"
toolkit:Themes.UseVsTheme="True"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="500"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,10,0">
<TextBlock Text="Selected Assembly:" VerticalAlignment="Center" Margin="5,5,10,5"/>
<ComboBox
ItemsSource="{Binding Assemblies}"
SelectedItem="{Binding SelectedAssembly}"
Padding="5,0"
Width="250"
VerticalAlignment="Center"
/>
</StackPanel>
<Separator Grid.Row="1" />
<TextBox Grid.Row="2" Visibility="Hidden" Name="tbNotLoaded" Text="The X# Runtime is NOT loaded"/>
<DataGrid Grid.Row ="2" Name="lvGlobals" ItemsSource="{Binding SelectedItems}"
AutoGenerateColumns="False" IsReadOnly="True">
<DataGrid.Resources>
<ResourceDictionary Source="VsThemeDictionary.xaml"/>
</DataGrid.Resources>
<DataGrid.Columns>
<DataGridTextColumn Width="125" Header="Name" Binding="{Binding Name}" />
<DataGridTextColumn Width="125" Header="Assembly" Binding="{Binding Assembly}" />
<DataGridTextColumn Width="Auto" Header="Value" Binding="{Binding Value}" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</UserControl>