File tree Expand file tree Collapse file tree 9 files changed +89
-23
lines changed Expand file tree Collapse file tree 9 files changed +89
-23
lines changed Original file line number Diff line number Diff line change 423
423
<source >Text Documnet</source >
424
424
<target state =" new" >Text Documnet</target >
425
425
</trans-unit >
426
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
427
+ <source >List View</source >
428
+ <target state =" new" >List View</target >
429
+ </trans-unit >
430
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
431
+ <source >Grid View</source >
432
+ <target state =" new" >Grid View</target >
433
+ </trans-unit >
426
434
</group >
427
435
</body >
428
436
</file >
Original file line number Diff line number Diff line change 422
422
<source >Text Documnet</source >
423
423
<target state =" new" >Text Documnet</target >
424
424
</trans-unit >
425
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
426
+ <source >List View</source >
427
+ <target state =" new" >List View</target >
428
+ </trans-unit >
429
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
430
+ <source >Grid View</source >
431
+ <target state =" new" >Grid View</target >
432
+ </trans-unit >
425
433
</group >
426
434
</body >
427
435
</file >
Original file line number Diff line number Diff line change 422
422
<source >Text Documnet</source >
423
423
<target state =" new" >Text Documnet</target >
424
424
</trans-unit >
425
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
426
+ <source >List View</source >
427
+ <target state =" new" >List View</target >
428
+ </trans-unit >
429
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
430
+ <source >Grid View</source >
431
+ <target state =" new" >Grid View</target >
432
+ </trans-unit >
425
433
</group >
426
434
</body >
427
435
</file >
Original file line number Diff line number Diff line change 422
422
<source >Text Documnet</source >
423
423
<target state =" new" >Text Documnet</target >
424
424
</trans-unit >
425
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
426
+ <source >List View</source >
427
+ <target state =" new" >List View</target >
428
+ </trans-unit >
429
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
430
+ <source >Grid View</source >
431
+ <target state =" new" >Grid View</target >
432
+ </trans-unit >
425
433
</group >
426
434
</body >
427
435
</file >
Original file line number Diff line number Diff line change 422
422
<source >Text Documnet</source >
423
423
<target state =" new" >Text Documnet</target >
424
424
</trans-unit >
425
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
426
+ <source >List View</source >
427
+ <target state =" new" >List View</target >
428
+ </trans-unit >
429
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
430
+ <source >Grid View</source >
431
+ <target state =" new" >Grid View</target >
432
+ </trans-unit >
425
433
</group >
426
434
</body >
427
435
</file >
Original file line number Diff line number Diff line change 422
422
<source >Text Documnet</source >
423
423
<target state =" new" >Text Documnet</target >
424
424
</trans-unit >
425
+ <trans-unit id =" StatusBarControlListView.Text" translate =" yes" xml : space =" preserve" >
426
+ <source >List View</source >
427
+ <target state =" new" >List View</target >
428
+ </trans-unit >
429
+ <trans-unit id =" StatusBarControlGridView.Text" translate =" yes" xml : space =" preserve" >
430
+ <source >Grid View</source >
431
+ <target state =" new" >Grid View</target >
432
+ </trans-unit >
425
433
</group >
426
434
</body >
427
435
</file >
Original file line number Diff line number Diff line change 192
192
<data name =" StatusBarControlClearSelection.Text" xml : space =" preserve" >
193
193
<value >Clear Selection</value >
194
194
</data >
195
+ <data name =" StatusBarControlListView.Text" xml : space =" preserve" >
196
+ <value >List View</value >
197
+ </data >
198
+ <data name =" StatusBarControlGridView.Text" xml : space =" preserve" >
199
+ <value >Grid View</value >
200
+ </data >
195
201
<data name =" PropertiesModified.Text" xml : space =" preserve" >
196
202
<value >Modified:</value >
197
203
</data >
Original file line number Diff line number Diff line change 42
42
Height =" 30"
43
43
Margin =" 2,0,2,0"
44
44
Background =" Transparent"
45
- Command =" {x:Bind AppSettings.ToggleLayoutMode}"
46
- Content =" {x:Bind AppSettings.ToggleLayoutModeIcon, Mode=OneWay}"
45
+ Content ="  "
47
46
CornerRadius =" 2"
48
47
FontFamily =" Segoe MDL2 Assets"
49
- FontSize =" 16" />
48
+ FontSize =" 16"
49
+ Style =" {StaticResource ToolBarButtonStyle}" >
50
+ <Button .Flyout>
51
+ <MenuFlyout >
52
+ <MenuFlyoutItem
53
+ x : Uid =" StatusBarControlGridView"
54
+ Command =" {x:Bind AppSettings.ToggleLayoutModeGridView}"
55
+ Text =" Grid View" >
56
+ <MenuFlyoutItem .Icon>
57
+ <FontIcon Glyph ="  " />
58
+ </MenuFlyoutItem .Icon>
59
+ </MenuFlyoutItem >
60
+ <MenuFlyoutItem
61
+ x : Uid =" StatusBarControlListView"
62
+ Command =" {x:Bind AppSettings.ToggleLayoutModeListView}"
63
+ Text =" List View" >
64
+ <MenuFlyoutItem .Icon>
65
+ <FontIcon Glyph ="  " />
66
+ </MenuFlyoutItem .Icon>
67
+ </MenuFlyoutItem >
68
+ </MenuFlyout >
69
+ </Button .Flyout>
70
+ </Button >
50
71
</StackPanel >
51
-
52
72
</Grid >
53
73
</UserControl >
Original file line number Diff line number Diff line change @@ -526,30 +526,22 @@ public Int32 LayoutMode
526
526
set => Set ( value ) ;
527
527
}
528
528
529
- public string ToggleLayoutModeIcon
530
- {
531
- get => Get ( "" ) ; // List View;
532
- set => Set ( value ) ;
533
- }
534
-
535
529
public event EventHandler LayoutModeChangeRequested ;
536
- private RelayCommand toggleLayoutMode ;
537
- public RelayCommand ToggleLayoutMode => toggleLayoutMode = new RelayCommand ( ( ) =>
530
+
531
+ private RelayCommand toggleLayoutModeGridView ;
532
+ public RelayCommand ToggleLayoutModeGridView => toggleLayoutModeGridView = new RelayCommand ( ( ) =>
538
533
{
539
- switch ( LayoutMode )
540
- {
541
- case 0 :
542
- LayoutMode = 1 ; // Grid View
543
- ToggleLayoutModeIcon = "" ;
544
- break ;
545
- case 1 :
546
- LayoutMode = 0 ; // List View
547
- ToggleLayoutModeIcon = "" ;
548
- break ;
549
- }
534
+ LayoutMode = 1 ; // Grid View
550
535
551
536
LayoutModeChangeRequested ? . Invoke ( this , EventArgs . Empty ) ;
537
+ } ) ;
552
538
539
+ private RelayCommand toggleLayoutModeListView ;
540
+ public RelayCommand ToggleLayoutModeListView => toggleLayoutModeListView = new RelayCommand ( ( ) =>
541
+ {
542
+ LayoutMode = 0 ; // List View
543
+
544
+ LayoutModeChangeRequested ? . Invoke ( this , EventArgs . Empty ) ;
553
545
} ) ;
554
546
555
547
[ Obsolete ]
You can’t perform that action at this time.
0 commit comments