This commit is contained in:
Sebastien Bovo 2019-01-10 17:09:15 +01:00
Родитель 67d5fe1c73
Коммит 5e61c7ec30
5 изменённых файлов: 33 добавлений и 8 удалений

Просмотреть файл

@ -26,7 +26,7 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock>About Contoso:</TextBlock>
<WebBrowser Grid.Row="1" Source="http://aboutknowzy.azurewebsites.net" />
<TextBlock>Contoso Expenses is an application of Contoso Corp.</TextBlock>
<WebBrowser Grid.Row="1" Source="https://contosocorpwebsite.azurewebsites.net/" />
</Grid>
</Window>

Просмотреть файл

@ -4,6 +4,20 @@
xmlns:local="clr-namespace:ContosoExpenses"
StartupUri="MainWindow.xaml">
<Application.Resources>
<SolidColorBrush x:Key="SemiTransparentBackground"
Color="Black"
Opacity=".3" />
<ImageBrush x:Key="MainBackground"
ImageSource="ExpensesBackground.jpg"
Stretch="UniformToFill"/>
<Style x:Key="DataGridHeaderStyle" TargetType="DataGridColumnHeader">
<Setter Property="Foreground" Value="Black" />
</Style>
<Style x:Key="DataGridRowStyle" TargetType="DataGridRow">
<Setter Property="Cursor" Value="Hand" />
</Style>
</Application.Resources>
</Application>

Просмотреть файл

@ -144,5 +144,10 @@
<ItemGroup>
<Resource Include="contoso.ico" />
</ItemGroup>
<ItemGroup>
<Content Include="ExpensesBackground.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 320 KiB

Просмотреть файл

@ -6,19 +6,25 @@
xmlns:local="clr-namespace:ContosoExpenses"
mc:Ignorable="d"
Loaded="Window_Loaded"
Title="Contoso Expenses" Height="450" Width="800">
Title="Contoso Expenses" Height="450" Width="800"
Background="{StaticResource MainBackground}">
<Grid Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="25" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Menu IsMainMenu="True" Grid.Row="0">
<MenuItem Header="_About" Click="OnOpenAbout" />
</Menu>
<DataGrid x:Name="CustomersGrid" SelectionChanged="OnSelectedEmployee" Grid.Row="1" AutoGenerateColumns="False">
<DataGrid x:Name="CustomersGrid" SelectionChanged="OnSelectedEmployee" Grid.Row="1" AutoGenerateColumns="False"
Background="{StaticResource SemiTransparentBackground}"
RowBackground="{StaticResource SemiTransparentBackground}"
ColumnHeaderStyle="{StaticResource DataGridHeaderStyle}"
Foreground="White"
RowStyle="{StaticResource DataGridRowStyle}">
<DataGrid.Columns>
<DataGridTextColumn Header="Employee Id" Binding="{Binding Path=EmployeeId}" />
<DataGridTextColumn Header="Name" Binding="{Binding Path=FirstName}" />