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

Commit 2c94748

Browse files
Trying to display the control correctly
1 parent bfa18c6 commit 2c94748

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

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

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,31 +149,38 @@
149149
SpellCheck.IsEnabled="True"
150150
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.PullRequestCreationTitleTextBox}"/>
151151

152+
<ghfvs:PromptTextBox Grid.Row="2"
153+
MinHeight="100"
154+
Margin="10,5"
155+
AcceptsReturn="True"
156+
PromptText="{x:Static ghfvs:Resources.Description}"
157+
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}"
158+
Style="{DynamicResource GitHubVsPromptTextBox}"
159+
VerticalScrollBarVisibility="Auto"
160+
TextWrapping="Wrap"
161+
SpellCheck.IsEnabled="True"
162+
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.PullRequestCreationDescriptionTextBox}"/>
163+
152164
<ghfvs:AutoCompleteBox
153-
x:Name="commitMessageTextBox"
154-
ScrollViewer.CanContentScroll="False"
155-
Margin="0"
156-
HorizontalAlignment="Stretch"
157-
TabIndex="0"
158-
TextBoxStyle="{StaticResource GitHubPromptRichText}">
165+
Grid.Row="3"
166+
MinHeight="100"
167+
Margin="10,5"
168+
Advisor="{Binding AutoCompleteAdvisor}"
169+
>
159170
<ghfvs:AutoCompleteBox.ItemTemplate>
160171
<DataTemplate>
161172
<ghfvs:AutoCompleteSuggestionView ViewModel="{Binding}" />
162173
</DataTemplate>
163174
</ghfvs:AutoCompleteBox.ItemTemplate>
164175
<ghfvs:AutoCompleteBox.InputElement>
165176
<ghfvs:TextBoxAutoCompleteTextInput>
166-
<ghfvs:PromptTextBox Grid.Row="2"
167-
MinHeight="100"
168-
Margin="10,5"
169-
AcceptsReturn="True"
177+
<ghfvs:PromptTextBox AcceptsReturn="True"
170178
PromptText="{x:Static ghfvs:Resources.Description}"
171179
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}"
172180
Style="{DynamicResource GitHubVsPromptTextBox}"
173181
VerticalScrollBarVisibility="Auto"
174182
TextWrapping="Wrap"
175-
SpellCheck.IsEnabled="True"
176-
AutomationProperties.AutomationId="{x:Static ghfvs:AutomationIDs.PullRequestCreationDescriptionTextBox}"/>
183+
SpellCheck.IsEnabled="True"/>
177184
</ghfvs:TextBoxAutoCompleteTextInput>
178185
</ghfvs:AutoCompleteBox.InputElement>
179186
</ghfvs:AutoCompleteBox>

0 commit comments

Comments
 (0)