DynamicDashboardEditor.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <UserControl x:Class="InABox.Wpf.Dashboard.Editor.DynamicDashboardEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:InABox.Wpf.Dashboard.Editor"
  7. mc:Ignorable="d"
  8. x:Name="Control">
  9. <Grid DataContext="{Binding ElementName=Control}">
  10. <Grid.RowDefinitions>
  11. <!-- Top editor boxes -->
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. <!-- Separator Row -->
  16. <RowDefinition Height="Auto"/>
  17. <!-- Presenter Editor -->
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="Auto"/>
  20. <RowDefinition Height="*"/>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="Auto"/>
  24. <ColumnDefinition Width="*"/>
  25. <ColumnDefinition Width="Auto"/>
  26. </Grid.ColumnDefinitions>
  27. <Label Content="Name:" Grid.Row="0" Grid.Column="0"
  28. Margin="0,0,5,0"
  29. VerticalAlignment="Center"/>
  30. <TextBox x:Name="NameTextBox" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
  31. Background="LightYellow"
  32. Height="25"
  33. VerticalContentAlignment="Center"
  34. Text="{Binding DashboardName}"/>
  35. <Label Content="Group:" Grid.Row="1" Grid.Column="0"
  36. Margin="0,5,5,0"
  37. VerticalAlignment="Center"/>
  38. <TextBox x:Name="GroupTextBox" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
  39. Background="LightYellow"
  40. Margin="0,5,0,0"
  41. Height="25"
  42. VerticalContentAlignment="Center"
  43. Text="{Binding DashboardGroup}"/>
  44. <Label Content="Type:" Grid.Row="2" Grid.Column="0"
  45. Margin="0,5,5,0"
  46. VerticalAlignment="Center"/>
  47. <ComboBox x:Name="PresentationType"
  48. Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
  49. ItemsSource="{Binding PresentationTypes}"
  50. SelectedValuePath="Item2"
  51. DisplayMemberPath="Item1"
  52. SelectedValue="{Binding SelectedPresentationType}"
  53. VerticalContentAlignment="Center"
  54. Height="25"
  55. Margin="0,5,0,0"
  56. MinWidth="100"/>
  57. <Separator Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3"
  58. Margin="5"/>
  59. <ContentControl x:Name="PresentationEditorControl"
  60. Grid.Row="4" Grid.RowSpan="3" Grid.ColumnSpan="2"
  61. Margin="0,0,0,0"
  62. MinHeight="100"/>
  63. <Button x:Name="SelectData" Content="Data"
  64. Grid.Row="4" Grid.Column="2"
  65. Padding="5" Margin="5,0,0,0"
  66. Click="SelectData_Click"/>
  67. <Button x:Name="SelectScripts" Content="Scripts"
  68. Grid.Row="5" Grid.Column="2"
  69. Padding="5" Margin="5,5,0,0"
  70. Click="SelectScripts_Click"/>
  71. </Grid>
  72. </UserControl>