|
906 | 906 | </Border> |
907 | 907 |
|
908 | 908 | <Grid Grid.Row="3"> |
909 | | - <ContentControl Content="{Binding Histories, Mode=OneWay}" IsVisible="{Binding IsHistoriesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
910 | | - <ContentControl.DataTemplates> |
911 | | - <DataTemplate DataType="vm:Histories"> |
912 | | - <v:Histories CurrentBranch="{Binding CurrentBranch, Mode=OneWay}" |
913 | | - Bisect="{Binding Bisect, Mode=OneWay}" |
914 | | - IssueTrackers="{Binding IssueTrackers, Mode=OneWay}"> |
915 | | - <v:Histories.IsDetailsPanelExpanded> |
916 | | - <MultiBinding Converter="{x:Static BoolConverters.Or}"> |
917 | | - <Binding Source="{x:Static vm:Preferences.Instance}" Path="UseTwoColumnsLayoutInHistories" Mode="OneWay"/> |
918 | | - <Binding Path="IsCollapseDetails" Converter="{x:Static BoolConverters.Not}" Mode="OneWay"/> |
919 | | - </MultiBinding> |
920 | | - </v:Histories.IsDetailsPanelExpanded> |
921 | | - </v:Histories> |
922 | | - </DataTemplate> |
923 | | - </ContentControl.DataTemplates> |
924 | | - </ContentControl> |
| 909 | + <Border IsVisible="{Binding IsHistoriesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
| 910 | + <v:Histories DataContext="{Binding Histories, Mode=OneWay}" |
| 911 | + CurrentBranch="{Binding CurrentBranch, Mode=OneWay}" |
| 912 | + Bisect="{Binding Bisect, Mode=OneWay}" |
| 913 | + IssueTrackers="{Binding IssueTrackers, Mode=OneWay}"> |
| 914 | + <v:Histories.IsDetailsPanelExpanded> |
| 915 | + <MultiBinding Converter="{x:Static BoolConverters.Or}"> |
| 916 | + <Binding Source="{x:Static vm:Preferences.Instance}" Path="UseTwoColumnsLayoutInHistories" Mode="OneWay"/> |
| 917 | + <Binding Path="IsCollapseDetails" Converter="{x:Static BoolConverters.Not}" Mode="OneWay"/> |
| 918 | + </MultiBinding> |
| 919 | + </v:Histories.IsDetailsPanelExpanded> |
| 920 | + </v:Histories> |
| 921 | + </Border> |
925 | 922 |
|
926 | | - <ContentControl Content="{Binding WorkingCopy, Mode=OneWay}" IsVisible="{Binding IsWorkingCopyVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
927 | | - <ContentControl.DataTemplates> |
928 | | - <DataTemplate DataType="vm:WorkingCopy"> |
929 | | - <v:WorkingCopy/> |
930 | | - </DataTemplate> |
931 | | - </ContentControl.DataTemplates> |
932 | | - </ContentControl> |
| 923 | + <Border IsVisible="{Binding IsWorkingCopyVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
| 924 | + <v:WorkingCopy DataContext="{Binding WorkingCopy, Mode=OneWay}"/> |
| 925 | + </Border> |
933 | 926 |
|
934 | | - <ContentControl Content="{Binding StashesPage, Mode=OneWay}" IsVisible="{Binding IsStashesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
935 | | - <ContentControl.DataTemplates> |
936 | | - <DataTemplate DataType="vm:StashesPage"> |
937 | | - <v:StashesPage/> |
938 | | - </DataTemplate> |
939 | | - </ContentControl.DataTemplates> |
940 | | - </ContentControl> |
| 927 | + <Border IsVisible="{Binding IsStashesVisible, Mode=OneWay}" PropertyChanged="OnRightPagePropertyChanged"> |
| 928 | + <v:StashesPage DataContext="{Binding StashesPage, Mode=OneWay}"/> |
| 929 | + </Border> |
941 | 930 | </Grid> |
942 | 931 | </Grid> |
943 | 932 |
|
|
0 commit comments