mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-20 18:11:20 +00:00
20 lines
1.2 KiB
XML
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>
|