Fix views.
Needed to set all WindowStyles to ToolWindow and make the windows topmost because Word and WPF do not play together all too well.
This commit is contained in:
		@@ -21,17 +21,21 @@
 | 
			
		||||
        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"
 | 
			
		||||
        SizeToContent="WidthAndHeight" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
 | 
			
		||||
        Width="280" Height="320" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
 | 
			
		||||
        WindowStyle="ToolWindow" Topmost="True"
 | 
			
		||||
        b:WindowState.CenterScreen="True" b:WindowState.Save="True"
 | 
			
		||||
        Title="Neues Element auswählen"
 | 
			
		||||
        >
 | 
			
		||||
    <Window.Resources>
 | 
			
		||||
        <ResourceDictionary Source="/zaaReloaded2;component/Style.xaml" />
 | 
			
		||||
    </Window.Resources>
 | 
			
		||||
    <StackPanel Margin="10">
 | 
			
		||||
        <Label Content="Verfügbare Elemente:" Target="{Binding ElementName=ElementsTreeView}" />
 | 
			
		||||
        <!-- TODO: Expand tree by default. -->
 | 
			
		||||
        <TreeView ItemsSource="{Binding Categories}" Height="120">
 | 
			
		||||
    <DockPanel Margin="10">
 | 
			
		||||
        <Label DockPanel.Dock="Top" Content="Verfügbare Elemente:" Target="{Binding ElementName=ElementsTreeView}" />
 | 
			
		||||
        <UniformGrid DockPanel.Dock="Bottom" HorizontalAlignment="Right" Columns="2" Rows="1" Margin="0 10 0 0">
 | 
			
		||||
            <Button Content="OK" Command="{Binding ChooseElementCommand}" IsDefault="True" Margin="0 0 5 0" />
 | 
			
		||||
            <Button Content="Abbrechen" Command="{Binding CloseViewCommand}" IsCancel="True" Margin="5 0 0 0" />
 | 
			
		||||
        </UniformGrid>
 | 
			
		||||
        <TreeView ItemsSource="{Binding Categories}">
 | 
			
		||||
            <TreeView.ItemContainerStyle>
 | 
			
		||||
                <Style TargetType="{x:Type TreeViewItem}">
 | 
			
		||||
                    <Setter Property="IsExpanded" Value="True" />
 | 
			
		||||
@@ -44,9 +48,5 @@
 | 
			
		||||
                </HierarchicalDataTemplate>
 | 
			
		||||
            </TreeView.ItemTemplate>
 | 
			
		||||
        </TreeView>
 | 
			
		||||
        <UniformGrid Columns="2" Rows="1" Margin="0 10 0 0">
 | 
			
		||||
            <Button Content="OK" Command="{Binding ChooseElementCommand}" IsDefault="True" Margin="0 0 10 0" />
 | 
			
		||||
            <Button Content="Abbrechen" Command="{Binding CloseViewCommand}" IsCancel="True" Margin="10 0 0 0" />
 | 
			
		||||
        </UniformGrid>
 | 
			
		||||
    </StackPanel>
 | 
			
		||||
    </DockPanel>
 | 
			
		||||
</Window>
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
			
		||||
        xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
 | 
			
		||||
        SizeToContent="WidthAndHeight" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
 | 
			
		||||
        WindowStyle="ToolWindow" Topmost="True"
 | 
			
		||||
        b:WindowState.CenterScreen="True" b:WindowState.Save="True"
 | 
			
		||||
        Title="Element bearbeiten"
 | 
			
		||||
        >
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,7 @@
 | 
			
		||||
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 | 
			
		||||
        xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
 | 
			
		||||
        SizeToContent="WidthAndHeight" MaxWidth="480"
 | 
			
		||||
        WindowStyle="ToolWindow" Topmost="True"
 | 
			
		||||
        ResizeMode="NoResize" ShowInTaskbar="False"
 | 
			
		||||
        b:WindowState.CenterScreen="True"
 | 
			
		||||
        Title="Import/Export-Fehler"
 | 
			
		||||
 
 | 
			
		||||
@@ -23,7 +23,7 @@
 | 
			
		||||
        xmlns:b="clr-namespace:Bovender.Mvvm.Views.Settings;assembly=Bovender"
 | 
			
		||||
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
 | 
			
		||||
        xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender"
 | 
			
		||||
        Width="340" Height="370"
 | 
			
		||||
        Width="340" Height="370" Topmost="True"
 | 
			
		||||
        MinWidth="360" MinHeight="370" WindowStyle="ToolWindow"
 | 
			
		||||
        ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
 | 
			
		||||
        b:WindowState.CenterScreen="True" b:WindowState.Save="True"
 | 
			
		||||
 
 | 
			
		||||
@@ -24,6 +24,7 @@
 | 
			
		||||
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
 | 
			
		||||
        xmlns:action="clr-namespace:Bovender.Mvvm.Actions;assembly=Bovender"
 | 
			
		||||
        Width="640" Height="480" ResizeMode="CanResizeWithGrip" ShowInTaskbar="False"
 | 
			
		||||
        WindowStyle="ToolWindow" Topmost="True"
 | 
			
		||||
        b:WindowState.CenterScreen="True" b:WindowState.Save="True"
 | 
			
		||||
        Title="Stil bearbeiten"
 | 
			
		||||
        >
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user