Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a00c7dd

Browse files
committed
Use LinkDropDown in PR Creation view.
1 parent 3af440e commit a00c7dd

File tree

1 file changed

+7
-35
lines changed

1 file changed

+7
-35
lines changed

src/GitHub.VisualStudio/UI/Views/PullRequestCreationView.xaml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -99,41 +99,13 @@
9999
<TextBlock Foreground="{DynamicResource GitHubVsGrayText}" Text="{Binding TargetBranch}" />
100100
</StackPanel>
101101

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"/>
137109
</Grid>
138110

139111
</DockPanel>

0 commit comments

Comments
 (0)