Implement ItemComment view model and view.
- NEU: Optionale Kommentare zu Laborwerten.
This commit is contained in:
50
zaaReloaded2/Views/ItemCommentView.xaml
Executable file
50
zaaReloaded2/Views/ItemCommentView.xaml
Executable file
@ -0,0 +1,50 @@
|
||||
<!--
|
||||
ItemCommentView.xaml
|
||||
part of zaaReloaded2
|
||||
|
||||
Copyright 2015 Daniel Kraus
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<Window x:Class="zaaReloaded2.Views.ItemCommentView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
|
||||
ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
|
||||
WindowStyle="ToolWindow" Topmost="True"
|
||||
SizeToContent="WidthAndHeight"
|
||||
b:WindowState.CenterScreen="True" b:WindowState.Save="True"
|
||||
Title="Kommentar angeben"
|
||||
FocusManager.FocusedElement="{Binding ElementName=ValueTextBox}"
|
||||
>
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
|
||||
</Window.Resources>
|
||||
<DockPanel Margin="10">
|
||||
<Label DockPanel.Dock="Top" Content="{Binding Item}"
|
||||
FontSize="16" FontWeight="Bold"
|
||||
Target="{Binding ElementName=ValueTextBox}" Padding="0" />
|
||||
<UniformGrid DockPanel.Dock="Bottom" HorizontalAlignment="Right" Columns="2" Rows="1" Margin="0 10 0 0">
|
||||
<Button Content="OK" Command="{Binding CloseViewCommand}" IsDefault="True" Margin="0 0 5 0" />
|
||||
<Button Content="Abbrechen" Command="{Binding CancelCommand}" IsCancel="True" Margin="5 0 0 0" />
|
||||
</UniformGrid>
|
||||
<DockPanel Margin="0 10 0 10">
|
||||
<TextBlock DockPanel.Dock="Left" Text="{Binding Prefix}" VerticalAlignment="Center" />
|
||||
<TextBlock DockPanel.Dock="Right" Text="{Binding Suffix}" VerticalAlignment="Center" />
|
||||
<TextBox Text="Binding Value,Mode=TwoWay,UpdateSourceTrigger=LostFocus}"
|
||||
MinWidth="120" MaxWidth="240" VerticalAlignment="Center"
|
||||
x:Name="ValueTextBox" Margin="5 0 5 0" />
|
||||
</DockPanel>
|
||||
</DockPanel>
|
||||
</Window>
|
Reference in New Issue
Block a user