Fix some views.

- Repariert: Der Begrüßungsdialog war manchmal hinter Word verborgen.
This commit is contained in:
daniel 2017-03-03 21:49:49 +01:00
parent da2057bd26
commit 9653403189
3 changed files with 16 additions and 10 deletions

View File

@ -19,6 +19,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using Bovender.Extensions;
using Bovender.Mvvm; using Bovender.Mvvm;
using Bovender.Mvvm.ViewModels; using Bovender.Mvvm.ViewModels;
@ -43,7 +44,7 @@ namespace zaaReloaded2.ViewModels
if (UserSettings.Default.FirstRun) if (UserSettings.Default.FirstRun)
{ {
FirstRunViewModel vm = new FirstRunViewModel(); FirstRunViewModel vm = new FirstRunViewModel();
vm.InjectInto<T>().Show(); vm.InjectInto<T>().ShowInForm();
} }
} }

View File

@ -23,7 +23,7 @@
xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender" xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender" xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender"
Width="520" Height="320" Width="540" Height="360"
Icon="pack://application:,,,/zaaReloaded2;component/Icons/icon.png" Icon="pack://application:,,,/zaaReloaded2;component/Icons/icon.png"
ShowInTaskbar="False" ResizeMode="NoResize" ShowInTaskbar="False" ResizeMode="NoResize"
b:WindowState.CenterScreen="True" b:WindowState.Save="True" b:WindowState.CenterScreen="True" b:WindowState.Save="True"

View File

@ -23,9 +23,9 @@
xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender" xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender" xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender"
Width="600" Height="420" Width="640" Height="460"
ResizeMode="CanResizeWithGrip" ShowInTaskbar="True" ResizeMode="CanResizeWithGrip" ShowInTaskbar="True"
MinWidth="460" MinHeight="400" MinWidth="460" MinHeight="460"
b:WindowState.CenterScreen="True" b:WindowState.Save="True" b:WindowState.CenterScreen="True" b:WindowState.Save="True"
Title="Stil bearbeiten" Title="Stil bearbeiten"
FocusManager.FocusedElement="{Binding ElementName=NameTextBox}" FocusManager.FocusedElement="{Binding ElementName=NameTextBox}"
@ -63,8 +63,8 @@
SelectedItem="{Binding ReferenceStyle.SelectedItem}" SelectedItem="{Binding ReferenceStyle.SelectedItem}"
x:Name="ReferenceStyleChooser" HorizontalAlignment="Stretch" /> x:Name="ReferenceStyleChooser" HorizontalAlignment="Stretch" />
</DockPanel> </DockPanel>
<StackPanel DockPanel.Dock="Top" Margin="0 10 0 0" Orientation="Horizontal"> <DockPanel DockPanel.Dock="Top" Margin="0 10 0 0">
<Label Content="Auszeichnung pathologischer Werte:" Margin="0 0 10 0" <Label DockPanel.Dock="Left" Content="Auszeichnung pathologischer Werte:" Margin="0 0 10 0"
Target="{Binding ElementName=AbnormalStyleChooser}" /> Target="{Binding ElementName=AbnormalStyleChooser}" />
<StackPanel Orientation="Horizontal" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<ToggleButton IsChecked="{Binding AbnormalBold}" Height="25" Width="25"> <ToggleButton IsChecked="{Binding AbnormalBold}" Height="25" Width="25">
@ -77,10 +77,15 @@
<TextBlock TextDecorations="Underline">U</TextBlock> <TextBlock TextDecorations="Underline">U</TextBlock>
</ToggleButton> </ToggleButton>
</StackPanel> </StackPanel>
<CheckBox IsChecked="{Binding PreferVerboseMolar}" Margin="20 5 10 0"> </DockPanel>
<DockPanel DockPanel.Dock="Top" Margin="5 10 0 0">
<StackPanel Orientation="Horizontal">
<Label Content="Einheiten:" Padding="0 0 10 0" />
<CheckBox IsChecked="{Binding PreferVerboseMolar}">
mmol/l statt mM mmol/l statt mM
</CheckBox> </CheckBox>
</StackPanel> </StackPanel>
</DockPanel>
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right"> <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Command="{Binding CloseViewCommand}" Content="Schließen" IsDefault="True" IsCancel="True" <Button Command="{Binding CloseViewCommand}" Content="Schließen" IsDefault="True" IsCancel="True"
Margin="0 10 0 0" /> Margin="0 10 0 0" />