|
62 | 62 | Content="{x:Bind DirectoryPropertiesViewModel.GitBranchDisplayName, Mode=OneWay}">
|
63 | 63 | <Button.Flyout>
|
64 | 64 | <Flyout Opening="Flyout_Opening">
|
65 |
| - <Flyout.FlyoutPresenterStyle> |
66 |
| - <Style TargetType="FlyoutPresenter"> |
67 |
| - <Setter Property="Padding" Value="8" /> |
68 |
| - <Setter Property="CornerRadius" Value="{StaticResource OverlayCornerRadius}" /> |
69 |
| - </Style> |
70 |
| - </Flyout.FlyoutPresenterStyle> |
71 |
| - <StackPanel |
72 |
| - Width="200" |
73 |
| - Height="200" |
74 |
| - LostFocus="StackPanel_LostFocus" |
75 |
| - Spacing="8"> |
76 |
| - <TextBlock |
77 |
| - Margin="16,0,0,0" |
78 |
| - FontWeight="Bold" |
79 |
| - Text="{helpers:ResourceString Name=Branches}" /> |
| 65 | + <Grid |
| 66 | + x:Name="BranchesGrid" |
| 67 | + Width="300" |
| 68 | + Height="340" |
| 69 | + Margin="-16" |
| 70 | + LostFocus="BranchesGrid_LostFocus"> |
| 71 | + <Grid.RowDefinitions> |
| 72 | + <RowDefinition Height="Auto" /> |
| 73 | + <RowDefinition Height="*" /> |
| 74 | + </Grid.RowDefinitions> |
| 75 | + |
| 76 | + <!-- Header --> |
| 77 | + <Grid |
| 78 | + Grid.Row="0" |
| 79 | + Padding="12" |
| 80 | + Background="{ThemeResource AcrylicBackgroundFillColorDefaultBrush}" |
| 81 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 82 | + BorderThickness="0,0,0,1"> |
| 83 | + <!-- Title --> |
| 84 | + <TextBlock |
| 85 | + VerticalAlignment="Center" |
| 86 | + FontSize="14" |
| 87 | + Text="{helpers:ResourceString Name=Branches}" /> |
| 88 | + |
| 89 | + <!-- New Branch Button --> |
| 90 | + <Button |
| 91 | + x:Name="NewBranchButton" |
| 92 | + Height="24" |
| 93 | + Padding="8,0" |
| 94 | + HorizontalAlignment="Right" |
| 95 | + x:Load="False" |
| 96 | + Content="{helpers:ResourceString Name=NewBranch}" |
| 97 | + FontSize="12" |
| 98 | + ToolTipService.ToolTip="{helpers:ResourceString Name=NewBranch}" /> |
| 99 | + </Grid> |
| 100 | + |
| 101 | + <!-- Branches List --> |
80 | 102 | <ListView
|
| 103 | + Grid.Row="1" |
| 104 | + Padding="4" |
| 105 | + Background="{ThemeResource CardBackgroundFillColorDefaultBrush}" |
81 | 106 | ItemsSource="{x:Bind DirectoryPropertiesViewModel.BranchesNames, Mode=OneWay}"
|
82 | 107 | SelectedIndex="{x:Bind DirectoryPropertiesViewModel.SelectedBranchIndex, Mode=TwoWay}"
|
83 | 108 | SelectionMode="Single" />
|
84 |
| - </StackPanel> |
| 109 | + </Grid> |
85 | 110 | </Flyout>
|
86 | 111 | </Button.Flyout>
|
87 | 112 | </Button>
|
|
0 commit comments