|
99 | 99 | <TextBlock Foreground="{DynamicResource GitHubVsGrayText}" Text="{Binding TargetBranch}" /> |
100 | 100 | </StackPanel> |
101 | 101 |
|
102 | | - <ui:GitHubActionLink x:Name="sourceBranch" |
103 | | - Grid.Column="1" |
104 | | - Margin="5,0" |
105 | | - VerticalAlignment="Center" |
106 | | - Content="{Binding SourceBranch.Name}" |
107 | | - HasDropDown="True" |
108 | | - ToolTip="Select a branch"> |
109 | | - <i:Interaction.Triggers> |
110 | | - <i:EventTrigger EventName="Click"> |
111 | | - <ui:OpenPopupAction TargetName="branchPopup" /> |
112 | | - </i:EventTrigger> |
113 | | - </i:Interaction.Triggers> |
114 | | - </ui:GitHubActionLink> |
115 | | - |
116 | | - <Popup x:Name="branchPopup" |
117 | | - AllowsTransparency="True" |
118 | | - Placement="Bottom" |
119 | | - PlacementTarget="{Binding ElementName=branchSelection}" |
120 | | - StaysOpen="False"> |
121 | | - <Border Style="{DynamicResource GitHubComboBoxBorder}"> |
122 | | - <DockPanel Width="100" Style="{DynamicResource GitHubComboBoxDockPanelContainer}"> |
123 | | - <ListBox DisplayMemberPath="Name" |
124 | | - DockPanel.Dock="Top" |
125 | | - ItemsSource="{Binding Branches}" |
126 | | - SelectedItem="{Binding SourceBranch}" |
127 | | - Style="{DynamicResource GitHubPopupThing}"> |
128 | | - <i:Interaction.Triggers> |
129 | | - <i:EventTrigger EventName="SelectionChanged"> |
130 | | - <ui:ClosePopupAction TargetName="branchPopup" /> |
131 | | - </i:EventTrigger> |
132 | | - </i:Interaction.Triggers> |
133 | | - </ListBox> |
134 | | - </DockPanel> |
135 | | - </Border> |
136 | | - </Popup> |
| 102 | + <ui:LinkDropDown Header="Source Branch" |
| 103 | + ItemsSource="{Binding Branches}" |
| 104 | + DisplayMemberPath="Name" |
| 105 | + SelectedItem="{Binding SourceBranch}" |
| 106 | + ToolTip="Select a branch" |
| 107 | + Margin="0,1,0,0" |
| 108 | + Grid.Column="1"/> |
137 | 109 | </Grid> |
138 | 110 |
|
139 | 111 | </DockPanel> |
|
0 commit comments