JD2022-TU1/main/tools/modules/JD.Guinness.WPF.Module/View/SubmitDescriptionBox.xaml

22 lines
1.1 KiB
XML

<ribbon:RibbonWindow
x:Class="JD.Guinness.WPF.Module.View.SubmitDescriptionBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ApplicationName="Change description"
SizeToContent="Height"
Width="600"
Height="200"
WindowStartupLocation="CenterScreen">
<ribbon:RibbonWindow.InputBindings>
<KeyBinding Key="Esc" Command="{Binding CancelCommand}"/>
<KeyBinding Key="Return" Command="{Binding OkCommand}"/>
</ribbon:RibbonWindow.InputBindings>
<DockPanel Margin="5">
<UniformGrid HorizontalAlignment="Right" DockPanel.Dock="Bottom" Rows="1">
<Button Content="Ok" Command="{Binding OkCommand}" Padding="5" Margin="-5,0,5,0"/>
<Button Content="Cancel" Command="{Binding CancelCommand}" Grid.Column="2" Padding="5"/>
</UniformGrid>
<TextBox Name="Description" Margin="0,0,0,5" AcceptsReturn="True"/>
</DockPanel>
</ribbon:RibbonWindow>