|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | | - xmlns:view="clr-namespace:SimpleStateMachineNodeEditor.View" |
| 6 | + xmlns:view="clr-namespace:SimpleStateMachineNodeEditor.View" xmlns:styles="clr-namespace:SimpleStateMachineNodeEditor.Styles" |
7 | 7 | x:Class="SimpleStateMachineNodeEditor.View.MainWindow" |
8 | 8 | mc:Ignorable="d" |
9 | 9 | Title="SimpleStateMachineNodeEditor" d:DesignWidth="550" Height="738.592" MinWidth="570" MinHeight="400" BorderThickness="1" Padding="7,0,7,7" ResizeMode="CanResizeWithGrip" BorderBrush="{DynamicResource ColorWindowBorder}" Background="{DynamicResource ColorWindowHeader}" Foreground="{x:Null}" WindowStyle="None" AllowsTransparency="True" Style="{DynamicResource CustomWindowStyle}"> |
|
173 | 173 |
|
174 | 174 | <!--#region Tabs--> |
175 | 175 | <!--BorderBrush - it's color on IsMouseOver, OpacityMask - it's color on IsPressed--> |
176 | | - <TabControl Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}" TabStripPlacement="Top" Padding="2,2,2,0" > |
| 176 | + <TabControl Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Green" TabStripPlacement="Top" Padding="2,2,2,0" > |
177 | 177 | <TabItem Header="Node editor" Style="{DynamicResource StyleTabItem}" Background="{DynamicResource ColorWindowHeader}" Foreground="{DynamicResource ColorWindowHeaderTabItemForeground}" BorderBrush="{DynamicResource ColorElementMouseOver}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
178 | 178 | <view:ViewNodesCanvas x:Name="NodesCanvas" /> |
179 | 179 | </TabItem> |
180 | 180 | <!--<TabItem Header="Transitions table" ToolTip="" Style="{DynamicResource StyleTabItem}" Foreground="{DynamicResource ColorForeground}"/>--> |
181 | | - <TabItem Header="Transitions table" Style="{DynamicResource StyleTabItem}" Background="{DynamicResource ColorWindowHeader}" Foreground="{DynamicResource ColorWindowHeaderTabItemForeground}" BorderBrush="{DynamicResource ColorElementMouseOver}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
| 181 | + <TabItem Header="Transitions table" Style="{DynamicResource StyleTabItem}" Background="{DynamicResource ColorWindowHeader}" Foreground="{DynamicResource ColorWindowHeaderTabItemForeground}" BorderBrush="{DynamicResource ColorElementMouseOver}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
| 182 | + <Grid Grid.IsSharedSizeScope="True"> |
| 183 | + <Grid.ColumnDefinitions> |
| 184 | + <ColumnDefinition SharedSizeGroup="StateFrom"/> |
| 185 | + <ColumnDefinition Width="*"/> |
| 186 | + <ColumnDefinition SharedSizeGroup="TransitionName"/> |
| 187 | + <ColumnDefinition Width="*"/> |
| 188 | + <ColumnDefinition SharedSizeGroup="StateTo"/> |
| 189 | + <ColumnDefinition Width="*"/> |
| 190 | + </Grid.ColumnDefinitions> |
| 191 | + <Grid.RowDefinitions> |
| 192 | + <RowDefinition Height="auto"/> |
| 193 | + <RowDefinition/> |
| 194 | + </Grid.RowDefinitions> |
| 195 | + <Label Grid.Column="0" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconStateFrom}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="11" MinWidth="11">State from</Label> |
| 196 | + <Label Grid.Column="2" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconTransitionName}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="14" MinWidth="14">Transition name</Label> |
| 197 | + <Label Grid.Column="4" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconStateTo}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="11" MinWidth="11">State To</Label> |
182 | 198 |
|
183 | | - <ListBox x:Name="TableOfTransitions" Template="{DynamicResource TemplateListBox}" Background="{DynamicResource ColorWindowHeader}" BorderBrush="{DynamicResource ColorMessagesBorder}" Foreground="{DynamicResource ColorMessagesForeground}" ItemContainerStyle="{DynamicResource StyleListBoxTransitionsItem}" AlternationCount="2" Grid.IsSharedSizeScope="True" |
| 199 | + <ListBox Grid.Row="1" Grid.ColumnSpan="6" x:Name="TableOfTransitions" Template="{DynamicResource TemplateListBox}" Background="{DynamicResource ColorWindowHeader}" BorderBrush="{DynamicResource ColorMessagesBorder}" Foreground="{DynamicResource ColorMessagesForeground}" ItemContainerStyle="{DynamicResource StyleListBoxTransitionsItem}" AlternationCount="2" |
184 | 200 | VirtualizingStackPanel.IsVirtualizing="True" |
185 | 201 | VirtualizingStackPanel.VirtualizationMode="Recycling" |
186 | 202 | VirtualizingStackPanel.CacheLength="1" |
|
192 | 208 | </DataTemplate> |
193 | 209 | </ListBox.ItemTemplate> |
194 | 210 | </ListBox> |
| 211 | + </Grid> |
195 | 212 | </TabItem> |
196 | 213 | </TabControl> |
197 | 214 | <!--#endregion Tabs--> |
|
212 | 229 | <ColumnDefinition Width="Auto"/> |
213 | 230 | <ColumnDefinition /> |
214 | 231 | </Grid.ColumnDefinitions> |
215 | | - <Label Grid.Column="0" x:Name="LabelErrorList" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconErrorList}" OpacityMask="{DynamicResource ColorElementMouseOver}">Error List</Label> |
| 232 | + <Label Grid.Column="0" x:Name="LabelErrorList" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconErrorList}" OpacityMask="{DynamicResource ColorElementMouseOver}" MinHeight="14" MinWidth="14">Error List</Label> |
216 | 233 | <Separator Grid.Column="1" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" /> |
217 | | - <Label Grid.Column="2" x:Name="LabelError" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconError}" OpacityMask="{DynamicResource ColorElementMouseOver}">Erros</Label> |
| 234 | + <Label Grid.Column="2" x:Name="LabelError" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconError}" OpacityMask="{DynamicResource ColorElementMouseOver}" MinHeight="14" MinWidth="14">Erros</Label> |
218 | 235 | <Separator Grid.Column="3" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" /> |
219 | | - <Label Grid.Column="4" x:Name="LabelWarning" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconWarning}" OpacityMask="{DynamicResource ColorElementMouseOver}">Warnings</Label> |
| 236 | + <Label Grid.Column="4" x:Name="LabelWarning" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconWarning}" OpacityMask="{DynamicResource ColorElementMouseOver}" MinHeight="14" MinWidth="14">Warnings</Label> |
220 | 237 | <Separator Grid.Column="5" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" /> |
221 | | - <Label Grid.Column="6" x:Name="LabelInformation" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconInformation}" OpacityMask="{DynamicResource ColorElementMouseOver}">Messages</Label> |
| 238 | + <Label Grid.Column="6" x:Name="LabelInformation" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconInformation}" OpacityMask="{DynamicResource ColorElementMouseOver}" MinHeight="14" MinWidth="14">Messages</Label> |
222 | 239 | <Separator Grid.Column="7" Visibility="{Binding ElementName=LabelDebug, Path=Visibility}" Style="{DynamicResource TemplateSeparator}" Height="Auto" BorderThickness="0,0,1,0" /> |
223 | | - <Label Grid.Column="8" x:Name="LabelDebug" Visibility="Hidden" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconDebug}" OpacityMask="{DynamicResource ColorElementMouseOver}">Debug</Label> |
| 240 | + <Label Grid.Column="8" x:Name="LabelDebug" Visibility="Hidden" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconDebug}" OpacityMask="{DynamicResource ColorElementMouseOver}" MinHeight="14" MinWidth="14">Debug</Label> |
224 | 241 | <Label Grid.Column="9" x:Name="LabelErrorListUpdate" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconUpdate}" OpacityMask="{DynamicResource ColorElementMouseOver}" HorizontalAlignment="Right" Margin="0,0,5,0">Update/Clear</Label> |
225 | 242 | </Grid> |
226 | 243 | </Expander.Header> |
|
0 commit comments