12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <UserControl x:Class="InABox.Wpf.Dashboard.Editor.DynamicDashboardEditor"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:InABox.Wpf.Dashboard.Editor"
- mc:Ignorable="d"
- x:Name="Control">
- <Grid DataContext="{Binding ElementName=Control}">
- <Grid.RowDefinitions>
- <!-- Top editor boxes -->
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
-
- <!-- Separator Row -->
- <RowDefinition Height="Auto"/>
-
- <!-- Presenter Editor -->
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
-
- <Label Content="Name:" Grid.Row="0" Grid.Column="0"
- Margin="0,0,5,0"
- VerticalAlignment="Center"/>
- <TextBox x:Name="NameTextBox" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
- Background="LightYellow"
- Height="25"
- VerticalContentAlignment="Center"
- Text="{Binding DashboardName}"/>
-
- <Label Content="Group:" Grid.Row="1" Grid.Column="0"
- Margin="0,5,5,0"
- VerticalAlignment="Center"/>
- <TextBox x:Name="GroupTextBox" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
- Background="LightYellow"
- Margin="0,5,0,0"
- Height="25"
- VerticalContentAlignment="Center"
- Text="{Binding DashboardGroup}"/>
-
- <Label Content="Type:" Grid.Row="2" Grid.Column="0"
- Margin="0,5,5,0"
- VerticalAlignment="Center"/>
- <ComboBox x:Name="PresentationType"
- Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
- ItemsSource="{Binding PresentationTypes}"
- SelectedValuePath="Item2"
- DisplayMemberPath="Item1"
- SelectedValue="{Binding SelectedPresentationType}"
- VerticalContentAlignment="Center"
- Height="25"
- Margin="0,5,0,0"
- MinWidth="100"/>
- <Separator Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
- Margin="5"/>
- <ContentControl x:Name="PresentationEditorControl"
- Grid.Row="4" Grid.RowSpan="3" Grid.ColumnSpan="2"
- Margin="0,0,0,0"
- MinHeight="100"/>
- <Button x:Name="SelectData" Content="Data"
- Grid.Row="4" Grid.Column="2"
- Padding="5" Margin="5,0,0,0"
- Click="SelectData_Click"/>
- <Button x:Name="SelectScripts" Content="Scripts"
- Grid.Row="5" Grid.Column="2"
- Padding="5" Margin="5,5,0,0"
- Click="SelectScripts_Click"/>
- </Grid>
- </UserControl>
|