Browse Source

Создали Словарь

Ethosa 3 years ago
parent
commit
787b19c4ee

+ 9 - 1
Project_Shilkina1/App.xaml

@@ -4,6 +4,14 @@
              xmlns:local="clr-namespace:Project_Shilkina1"
              StartupUri="MainWindow.xaml">
     <Application.Resources>
-         
+        <ResourceDictionary>
+            <ResourceDictionary.MergedDictionaries>
+                <ResourceDictionary Source="Dictionary.xaml"/>
+            </ResourceDictionary.MergedDictionaries>
+            <Style TargetType="{x:Type Label}">
+                <Setter Property="Background" Value="AntiqueWhite"/>
+                <Setter Property="Padding" Value="0"/>
+            </Style>
+        </ResourceDictionary>
     </Application.Resources>
 </Application>

+ 4 - 0
Project_Shilkina1/Dictionary.xaml

@@ -0,0 +1,4 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+    
+</ResourceDictionary>

+ 5 - 4
Project_Shilkina1/MainWindow.xaml

@@ -13,13 +13,14 @@
         </Grid.ColumnDefinitions>
         <Grid HorizontalAlignment="Left" Width="790" Grid.ColumnSpan="2" Margin="10,0,0,0" RenderTransformOrigin="0.502,0.896">
             <Grid.RowDefinitions>
-                <RowDefinition Height="70*"/>
+                <RowDefinition Height="*"/>
                 <RowDefinition Height="289*"/>
-                <RowDefinition Height="81*"/>
+                <RowDefinition Height="*"/>
             </Grid.RowDefinitions>
             <Grid.ColumnDefinitions>
-                <ColumnDefinition Width="693*"/>
-                <ColumnDefinition Width="107*"/>
+                <ColumnDefinition Width="*"/>
+                <ColumnDefinition/>
+                <ColumnDefinition Width="*"/>
             </Grid.ColumnDefinitions>
         </Grid>
     </Grid>