File tree Expand file tree Collapse file tree
src/UniGetUI/Pages/SoftwarePages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 614614 x : Name =" ViewModeSelector"
615615 SelectionChanged =" ViewModeSelector_SelectionChanged"
616616 SelectionMode =" Single" >
617- <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" ToolTipService.ToolTip= " List " />
618- <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" ToolTipService.ToolTip= " Grid " />
619- <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" ToolTipService.ToolTip= " Icons " />
617+ <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" x : Name = " Selector_List " />
618+ <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" x : Name = " Selector_Grid " />
619+ <Toolkit : SegmentedItem Icon =" {ui:FontIcon Glyph= }" x : Name = " Selector_Icons " />
620620 </Toolkit : Segmented >
621621 </StackPanel >
622622 </StackPanel >
Original file line number Diff line number Diff line change 11using System . Collections . Concurrent ;
22using System . Collections . ObjectModel ;
33using System . Diagnostics ;
4+ using System . Runtime . Serialization ;
45using Microsoft . UI . Input ;
56using Microsoft . UI . Xaml ;
67using Microsoft . UI . Xaml . Controls ;
@@ -221,6 +222,10 @@ protected AbstractPackagesPage(PackagesPageData data)
221222 if ( viewMode < 0 || viewMode >= ViewModeSelector . Items . Count ) viewMode = 0 ;
222223 ViewModeSelector . SelectedIndex = viewMode ;
223224
225+ ToolTipService . SetToolTip ( Selector_List , CoreTools . Translate ( "List" ) ) ;
226+ ToolTipService . SetToolTip ( Selector_Grid , CoreTools . Translate ( "Grid" ) ) ;
227+ ToolTipService . SetToolTip ( Selector_Icons , CoreTools . Translate ( "Icons" ) ) ;
228+
224229 MainTitle . Text = data . PageTitle ;
225230 HeaderIcon . Glyph = data . Glyph ;
226231
You can’t perform that action at this time.
0 commit comments