浏览代码

стили

Rav3nFK 2 年之前
父节点
当前提交
8dfe2bf691
共有 2 个文件被更改,包括 12 次插入4 次删除
  1. 9 1
      modulekz/App.xaml
  2. 3 3
      modulekz/MainWindow.xaml

+ 9 - 1
modulekz/App.xaml

@@ -4,6 +4,14 @@
              xmlns:local="clr-namespace:modulekz"
              StartupUri="MainWindow.xaml">
     <Application.Resources>
-         
+        <Style TargetType="Button" >
+            <Setter Property="Background" Value="#4ee9a2"/>
+        </Style>
+        <Style TargetType="TextBlock">
+            <Setter Property ="FontFamily" Value="Calibri"/>
+        </Style>
+        <Style TargetType="ListBox">
+            <Setter Property="Background" Value="#39f9"/>
+        </Style>
     </Application.Resources>
 </Application>

+ 3 - 3
modulekz/MainWindow.xaml

@@ -5,13 +5,13 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:modulekz"
         mc:Ignorable="d"
-        Title="MainWindow" Height="450" Width="800">
-    <Grid>
+        Title="Книжный магазин 'Книжечка'" Height="450" Width="800">
+    <Grid Background="LightCyan">
         <Grid.RowDefinitions>
             <RowDefinition Height="50"/>
             <RowDefinition Height="*"/>
         </Grid.RowDefinitions>
-        <TextBlock Text="Книжечка" FontSize="40"/>
+        <TextBlock Text="Книжечка" FontSize="40" />
         <Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" Grid.Row="1"/>
     </Grid>
 </Window>