|
7 | 7 | xmlns:styles="clr-namespace:SimpleStateMachineNodeEditor.Styles" |
8 | 8 | mc:Ignorable="d" |
9 | 9 | d:DesignHeight="450" d:DesignWidth="800"> |
10 | | - <Border BorderThickness="1" BorderBrush="Red"> |
11 | | - <Grid HorizontalAlignment="Stretch" x:Name="GridElement" > |
| 10 | + <Grid x:Name="GridElement" HorizontalAlignment="Stretch" > |
12 | 11 | <Grid.ColumnDefinitions> |
13 | | - <ColumnDefinition SharedSizeGroup="StateFrom"/> |
14 | | - <!--<ColumnDefinition/>--> |
15 | | - <ColumnDefinition SharedSizeGroup="TransitionName"/> |
16 | | - <!--<ColumnDefinition/>--> |
17 | | - <ColumnDefinition SharedSizeGroup="StateTo"/> |
| 12 | + <ColumnDefinition x:Name="ColumnStateFrom" SharedSizeGroup="StateFrom"/> |
| 13 | + <ColumnDefinition Width="*"/> |
| 14 | + <ColumnDefinition x:Name="TransitionName" SharedSizeGroup="TransitionName"/> |
| 15 | + <ColumnDefinition Width="*"/> |
| 16 | + <ColumnDefinition x:Name="StateTo" SharedSizeGroup="StateTo"/> |
| 17 | + <ColumnDefinition Width="*"/> |
18 | 18 | </Grid.ColumnDefinitions> |
19 | | - <styles:MyTextBox Grid.Column="0" x:Name="TextBoxElementStateFrom" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="3" /> |
20 | | - <!--<Separator Grid.Column="1" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" />--> |
21 | | - <styles:MyTextBox Grid.Column="1" x:Name="TextBoxElementTransitionName" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" TextWrapping="NoWrap" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="3" /> |
22 | | - <!--<Separator Grid.Column="3" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" />--> |
23 | | - <styles:MyTextBox Grid.Column="2" x:Name="TextBoxElementStateTo" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" TextWrapping="NoWrap" HorizontalAlignment="Left" VerticalAlignment="Center" Padding="3" /> |
| 19 | + <Grid.RowDefinitions> |
| 20 | + <RowDefinition /> |
| 21 | + </Grid.RowDefinitions> |
| 22 | + <styles:MyTextBox Grid.Column="0" Text="Test1" Grid.Row="0" Background="Red" x:Name="TextBoxElementStateFrom" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" TextWrapping="NoWrap" Padding="3" /> |
| 23 | + <styles:MyTextBox Grid.Column="2" Text="Test2" Grid.Row="0" Background="Green" x:Name="TextBoxElementTransitionName" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" TextWrapping="NoWrap" Padding="3" /> |
| 24 | + <styles:MyTextBox Grid.Column="4" Text="Test3" Grid.Row="0" Background="Blue" x:Name="TextBoxElementStateTo" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}}}" TextWrapping="NoWrap" Padding="3" /> |
24 | 25 | </Grid> |
25 | | - </Border> |
26 | 26 | </UserControl> |
27 | 27 |
|
28 | 28 |
|
0 commit comments