Files
BrightSharp.Toolkit/JetFrames.AppleJobs.Editor/Views/NewsCategories.xaml
Vitaliy 2bbf0580f7 v1.0
2017-01-10 21:06:47 +03:00

20 lines
1.2 KiB
XML

<UserControl x:Class="JetFrames.AppleJobs.Editor.Views.NewsCategories"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:JetFrames.AppleJobs.Editor.Views"
mc:Ignorable="d" d:DataContext="{StaticResource ViewModelLocator}"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<DataGrid x:Name="dg" ItemsSource="{Binding Editor.NewsCategories}"
AlternatingRowBackground="{DynamicResource AlternatingRowBackgroundBrush}">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding CategoryName, ValidatesOnNotifyDataErrors=True}" Header="Категория" Width="100" />
<DataGridTextColumn Binding="{Binding CategoryDescription, ValidatesOnNotifyDataErrors=True}" Header="Название" Width="200" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</UserControl>