Skip to content

Commit 68c16e3

Browse files
committed
Improve sizing of dialog so buttons are visible
1 parent bec11d6 commit 68c16e3

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

Rubberduck.Core/UI/Refactorings/ExtractMethod/ExtractMethodView.xaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:converters="clr-namespace:Rubberduck.UI.Converters"
77
xmlns:controls="clr-namespace:Rubberduck.UI.Controls"
8-
xmlns:em="clr-namespace:Rubberduck.Refactorings.ExtractMethod"
98
mc:Ignorable="d"
10-
d:DesignHeight="400" d:DesignWidth="600">
9+
d:DesignHeight="600" d:DesignWidth="600">
1110
<UserControl.Resources>
1211
<BitmapImage x:Key="WarningIcon" UriSource="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/exclamation-white.png" />
1312
<converters:BoolToHiddenVisibilityConverter x:Key="BoolToHiddenVisibility" />
14-
<!-- <CollectionViewSource x:Key="ParameterTypes" Source="{StaticResource em:ExtractMethodParameter.ParameterTypes}" /> -->
1513
<LinearGradientBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" EndPoint="0,1" StartPoint="0,0">
1614
<GradientStop Color="#FFD9F4FF" Offset="0"/>
1715
<GradientStop Color="#FF9BDDFB" Offset="1"/>
@@ -185,14 +183,6 @@
185183
</Style>
186184
</DataGrid.RowStyle>
187185
<DataGrid.Columns>
188-
<!--<DataGridComboBoxColumn
189-
SelectedValueBinding="{Binding ParameterType, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
190-
ItemsSource="{Binding Source={x:Static extractMethod:ExtractMethodParameter.ParameterTypes}}"
191-
SelectedValuePath="Key"
192-
DisplayMemberPath="Value"
193-
Width="*"
194-
EditingElementStyle="{StaticResource DropDownCellStyle}"
195-
IsReadOnly="False" /> -->
196186
<DataGridTextColumn
197187
Binding="{Binding ParameterType}"
198188
Header="{Resx ResxName=Rubberduck.Refactorings.RefactoringsUI, Key=ExtractMethod_ParameterAssignmentTypeColumnHeader}"
@@ -223,9 +213,12 @@
223213
</Grid.RowDefinitions>
224214
<Label
225215
Grid.Row="0"
216+
VerticalAlignment="Top"
217+
HorizontalAlignment="Left"
226218
Content="{Binding PreviewCaption}" />
227219
<controls:BindableTextEditor
228220
Grid.Row="1"
221+
Height="200"
229222
Margin="0,5,5,5"
230223
AllowDrop="False"
231224
FontFamily="Courier New"

0 commit comments

Comments
 (0)