瀏覽代碼

Стиль

Barsik Kato 2 年之前
父節點
當前提交
a3ae7d4a83

+ 6 - 1
Session1/App.xaml

@@ -4,6 +4,11 @@
              xmlns:local="clr-namespace:Session1"
              xmlns:local="clr-namespace:Session1"
              StartupUri="MainWindow.xaml">
              StartupUri="MainWindow.xaml">
     <Application.Resources>
     <Application.Resources>
-         
+        <Style TargetType="TextBlock">
+            <Setter Property="FontFamily" Value="Monotype Corsiva"></Setter>
+        </Style>
+        <Style TargetType="Button">
+            <Setter Property="Background" Value="#46B29D"></Setter>
+        </Style>
     </Application.Resources>
     </Application.Resources>
 </Application>
 </Application>

二進制
Session1/Images/Приятный шелест.png


+ 10 - 2
Session1/MainWindow.xaml

@@ -5,8 +5,16 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:Session1"
         xmlns:local="clr-namespace:Session1"
         mc:Ignorable="d"
         mc:Ignorable="d"
-        Title="MainWindow" Height="450" Width="650">
+        Title="Приятный шелест" Height="450" Width="650">
     <Grid>
     <Grid>
-        <Frame x:Name="MainFrm"></Frame>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="68*"/>
+            <RowDefinition Height="351*"/>
+        </Grid.RowDefinitions>
+        <StackPanel Orientation="Horizontal" >
+            <Image Source="Images/Приятный шелест.png" Height="68" Width="68" HorizontalAlignment="Left"></Image>
+            <TextBlock Text="Приятный шелест" FontSize="58" VerticalAlignment="Center"/>
+        </StackPanel>
+        <Frame x:Name="MainFrm" Grid.Row="1"></Frame>
     </Grid>
     </Grid>
 </Window>
 </Window>

+ 1 - 1
Session1/Pages/AgentList.xaml

@@ -48,7 +48,7 @@
             </ComboBox>
             </ComboBox>
         </StackPanel>
         </StackPanel>
         <ListBox x:Name="agentList" Grid.Row="1" ItemTemplate="{DynamicResource lbItem}" SelectionChanged="agentList_SelectionChanged" SelectionMode="Extended" MouseDoubleClick="agentList_MouseDoubleClick"></ListBox>
         <ListBox x:Name="agentList" Grid.Row="1" ItemTemplate="{DynamicResource lbItem}" SelectionChanged="agentList_SelectionChanged" SelectionMode="Extended" MouseDoubleClick="agentList_MouseDoubleClick"></ListBox>
-        <StackPanel Grid.Row="2" Orientation="Horizontal">
+        <StackPanel Grid.Row="2" Orientation="Horizontal" Background="#C6D7FF">
             <Button x:Name="addAgent" Click="addAgent_Click">Добавить</Button>
             <Button x:Name="addAgent" Click="addAgent_Click">Добавить</Button>
             <Button x:Name="changePriority" Visibility="Hidden" Click="ChangePriority_Click">Изменить приоритет на ...</Button>
             <Button x:Name="changePriority" Visibility="Hidden" Click="ChangePriority_Click">Изменить приоритет на ...</Button>
         </StackPanel>
         </StackPanel>

+ 5 - 0
Session1/Session1.csproj

@@ -34,6 +34,9 @@
     <ErrorReport>prompt</ErrorReport>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   </PropertyGroup>
+  <PropertyGroup>
+    <ApplicationIcon>Приятный шелест.ico</ApplicationIcon>
+  </PropertyGroup>
   <ItemGroup>
   <ItemGroup>
     <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
     <Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
       <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
       <HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath>
@@ -196,6 +199,8 @@
     <None Include="App.config" />
     <None Include="App.config" />
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
+    <Resource Include="Images\Приятный шелест.png" />
+    <Resource Include="Приятный шелест.ico" />
     <Resource Include="agents\picture.png" />
     <Resource Include="agents\picture.png" />
     <Resource Include="agents\agent_1.png" />
     <Resource Include="agents\agent_1.png" />
     <Resource Include="agents\agent_10.png" />
     <Resource Include="agents\agent_10.png" />

二進制
Session1/Приятный шелест.ico