|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 6 | xmlns:local="clr-namespace:RenesasDebugPackage.GUI"
|
| 7 | + xmlns:bspe="clr-namespace:BSPEngine;assembly=BSPEngine" |
| 8 | + xmlns:sys="clr-namespace:System;assembly=mscorlib" |
| 9 | + xmlns:coll="clr-namespace:System.Collections;assembly=mscorlib" |
7 | 10 | mc:Ignorable="d"
|
8 | 11 | d:DesignHeight="450" d:DesignWidth="800">
|
9 | 12 | <Grid>
|
10 | 13 | <Grid.Resources>
|
11 | 14 | <local:MaxWidthConverter x:Key="MaxWidthConverter"/>
|
| 15 | + <ItemsPanelTemplate x:Key="HorizontalItemsPanel"> |
| 16 | + <StackPanel Orientation="Horizontal"/> |
| 17 | + </ItemsPanelTemplate> |
| 18 | + <Thickness x:Key="TableElementMargin">0 2 0 2</Thickness> |
12 | 19 | </Grid.Resources>
|
| 20 | + <Grid.RowDefinitions> |
| 21 | + <RowDefinition Height="Auto"/> |
| 22 | + <RowDefinition Height="Auto"/> |
| 23 | + <RowDefinition Height="Auto"/> |
| 24 | + <RowDefinition Height="Auto"/> |
| 25 | + <RowDefinition Height="Auto"/> |
| 26 | + <RowDefinition Height="Auto"/> |
| 27 | + <RowDefinition Height="Auto"/> |
| 28 | + <RowDefinition Height="Auto"/> |
| 29 | + <RowDefinition Height="Auto"/> |
| 30 | + <RowDefinition Height="Auto"/> |
| 31 | + </Grid.RowDefinitions> |
| 32 | + <Grid.ColumnDefinitions> |
| 33 | + <ColumnDefinition Width="Auto"/> |
| 34 | + <ColumnDefinition Width="*"/> |
| 35 | + </Grid.ColumnDefinitions> |
| 36 | + |
| 37 | + <Label Content="Programming interface:" Grid.Row="0"/> |
| 38 | + <ListBox Grid.Row="0" Grid.Column="1" SelectedItem="{Binding ProgrammingInterface}" Margin="{StaticResource TableElementMargin}" ItemsPanel="{StaticResource HorizontalItemsPanel}"> |
| 39 | + <ListBox.ItemsSource> |
| 40 | + <coll:ArrayList> |
| 41 | + <local:KnownProgrammingInterface>E1</local:KnownProgrammingInterface> |
| 42 | + <local:KnownProgrammingInterface>E2</local:KnownProgrammingInterface> |
| 43 | + <local:KnownProgrammingInterface>E2LITE</local:KnownProgrammingInterface> |
| 44 | + <local:KnownProgrammingInterface>EZ</local:KnownProgrammingInterface> |
| 45 | + <local:KnownProgrammingInterface>IECUBE</local:KnownProgrammingInterface> |
| 46 | + </coll:ArrayList> |
| 47 | + </ListBox.ItemsSource> |
| 48 | + </ListBox> |
| 49 | + |
| 50 | + <Label Content="Program FLASH memory:" Grid.Row="1"/> |
| 51 | + <ListBox Grid.Row="1" Grid.Column="1" SelectedItem="{Binding ProgramMode}" Margin="{StaticResource TableElementMargin}" ItemsPanel="{StaticResource HorizontalItemsPanel}"> |
| 52 | + <ListBox.ItemsSource> |
| 53 | + <coll:ArrayList> |
| 54 | + <bspe:ProgramMode>Enabled</bspe:ProgramMode> |
| 55 | + <bspe:ProgramMode>Disabled</bspe:ProgramMode> |
| 56 | + <bspe:ProgramMode>Auto</bspe:ProgramMode> |
| 57 | + </coll:ArrayList> |
| 58 | + </ListBox.ItemsSource> |
| 59 | + <ListBox.ItemTemplate> |
| 60 | + <DataTemplate> |
| 61 | + <TextBlock> |
| 62 | + <TextBlock.Style> |
| 63 | + <Style TargetType="TextBlock"> |
| 64 | + <Style.Triggers> |
| 65 | + <DataTrigger Binding="{Binding}" Value="Enabled"> |
| 66 | + <Setter Property="Text" Value="Always"/> |
| 67 | + </DataTrigger> |
| 68 | + <DataTrigger Binding="{Binding}" Value="Disabled"> |
| 69 | + <Setter Property="Text" Value="Never"/> |
| 70 | + </DataTrigger> |
| 71 | + <DataTrigger Binding="{Binding}" Value="Auto"> |
| 72 | + <Setter Property="Text" Value="If rebuilt since last load"/> |
| 73 | + </DataTrigger> |
| 74 | + </Style.Triggers> |
| 75 | + <Setter Property="Foreground" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:RenesasDebugSettingsControl}}"/> |
| 76 | + </Style> |
| 77 | + </TextBlock.Style> |
| 78 | + </TextBlock> |
| 79 | + </DataTemplate> |
| 80 | + </ListBox.ItemTemplate> |
| 81 | + </ListBox> |
| 82 | + |
13 | 83 | <Expander Grid.ColumnSpan="2" MinHeight="64" Grid.Row="14" Header="Advanced settings" IsExpanded="False">
|
14 | 84 | <Grid MinHeight="80" Margin="20 0 5 5">
|
15 | 85 | <Grid.RowDefinitions>
|
|
0 commit comments