|
1 |
| -<Window |
2 |
| - x:Class="WaveTech.Scutex.Manager.Windows.FeaturesWindow" |
3 |
| - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 |
| - xmlns:themes="clr-namespace:WPF.Themes;assembly=WPF.Themes" |
6 |
| - xmlns:Controls="clr-namespace:WaveTech.Scutex.Manager.Controls" xmlns:Forms="clr-namespace:WaveTech.Scutex.Manager.Forms" |
7 |
| - x:Name="productFeaturesWindow" |
8 |
| - xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" Title="Product Features" Height="450" Width="450" WindowStartupLocation="CenterOwner"> |
| 1 | +<Window x:Class="WaveTech.Scutex.Manager.Windows.FeaturesWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:Controls="clr-namespace:WaveTech.Scutex.Manager.Controls" |
| 5 | + xmlns:dg="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" |
| 6 | + xmlns:Forms="clr-namespace:WaveTech.Scutex.Manager.Forms" |
| 7 | + xmlns:themes="clr-namespace:WPF.Themes;assembly=WPF.Themes" |
| 8 | + x:Name="productFeaturesWindow" |
| 9 | + Title="Product Features" |
| 10 | + Width="450" |
| 11 | + Height="450" |
| 12 | + WindowStartupLocation="CenterOwner"> |
9 | 13 | <Window.Resources>
|
10 | 14 | <ResourceDictionary>
|
11 | 15 | <ResourceDictionary.MergedDictionaries>
|
|
23 | 27 | <ColumnDefinition />
|
24 | 28 | </Grid.ColumnDefinitions>
|
25 | 29 |
|
26 |
| - <StackPanel HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" Orientation="Horizontal" > |
| 30 | + <StackPanel Grid.Row="0" |
| 31 | + Grid.Column="0" |
| 32 | + HorizontalAlignment="Left" |
| 33 | + VerticalAlignment="Center" |
| 34 | + Orientation="Horizontal"> |
27 | 35 | <TextBlock Width="10" />
|
28 |
| - <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="Black" Grid.Row="0" Grid.Column="0" Text="Features for Product: " /> |
29 |
| - <TextBlock x:Name="lblProductName" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="Black" FontWeight="Bold" Grid.Row="0" Grid.Column="0" Text="" /> |
| 36 | + <TextBlock Grid.Row="0" |
| 37 | + Grid.Column="0" |
| 38 | + HorizontalAlignment="Left" |
| 39 | + VerticalAlignment="Center" |
| 40 | + Foreground="Black" |
| 41 | + Text="Features for Product: " /> |
| 42 | + <TextBlock x:Name="lblProductName" |
| 43 | + Grid.Row="0" |
| 44 | + Grid.Column="0" |
| 45 | + HorizontalAlignment="Left" |
| 46 | + VerticalAlignment="Center" |
| 47 | + FontWeight="Bold" |
| 48 | + Foreground="Black" |
| 49 | + Text="" /> |
30 | 50 | </StackPanel>
|
31 | 51 |
|
32 |
| - <GroupBox Grid.Row="1" Grid.Column="0" Header="Add New Feature" Foreground="Black" Margin="4,4,4,4"> |
| 52 | + <GroupBox Grid.Row="1" |
| 53 | + Grid.Column="0" |
| 54 | + Margin="4,4,4,4" |
| 55 | + Foreground="Black" |
| 56 | + Header="Add New Feature"> |
33 | 57 | <Grid>
|
34 | 58 | <Grid.RowDefinitions>
|
35 | 59 | <RowDefinition Height="25" />
|
|
42 | 66 | <ColumnDefinition />
|
43 | 67 | </Grid.ColumnDefinitions>
|
44 | 68 |
|
45 |
| - <TextBlock Grid.Row="0" Text="Feature Name:" Foreground="Black" VerticalAlignment="Bottom" /> |
46 |
| - <TextBox Grid.Row="1" x:Name="txtFeatureName" /> |
47 |
| - <TextBlock Grid.Row="2" Text="Feature Description:" Foreground="Black" VerticalAlignment="Bottom" /> |
48 |
| - <TextBox Grid.Row="3" x:Name="txtFeatureDescription" /> |
| 69 | + <TextBlock Grid.Row="0" |
| 70 | + VerticalAlignment="Bottom" |
| 71 | + Foreground="Black" |
| 72 | + Text="Feature Name:" /> |
| 73 | + <TextBox x:Name="txtFeatureName" Grid.Row="1" /> |
| 74 | + <TextBlock Grid.Row="2" |
| 75 | + VerticalAlignment="Bottom" |
| 76 | + Foreground="Black" |
| 77 | + Text="Feature Description:" /> |
| 78 | + <TextBox x:Name="txtFeatureDescription" Grid.Row="3" /> |
49 | 79 |
|
50 |
| - <Button Grid.Row="4" x:Name="btnAddFeature" Content="Add Feature" Margin="4,4,4,4" HorizontalAlignment="Right" Click="btnAddFeature_Click" /> |
| 80 | + <Button x:Name="btnAddFeature" |
| 81 | + Grid.Row="4" |
| 82 | + Margin="4,4,4,4" |
| 83 | + HorizontalAlignment="Right" |
| 84 | + Click="btnAddFeature_Click" |
| 85 | + Content="Add Feature" /> |
51 | 86 | </Grid>
|
52 | 87 | </GroupBox>
|
53 | 88 |
|
54 |
| - <GroupBox Grid.Row="2" Grid.Column="0" Header="Features" Foreground="Black" Margin="4,4,4,4"> |
| 89 | + <GroupBox Grid.Row="2" |
| 90 | + Grid.Column="0" |
| 91 | + Margin="4,4,4,4" |
| 92 | + Foreground="Black" |
| 93 | + Header="Features"> |
55 | 94 | <Grid>
|
56 | 95 | <Grid.RowDefinitions>
|
57 | 96 | <RowDefinition Height="*" />
|
|
60 | 99 | <Grid.ColumnDefinitions>
|
61 | 100 | <ColumnDefinition />
|
62 | 101 | </Grid.ColumnDefinitions>
|
63 |
| - <DataGrid x:Name="gridFeatures" Grid.Row="0" ItemsSource="{Binding SelectedProduct.Features, ElementName=productFeaturesWindow, Mode=TwoWay}" AutoGenerateColumns="False" |
64 |
| - CanUserAddRows="False" CanUserDeleteRows="False" SelectionMode="Single" VerticalAlignment="Stretch"> |
| 102 | + <DataGrid x:Name="gridFeatures" |
| 103 | + Grid.Row="0" |
| 104 | + VerticalAlignment="Stretch" |
| 105 | + AutoGenerateColumns="False" |
| 106 | + CanUserAddRows="False" |
| 107 | + CanUserDeleteRows="False" |
| 108 | + ItemsSource="{Binding SelectedProduct.Features, |
| 109 | + ElementName=productFeaturesWindow, |
| 110 | + Mode=TwoWay}" |
| 111 | + SelectionMode="Single"> |
65 | 112 | <DataGrid.Columns>
|
66 |
| - <DataGridTextColumn |
67 |
| - Header="Name" Width="1*" IsReadOnly="True" |
68 |
| - Binding="{Binding Path=Name}"/> |
69 |
| - <DataGridTextColumn |
70 |
| - Header="Description" Width="2*" IsReadOnly="True" |
71 |
| - Binding="{Binding Path=Description}"/> |
| 113 | + <DataGridTextColumn Width="1*" |
| 114 | + Binding="{Binding Path=Name}" |
| 115 | + Header="Name" |
| 116 | + IsReadOnly="True" /> |
| 117 | + <DataGridTextColumn Width="2*" |
| 118 | + Binding="{Binding Path=Description}" |
| 119 | + Header="Description" |
| 120 | + IsReadOnly="True" /> |
72 | 121 | </DataGrid.Columns>
|
73 | 122 | </DataGrid>
|
74 | 123 |
|
75 |
| - <Button Grid.Row="1" x:Name="btnRemoveSelected" Margin="4,4,4,4" Content="Remove Selected" HorizontalAlignment="Right" Click="btnRemoveSelected_Click" /> |
| 124 | + <Button x:Name="btnRemoveSelected" |
| 125 | + Grid.Row="1" |
| 126 | + Margin="4,4,4,4" |
| 127 | + HorizontalAlignment="Right" |
| 128 | + Click="btnRemoveSelected_Click" |
| 129 | + Content="Remove Selected" /> |
76 | 130 | </Grid>
|
77 | 131 | </GroupBox>
|
78 | 132 | </Grid>
|
|
0 commit comments