Ver código fonte

Добавил словарь
Добавил таблицы и строки
Создал первый стиль
Добавил "Label"

Ethosa 3 anos atrás
pai
commit
d9622eaaed

+ 5 - 1
Тураев_БД 11.20.1/App.xaml

@@ -4,6 +4,10 @@
              xmlns:local="clr-namespace:Тураев_БД_11._20._1"
              StartupUri="MainWindow.xaml">
     <Application.Resources>
-         
+        <ResourceDictionary>
+            <ResourceDictionary.MergedDictionaries>
+                <ResourceDictionary Source="Dictionary.xaml"/>
+            </ResourceDictionary.MergedDictionaries>
+        </ResourceDictionary>
     </Application.Resources>
 </Application>

+ 7 - 0
Тураев_БД 11.20.1/Dictionary.xaml

@@ -0,0 +1,7 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+    <Style TargetType="{x:Type Label}">
+        <Setter Property="Background" Value="AntiqueWhite" />
+        <Setter Property="Padding" Value="0" />
+    </Style>
+</ResourceDictionary>

+ 12 - 1
Тураев_БД 11.20.1/MainWindow.xaml

@@ -7,6 +7,17 @@
         mc:Ignorable="d"
         Title="MainWindow" Height="600" Width="800">
     <Grid>
-        
+        <Grid.RowDefinitions>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="235"/>
+            <RowDefinition Height="*"/>
+        </Grid.RowDefinitions>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="*"/>
+            <ColumnDefinition Width="295"/>
+            <ColumnDefinition Width="*"/>
+        </Grid.ColumnDefinitions>
+        <Label Content="Label" Grid.Column="1" HorizontalAlignment="Left" Margin="88,81,0,0" Grid.Row="1" VerticalAlignment="Top"/>
+
     </Grid>
 </Window>

+ 4 - 0
Тураев_БД 11.20.1/Тураев_БД 11.20.1.csproj

@@ -55,6 +55,10 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </ApplicationDefinition>
+    <Page Include="Dictionary.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="MainWindow.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>