Mercurial > silverbladetech
comparison Chronosv2/source/Presentation/Widgets/Navigator/NavigatorWidgetView.xaml @ 10:443821e55f06
Initial cleaned up add from Codeplex files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:25:44 +0700 |
parents | |
children | 09d18d6e5f40 |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 <chronos:WidgetElement x:Class="Chronos.Presentation.Widgets.NavigatorWidgetView" | |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
4 xmlns:nRoute="http://nRoute/schemas/2010/xaml" | |
5 xmlns:chronos="http://chronos/schemas/2010/xaml" | |
6 Style="{StaticResource DefaultWidgetStyle}" | |
7 Title="Navigator"> | |
8 | |
9 <Grid x:Name="LayoutRoot" Margin="3.5"> | |
10 <Grid.Resources> | |
11 <HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}" DataType="{x:Type nRoute:NavigationNode}"> | |
12 <TextBlock Text="{Binding Title}" | |
13 FontWeight="SemiBold" /> | |
14 </HierarchicalDataTemplate> | |
15 | |
16 <DataTemplate DataType="{x:Type chronos:CommandSiteMapNode}"> | |
17 <ContentControl Background="Transparent" | |
18 HorizontalAlignment="Stretch" VerticalAlignment="Stretch" | |
19 HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"> | |
20 <ContentControl.InputBindings> | |
21 <MouseBinding MouseAction="LeftDoubleClick" | |
22 Command="{Binding ExecuteCommand}" /> | |
23 </ContentControl.InputBindings> | |
24 | |
25 <ContentControl.ContextMenu> | |
26 <ContextMenu> | |
27 <MenuItem Header="Open ..." | |
28 Command="{Binding ExecuteCommand}" CommandParameter="{Binding Url}" /> | |
29 | |
30 <Separator Style="{StaticResource DefaultSeparatorStyle}" /> | |
31 | |
32 <MenuItem Header="Add to favorites" /> | |
33 </ContextMenu> | |
34 </ContentControl.ContextMenu> | |
35 | |
36 <TextBlock Text="{Binding Title}" /> | |
37 </ContentControl> | |
38 </DataTemplate> | |
39 </Grid.Resources> | |
40 | |
41 <Grid.RowDefinitions> | |
42 <RowDefinition Height="Auto" /> | |
43 <RowDefinition Height="*" /> | |
44 </Grid.RowDefinitions> | |
45 | |
46 <Grid Grid.Row="0"> | |
47 <TextBox Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}" | |
48 Style="{StaticResource SearchTextBoxStyle}" | |
49 VerticalAlignment="Center" | |
50 HorizontalAlignment="Stretch"> | |
51 <TextBox.InputBindings> | |
52 <KeyBinding Key="Enter" Command="{Binding NavigateToCommand}" /> | |
53 </TextBox.InputBindings> | |
54 </TextBox> | |
55 </Grid> | |
56 | |
57 <Grid Grid.Row="1" Margin="0,3.5,0,0"> | |
58 <TabControl> | |
59 <TabItem Header="Functions" Width="Auto"> | |
60 <Grid Margin="3.5"> | |
61 <TreeView x:Name="FunctionsTree" | |
62 chronos:DragDropManager.IsDragSource="True" | |
63 AllowDrop="False" | |
64 ItemsSource="{Binding Functions}" | |
65 Background="Transparent" | |
66 BorderBrush="{x:Null}" BorderThickness="0" | |
67 HorizontalAlignment="Stretch" VerticalAlignment="Stretch" | |
68 ScrollViewer.HorizontalScrollBarVisibility="Hidden"> | |
69 </TreeView> | |
70 </Grid> | |
71 </TabItem> | |
72 | |
73 <TabItem Header="Favorites" Width="Auto"> | |
74 <Grid Margin="3.5"> | |
75 <TreeView x:Name="FavoritesTree" | |
76 chronos:DragDropManager.IsDragSource="True" | |
77 Background="Transparent" | |
78 AllowDrop="False" | |
79 BorderBrush="{x:Null}" BorderThickness="0" | |
80 HorizontalAlignment="Stretch" VerticalAlignment="Stretch" | |
81 ScrollViewer.HorizontalScrollBarVisibility="Hidden"> | |
82 | |
83 <TreeView.ItemTemplate> | |
84 <HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}"> | |
85 <ContentControl Background="Transparent" | |
86 VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> | |
87 <ContentControl.InputBindings> | |
88 <MouseBinding MouseAction="LeftDoubleClick" | |
89 Command="{Binding ExecuteCommand}" /> | |
90 </ContentControl.InputBindings> | |
91 | |
92 <TextBlock Text="{Binding Title}" /> | |
93 </ContentControl> | |
94 </HierarchicalDataTemplate> | |
95 </TreeView.ItemTemplate> | |
96 </TreeView> | |
97 </Grid> | |
98 </TabItem> | |
99 | |
100 <TabItem Header="Recent" Width="Auto"> | |
101 <Grid Margin="3.5"> | |
102 </Grid> | |
103 </TabItem> | |
104 </TabControl> | |
105 </Grid> | |
106 </Grid> | |
107 | |
108 </chronos:WidgetElement> |