|
11 | 11 | <Grid.RowDefinitions> |
12 | 12 | <RowDefinition Height="auto" /> |
13 | 13 | <RowDefinition Height="auto"/> |
14 | | - <RowDefinition></RowDefinition> |
15 | | - <RowDefinition Height="auto"/> |
16 | | - <RowDefinition Height="auto" x:Name="Fotter" MinHeight="18"/> |
| 14 | + <RowDefinition MinHeight="50"></RowDefinition> |
| 15 | + <RowDefinition Height="auto"/> |
| 16 | + <RowDefinition Height="auto" x:Name="Fotter" MinHeight="18"/> |
17 | 17 | </Grid.RowDefinitions> |
18 | 18 | <view:ViewDialog x:Name="Dialog"/> |
19 | 19 |
|
|
172 | 172 | <!--#endregion ToolBar--> |
173 | 173 |
|
174 | 174 | <!--#region Tabs--> |
| 175 | + <Grid Grid.Row="2"> |
| 176 | + <Grid.ColumnDefinitions> |
| 177 | + <ColumnDefinition MinWidth="50"/> |
| 178 | + <ColumnDefinition Width="auto"/> |
| 179 | + <ColumnDefinition Width="auto" x:Name="TableOfTransitionsColumn" /> |
| 180 | + </Grid.ColumnDefinitions> |
175 | 181 | <!--BorderBrush - it's color on IsMouseOver, OpacityMask - it's color on IsPressed--> |
176 | | - <TabControl Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Green" TabStripPlacement="Top" Padding="2,2,2,0" > |
177 | | - <TabItem Header="Node editor" Style="{DynamicResource StyleTabItem}" Background="{DynamicResource ColorWindowHeader}" Foreground="{DynamicResource ColorWindowHeaderTabItemForeground}" BorderBrush="{DynamicResource ColorElementMouseOver}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
178 | | - <view:ViewNodesCanvas x:Name="NodesCanvas" /> |
179 | | - </TabItem> |
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}"> |
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 | + <TabControl Grid.Column="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="Green" TabStripPlacement="Top" Padding="2,2,2,0" > |
| 183 | + <TabItem Header="Node editor" Style="{DynamicResource StyleTabItem}" Background="{DynamicResource ColorWindowHeader}" Foreground="{DynamicResource ColorWindowHeaderTabItemForeground}" BorderBrush="{DynamicResource ColorElementMouseOver}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
| 184 | + <view:ViewNodesCanvas x:Name="NodesCanvas" /> |
| 185 | + </TabItem> |
| 186 | + </TabControl> |
| 187 | + <GridSplitter Grid.Column="1" HorizontalAlignment="Center" x:Name="TableOfTransitionsSplitter" VerticalAlignment="Stretch" Background="{DynamicResource ColorWindowHeader}" Width="3" ShowsPreview="False" IsEnabled="False" /> |
| 188 | + <Expander Grid.Column="2" x:Name="TableOfTransitionsExpander" Style="{DynamicResource StyleExpander}" Grid.Row="4" HorizontalContentAlignment="Stretch" ExpandDirection="Left" > |
| 189 | + <Expander.Header> |
| 190 | + <Label Grid.Column="0" Style="{DynamicResource StyleLabelWithIcon}" OpacityMask="{DynamicResource ColorElementMouseOver}"> |
| 191 | + Table of transitions |
| 192 | + <Label.LayoutTransform > |
| 193 | + <RotateTransform Angle="90"/> |
| 194 | + </Label.LayoutTransform> |
| 195 | + </Label> |
| 196 | + </Expander.Header> |
| 197 | + <Expander.Content> |
| 198 | + <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Style="{DynamicResource StyleScrollViewer}"> |
| 199 | + <Grid Grid.IsSharedSizeScope="True" > |
| 200 | + <Grid.ColumnDefinitions> |
| 201 | + <ColumnDefinition SharedSizeGroup="StateFrom"/> |
| 202 | + <ColumnDefinition Width="*"/> |
| 203 | + <ColumnDefinition SharedSizeGroup="TransitionName"/> |
| 204 | + <ColumnDefinition Width="*"/> |
| 205 | + <ColumnDefinition SharedSizeGroup="StateTo"/> |
| 206 | + <ColumnDefinition Width="*"/> |
| 207 | + </Grid.ColumnDefinitions> |
| 208 | + <Grid.RowDefinitions> |
| 209 | + <RowDefinition Height="auto"/> |
| 210 | + <RowDefinition/> |
| 211 | + </Grid.RowDefinitions> |
| 212 | + <Label Grid.Column="0" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconStateFrom}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="11" MinWidth="11">State from</Label> |
| 213 | + <Label Grid.Column="2" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconTransitionName}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="14" MinWidth="14">Transition name</Label> |
| 214 | + <Label Grid.Column="4" Style="{DynamicResource StyleLabelWithIcon}" BorderBrush="{DynamicResource IconStateTo}" OpacityMask="{DynamicResource ColorMessagesForeground}" MinHeight="11" MinWidth="11">State To</Label> |
198 | 215 |
|
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" |
| 216 | + <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" |
200 | 217 | VirtualizingStackPanel.IsVirtualizing="True" |
201 | 218 | VirtualizingStackPanel.VirtualizationMode="Recycling" |
202 | 219 | VirtualizingStackPanel.CacheLength="1" |
203 | 220 | VirtualizingStackPanel.CacheLengthUnit="Page" |
204 | 221 | VirtualizingStackPanel.ScrollUnit="Pixel"> |
205 | | - <ListBox.ItemTemplate> |
206 | | - <DataTemplate> |
207 | | - <view:ViewTableOfTransitionsItem ViewModel="{Binding}" /> |
208 | | - </DataTemplate> |
209 | | - </ListBox.ItemTemplate> |
210 | | - </ListBox> |
211 | | - </Grid> |
212 | | - </TabItem> |
213 | | - </TabControl> |
| 222 | + <ListBox.ItemTemplate> |
| 223 | + <DataTemplate> |
| 224 | + <view:ViewTableOfTransitionsItem ViewModel="{Binding}" /> |
| 225 | + </DataTemplate> |
| 226 | + </ListBox.ItemTemplate> |
| 227 | + </ListBox> |
| 228 | + </Grid> |
| 229 | + </ScrollViewer> |
| 230 | + </Expander.Content> |
| 231 | + </Expander> |
| 232 | + </Grid> |
214 | 233 | <!--#endregion Tabs--> |
215 | 234 |
|
216 | 235 | <!--#region Error List--> |
217 | | - <GridSplitter Grid.Row="3" x:Name="ErrorListSplitter" HorizontalAlignment="Stretch" Background="{DynamicResource ColorWindowHeader}" Height="3" ShowsPreview="False" IsEnabled="False"/> |
| 236 | + <GridSplitter Grid.Row="3" x:Name="ErrorListSplitter" HorizontalAlignment="Stretch" VerticalAlignment="Center" Background="{DynamicResource ColorWindowHeader}" Height="3" ShowsPreview="False" IsEnabled="False"/> |
218 | 237 | <Expander Style="{DynamicResource StyleExpander}" x:Name="ErrorListExpander" Grid.Row="4" HorizontalContentAlignment="Stretch" ExpandDirection="Up" Margin="3,0,0,0" > |
219 | 238 | <Expander.Header> |
220 | 239 | <Grid > |
|
0 commit comments