Bladeren bron

Добавлен главный стиль

Вадим Королёв 1 jaar geleden
bovenliggende
commit
8096bab8db
2 gewijzigde bestanden met toevoegingen van 15 en 1 verwijderingen
  1. 5 1
      EmployeeTracker/App.xaml
  2. 10 0
      EmployeeTracker/Styles/MainStyle.xaml

+ 5 - 1
EmployeeTracker/App.xaml

@@ -4,6 +4,10 @@
              xmlns:local="clr-namespace:EmployeeTracker"
              StartupUri="MainWindow.xaml">
     <Application.Resources>
-         
+        <ResourceDictionary>
+            <ResourceDictionary.MergedDictionaries>
+                <ResourceDictionary Source="/Styles/MainStyle.xaml"/>
+            </ResourceDictionary.MergedDictionaries>
+        </ResourceDictionary>
     </Application.Resources>
 </Application>

+ 10 - 0
EmployeeTracker/Styles/MainStyle.xaml

@@ -0,0 +1,10 @@
+<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="White"/>
+        <Setter Property="Padding" Value="0"/>
+    </Style>
+    
+</ResourceDictionary>