|
642 | 642 | Command="{x:Bind Commands.LayoutDetails}"
|
643 | 643 | CornerRadius="{StaticResource ControlCornerRadius}"
|
644 | 644 | GroupName="LayoutRadio"
|
645 |
| - IsChecked="{x:Bind Commands.LayoutDetails.IsOn, Mode=OneWay}" |
| 645 | + IsChecked="{x:Bind ViewModel.IsDetailsLayout, Mode=OneWay}" |
646 | 646 | Style="{StaticResource DefaultToggleButtonStyle}"
|
647 | 647 | ToolTipService.ToolTip="{x:Bind Commands.LayoutDetails.LabelWithHotKey, Mode=OneWay}">
|
648 | 648 | <local:OpacityIcon
|
649 | 649 | Width="16"
|
650 | 650 | Height="16"
|
651 |
| - IsSelected="{x:Bind Commands.LayoutDetails.IsOn, Mode=OneWay}" |
| 651 | + IsSelected="{x:Bind ViewModel.IsDetailsLayout, Mode=OneWay}" |
652 | 652 | Style="{x:Bind Commands.LayoutDetails.OpacityStyle}" />
|
653 | 653 | </RadioButton>
|
654 | 654 |
|
|
674 | 674 | Command="{x:Bind Commands.LayoutColumns}"
|
675 | 675 | CornerRadius="{StaticResource ControlCornerRadius}"
|
676 | 676 | GroupName="LayoutRadio"
|
677 |
| - IsChecked="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
| 677 | + IsChecked="{x:Bind ViewModel.IsColumnLayout, Mode=OneWay}" |
678 | 678 | Style="{StaticResource DefaultToggleButtonStyle}"
|
679 | 679 | ToolTipService.ToolTip="{x:Bind Commands.LayoutColumns.LabelWithHotKey, Mode=OneWay}">
|
680 | 680 | <local:OpacityIcon
|
681 | 681 | Width="16"
|
682 | 682 | Height="16"
|
683 |
| - IsSelected="{x:Bind Commands.LayoutColumns.IsOn, Mode=OneWay}" |
| 683 | + IsSelected="{x:Bind ViewModel.IsColumnLayout, Mode=OneWay}" |
684 | 684 | Style="{x:Bind Commands.LayoutColumns.OpacityStyle}" />
|
685 | 685 | </RadioButton>
|
686 | 686 |
|
|
706 | 706 | Command="{x:Bind Commands.LayoutTiles}"
|
707 | 707 | CornerRadius="{StaticResource ControlCornerRadius}"
|
708 | 708 | GroupName="LayoutRadio"
|
709 |
| - IsChecked="{x:Bind Commands.LayoutTiles.IsOn, Mode=OneWay}" |
| 709 | + IsChecked="{x:Bind ViewModel.IsTilesLayout, Mode=OneWay}" |
710 | 710 | Style="{StaticResource DefaultToggleButtonStyle}"
|
711 | 711 | ToolTipService.ToolTip="{x:Bind Commands.LayoutTiles.LabelWithHotKey, Mode=OneWay}">
|
712 | 712 | <local:OpacityIcon
|
713 | 713 | Width="16"
|
714 | 714 | Height="16"
|
715 |
| - IsSelected="{x:Bind Commands.LayoutTiles.IsOn, Mode=OneWay}" |
| 715 | + IsSelected="{x:Bind ViewModel.IsTilesLayout, Mode=OneWay}" |
716 | 716 | Style="{x:Bind Commands.LayoutTiles.OpacityStyle}" />
|
717 | 717 | </RadioButton>
|
718 | 718 |
|
|
738 | 738 | Command="{x:Bind Commands.LayoutGridSmall}"
|
739 | 739 | CornerRadius="{StaticResource ControlCornerRadius}"
|
740 | 740 | GroupName="LayoutRadio"
|
741 |
| - IsChecked="{x:Bind Commands.LayoutGridSmall.IsOn, Mode=OneWay}" |
| 741 | + IsChecked="{x:Bind ViewModel.IsGridSmallLayout, Mode=OneWay}" |
742 | 742 | Style="{StaticResource DefaultToggleButtonStyle}"
|
743 | 743 | ToolTipService.ToolTip="{x:Bind Commands.LayoutGridSmall.LabelWithHotKey, Mode=OneWay}">
|
744 | 744 | <local:OpacityIcon
|
745 | 745 | Width="16"
|
746 | 746 | Height="16"
|
747 |
| - IsSelected="{x:Bind Commands.LayoutGridSmall.IsOn, Mode=OneWay}" |
| 747 | + IsSelected="{x:Bind ViewModel.IsGridSmallLayout, Mode=OneWay}" |
748 | 748 | Style="{x:Bind Commands.LayoutGridSmall.OpacityStyle}" />
|
749 | 749 | </RadioButton>
|
750 | 750 |
|
|
770 | 770 | Command="{x:Bind Commands.LayoutGridMedium}"
|
771 | 771 | CornerRadius="{StaticResource ControlCornerRadius}"
|
772 | 772 | GroupName="LayoutRadio"
|
773 |
| - IsChecked="{x:Bind Commands.LayoutGridMedium.IsOn, Mode=OneWay}" |
| 773 | + IsChecked="{x:Bind ViewModel.IsGridMediumLayout, Mode=OneWay}" |
774 | 774 | Style="{StaticResource DefaultToggleButtonStyle}"
|
775 | 775 | ToolTipService.ToolTip="{x:Bind Commands.LayoutGridMedium.LabelWithHotKey, Mode=OneWay}">
|
776 | 776 | <local:OpacityIcon
|
777 | 777 | Width="16"
|
778 | 778 | Height="16"
|
779 |
| - IsSelected="{x:Bind Commands.LayoutGridMedium.IsOn, Mode=OneWay}" |
| 779 | + IsSelected="{x:Bind ViewModel.IsGridMediumLayout, Mode=OneWay}" |
780 | 780 | Style="{x:Bind Commands.LayoutGridMedium.OpacityStyle}" />
|
781 | 781 | </RadioButton>
|
782 | 782 |
|
|
812 | 812 | Command="{x:Bind Commands.LayoutGridLarge}"
|
813 | 813 | CornerRadius="{StaticResource ControlCornerRadius}"
|
814 | 814 | GroupName="LayoutRadio"
|
815 |
| - IsChecked="{x:Bind Commands.LayoutGridLarge.IsOn, Mode=OneWay}" |
| 815 | + IsChecked="{x:Bind ViewModel.IsGridLargeLayout, Mode=OneWay}" |
816 | 816 | Style="{StaticResource DefaultToggleButtonStyle}"
|
817 | 817 | ToolTipService.ToolTip="{x:Bind Commands.LayoutGridLarge.LabelWithHotKey, Mode=OneWay}">
|
818 | 818 | <local:OpacityIcon
|
819 | 819 | Width="16"
|
820 | 820 | Height="16"
|
821 |
| - IsSelected="{x:Bind Commands.LayoutGridLarge.IsOn, Mode=OneWay}" |
| 821 | + IsSelected="{x:Bind ViewModel.IsGridLargeLayout, Mode=OneWay}" |
822 | 822 | Style="{x:Bind Commands.LayoutGridLarge.OpacityStyle}" />
|
823 | 823 | </RadioButton>
|
824 | 824 |
|
|
0 commit comments