Skip to content

Commit 345e99d

Browse files
author
vzyrianov
committed
Set max width for grid and left align stackpanel content to keep design the same but fix content being shrunk before the margin is
1 parent b69538a commit 345e99d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

iTraceVS/itrace_windowControl.xaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
mc:Ignorable="d"
99
d:DesignHeight="300" d:DesignWidth="300"
1010
Name="MyToolWindow">
11-
<Grid>
12-
<StackPanel Orientation="Vertical">
13-
<TextBlock HorizontalAlignment="Center" Height="45" Width="120" FontSize="30" Margin="10,5,170,5"><Run Text="iTraceVS"/></TextBlock>
14-
<Button Content="Connect to Core" Click="attemptConnection" Height="45" Width="120" x:Name="button1" Margin="10,5,170,5"/>
15-
<CheckBox Content="Display Reticle" Checked="Reticle_Checked" Unchecked="Reticle_Unchecked" Name="displayBox" Height="20" FontSize="15" Width="125" Margin="10,5,170,5"/>
16-
<CheckBox Content="Highlight Tokens" Checked="Highlight_Checked" Unchecked="Highlight_Unchecked" Name="highlightBox" Height="20" FontSize="15" Width="145" Margin="10,5,145,5"/>
11+
<Grid MaxWidth="300">
12+
<StackPanel Orientation="Vertical" HorizontalAlignment="Left">
13+
<TextBlock HorizontalAlignment="Left" Height="45" Width="120" FontSize="30" Margin="10,5,10,5"><Run Text="iTraceVS"/></TextBlock>
14+
<Button HorizontalAlignment="Left" Content="Connect to Core" Click="attemptConnection" Height="45" Width="120" x:Name="button1" Margin="10,5,5,5"/>
15+
<CheckBox HorizontalAlignment="Left" Content="Display Reticle" Checked="Reticle_Checked" Unchecked="Reticle_Unchecked" Name="displayBox" Height="20" FontSize="15" Width="125" Margin="10,5,5,5"/>
16+
<CheckBox HorizontalAlignment="Left" Content="Highlight Tokens" Checked="Highlight_Checked" Unchecked="Highlight_Unchecked" Name="highlightBox" Height="20" FontSize="15" Width="145" Margin="10,5,5,5"/>
1717
</StackPanel>
1818
</Grid>
1919
</UserControl>

0 commit comments

Comments
 (0)