1- <Window x : Class =" CSharpCodeAnalyst.MainWindow"
1+ <ribbon : RibbonWindow x : Class =" CSharpCodeAnalyst.MainWindow"
2+ xmlns : ribbon =" clr-namespace:System.Windows.Controls.Ribbon;assembly=System.Windows.Controls.Ribbon"
23 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
34 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
45 xmlns : analyst =" clr-namespace:CSharpCodeAnalyst"
3738
3839 <Ribbon >
3940 <Ribbon .ApplicationMenu>
40- <RibbonApplicationMenu >
41+ <RibbonApplicationMenu KeyTip = " F " >
4142
4243 <RibbonApplicationMenuItem Header =" {x:Static resources:Strings.Settings_Header}"
4344 Command =" {Binding OpenSettingsDialogCommand}"
44- ToolTip =" Open application settings dialog "
45- ImageSource =" /Resources/slider.png" />
45+ ToolTip =" {x:Static resources:Strings.Settings_Header_Tooltip} "
46+ ImageSource =" /Resources/slider.png" KeyTip = " S " />
4647
47- <RibbonApplicationMenuItem Header =" {x:Static resources:Strings.Exit_Header}" Click =" Exit_Click" />
48+ <RibbonApplicationMenuItem Header =" {x:Static resources:Strings.Exit_Header}" Click =" Exit_Click" KeyTip = " X " />
4849
4950
5051 </RibbonApplicationMenu >
5152 </Ribbon .ApplicationMenu>
52- <RibbonTab Header =" Home " >
53+ <RibbonTab Header =" {x:Static resources:Strings.Home_Header} " KeyTip = " H " >
5354 <RibbonGroup Header =" {x:Static resources:Strings.File_Header}"
5455 LargeImageSource =" /Resources/save_project.png" >
55- <RibbonSplitButton Label =" Import "
56+ <RibbonSplitButton Label =" {x:Static resources:Strings.Import_Label} "
5657 LargeImageSource =" /Resources/import_solution.png"
57- Command =" {Binding LoadSolutionCommand}" >
58+ Command =" {Binding LoadSolutionCommand}"
59+ KeyTip =" I" >
5860 <RibbonMenuItem Header =" {x:Static resources:Strings.ImportSolution_Label}"
5961 ImageSource =" /Resources/import_solution.png"
6062 Command =" {Binding LoadSolutionCommand}" />
61- <RibbonMenuItem Header =" Import from jdeps "
63+ <RibbonMenuItem Header =" {x:Static resources:Strings.ImportJdeps_Label} "
6264 ImageSource =" /Resources/import_solution.png"
6365 Command =" {Binding ImportJdepsCommand}" />
6466 </RibbonSplitButton >
6567
6668 <RibbonButton Label =" {x:Static resources:Strings.ProjectFilter_Label}"
6769 LargeImageSource =" /Resources/filter_32.png"
68- Command =" {Binding OpenFilterDialogCommand}" >
70+ Command =" {Binding OpenFilterDialogCommand}" KeyTip = " P " >
6971 <RibbonButton .ToolTip>
7072 <ToolTip Content =" {x:Static resources:Strings.ProjectFilter_Tooltip}" />
7173 </RibbonButton .ToolTip>
7577 <RibbonSplitButton Label =" {x:Static resources:Strings.LoadProject_Label}"
7678 LargeImageSource =" /Resources/load_project.png"
7779 Command =" {Binding LoadProjectCommand}"
78- ItemsSource =" {Binding RecentFiles}" >
80+ ItemsSource =" {Binding RecentFiles}"
81+ KeyTip =" L" >
7982
8083 <RibbonSplitButton .ItemContainerStyle>
8184 <Style TargetType =" RibbonMenuItem" >
8992
9093 <RibbonButton Label =" {x:Static resources:Strings.SaveProject_Label}"
9194 LargeImageSource =" /Resources/save_project.png"
92- Command =" {Binding SaveProjectCommand}" />
95+ Command =" {Binding SaveProjectCommand}" KeyTip = " S " />
9396
9497 </RibbonGroup >
9598
9699 <RibbonGroup Header =" Tools" LargeImageSource =" /Resources/cycle_32.png" >
97100 <RibbonButton Label =" {x:Static resources:Strings.Find_Cycles_Label}"
98101 LargeImageSource =" /Resources/cycle_32.png"
99- Command =" {Binding FindCyclesCommand}" />
102+ Command =" {Binding FindCyclesCommand}" KeyTip = " Y " />
100103
101104 <RibbonSplitButton Label =" {x:Static resources:Strings.Analyzers_Label}"
102105 LargeImageSource =" /Resources/analysis_32.png"
103- ItemsSource =" {Binding Analyzers}" >
106+ ItemsSource =" {Binding Analyzers}" KeyTip = " A " >
104107
105108 <!-- Integrate analyzers -->
106109 <RibbonSplitButton .ItemContainerStyle>
122125 LargeImageSource =" /Resources/four-arrows_32.png" >
123126 <RibbonButton Label =" {x:Static resources:Strings.Clear_Label}"
124127 LargeImageSource =" /Resources/trash-can_32.png"
125- Command =" {Binding GraphClearCommand}" >
128+ Command =" {Binding GraphClearCommand}" KeyTip = " C " >
126129 <RibbonButton .ToolTip>
127130 <ToolTip Content =" {x:Static resources:Strings.Clear_Tooltip}" />
128131 </RibbonButton .ToolTip>
129132 </RibbonButton >
130133
131134 <RibbonButton Label =" {x:Static resources:Strings.HideFilter_Label}"
132135 LargeImageSource =" /Resources/filter_32.png"
133- Command =" {Binding GraphViewModel.OpenGraphHideDialogCommand}" >
136+ Command =" {Binding GraphViewModel.OpenGraphHideDialogCommand}" KeyTip = " H " >
134137 <RibbonButton .ToolTip>
135138 <ToolTip Content =" {x:Static resources:Strings.HideFilter_Tooltip}" />
136139 </RibbonButton .ToolTip>
137140 </RibbonButton >
138141
139142 <RibbonButton Label =" {x:Static resources:Strings.Layout_Label}"
140143 LargeImageSource =" /Resources/four-arrows_32.png"
141- Command =" {Binding GraphLayoutCommand}" >
144+ Command =" {Binding GraphLayoutCommand}" KeyTip = " O " >
142145 <RibbonButton .ToolTip>
143146 <ToolTip Content =" {x:Static resources:Strings.Layout_Tooltip}" />
144147 </RibbonButton .ToolTip>
147150
148151 <RibbonSplitButton Label =" Export"
149152 LargeImageSource =" /Resources/document-xml_32.png"
150- Command =" {Binding ExportToDgmlCommand}" >
153+ Command =" {Binding ExportToDgmlCommand}" KeyTip = " E " >
151154
152155 <RibbonMenuItem Header =" {x:Static resources:Strings.ExportDgml_Label}"
153156 ImageSource =" /Resources/document-xml_32.png"
188191
189192 <RibbonButton Label =" {x:Static resources:Strings.Undo_Label}"
190193 LargeImageSource =" /Resources/undo_32.png"
191- Command =" {Binding GraphViewModel.UndoCommand}" >
194+ Command =" {Binding GraphViewModel.UndoCommand}" KeyTip = " U " >
192195 <RibbonButton .ToolTip>
193196 <ToolTip Content =" {x:Static resources:Strings.Undo_Tooltip}" />
194197 </RibbonButton .ToolTip>
195198 </RibbonButton >
196199
197200 <RibbonButton Label =" {x:Static resources:Strings.Gallery_Label}"
198201 LargeImageSource =" /Resources/document_graph_32.png"
199- Command =" {Binding ShowGalleryCommand}" >
202+ Command =" {Binding ShowGalleryCommand}" KeyTip = " FG " >
200203 <RibbonButton .ToolTip>
201204 <ToolTip Content =" {x:Static resources:Strings.Gallery_Tooltip}" />
202205 </RibbonButton .ToolTip>
230233 Grid.Row=" 0" Grid.Column=" 0"
231234 Label =" {x:Static resources:Strings.Flow_Label}"
232235 SmallImageSource =" /Resources/guidepost_small.png"
233- IsChecked =" {Binding GraphViewModel.ShowDataFlow, Mode=TwoWay}" >
236+ IsChecked =" {Binding GraphViewModel.ShowDataFlow, Mode=TwoWay}" KeyTip = " SF " >
234237 <RibbonToggleButton .ToolTip>
235238 <ToolTip Content =" {x:Static resources:Strings.Flow_Tooltip}" />
236239 </RibbonToggleButton .ToolTip>
240243 <RibbonToggleButton Grid.Row=" 1" Grid.Column=" 0" HorizontalAlignment =" Left"
241244 Label =" {x:Static resources:Strings.FlatGraph_Label}"
242245 SmallImageSource =" /Resources/left-right_small.png"
243- IsChecked =" {Binding GraphViewModel.ShowFlatGraph, Mode=TwoWay}" >
246+ IsChecked =" {Binding GraphViewModel.ShowFlatGraph, Mode=TwoWay}" KeyTip = " G " >
244247 <RibbonToggleButton .ToolTip>
245248 <ToolTip Content =" {x:Static resources:Strings.FlatGraph_Tooltip}" />
246249 </RibbonToggleButton .ToolTip>
274277 <RibbonButton Label =" {x:Static resources:Strings.Legend_Label}"
275278 LargeImageSource =" /Resources/legend_32.png"
276279
277- Command =" {Binding ShowLegendCommand}" >
280+ Command =" {Binding ShowLegendCommand}" KeyTip = " LG " >
278281 <RibbonButton .ToolTip>
279282 <ToolTip Content =" {x:Static resources:Strings.Legend_Tooltip}" />
280283 </RibbonButton .ToolTip>
379382 </StackPanel >
380383 </Grid >
381384 </Grid >
382- </Window >
385+ </ribbon : RibbonWindow >
0 commit comments