12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <Window x:Class="Practics.Views.KnowledgeWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Practics.Views"
- mc:Ignorable="d"
- Title="База знаний" Height="450" Width="800">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="150"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="1*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Vertical">
- <Button x:Name="btnAddNew" Content="Новая" Click="btnAddNew_Click"/>
- <Button x:Name="btnUpdateAll" Content="Обновить" Click="btnUpdateAll_Click"/>
- <Button x:Name="btnExit" Content="Выход" Click="btnExit_Click"/>
- </StackPanel>
- <DataGrid x:Name="dgNotes" Grid.Column="1" Grid.Row="0" SelectionChanged="dgNotes_SelectionChanged" CanUserAddRows="False" AutoGenerateColumns="False">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Пользователь" Binding="{Binding LastName}" IsReadOnly="True" />
- <DataGridTextColumn Header="Краткое описание" Binding="{Binding NoteName}" />
- <DataGridTemplateColumn Header="Создана">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <xctk:DateTimePicker Value="{Binding TimeCreate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTemplateColumn Header="Обновлена">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <xctk:DateTimePicker Value="{Binding TimeUpdate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- <StackPanel Grid.Column="1" Grid.Row="1">
- <ToolBar>
- <Button x:Name="btnSaveNote" Click="btnSaveNote_Click">Save</Button>
- <Button x:Name="btnClearNote" Click="btnClearNote_Click">Clear</Button>
- </ToolBar>
- <RichTextBox Height="190" x:Name="rtbNote"/>
- </StackPanel>
- </Grid>
- </Window>
|