-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathCodeViewUserControl.xaml
40 lines (34 loc) · 2.12 KB
/
CodeViewUserControl.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
<UserControl x:Class="CodeNav.CodeViewUserControl"
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:controls="clr-namespace:CodeNav.Controls"
xmlns:theming="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Imaging"
xmlns:platformUI="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
DataContext="{Binding RelativeSource={RelativeSource Self}}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Controls/NamespaceDataTemplate.xaml" />
<ResourceDictionary Source="Controls/ItemDataTemplate.xaml" />
<ResourceDictionary Source="Controls/RegionDataTemplate.xaml" />
<ResourceDictionary Source="Controls/ClassDataTemplate.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid theming:ImageThemingUtilities.ImageBackgroundColor="{DynamicResource {x:Static platformUI:EnvironmentColors.ScrollBarBorderColorKey}}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<controls:MainToolbar DataContext="{Binding}" />
<controls:FilterToolbar Grid.Row="1" DataContext="{Binding}" Visibility="{Binding ShowFilterToolbarVisibility}"/>
<ScrollViewer x:Name="CodeScrollViewer" Grid.Row="2" VerticalScrollBarVisibility="Auto" Margin="0,3,0,0">
<ItemsControl x:Name="CodeItemsControl" ItemsSource="{Binding CodeDocument}" Margin="4,0,4,0" />
</ScrollViewer>
</Grid>
</UserControl>