215 lines
10 KiB
XML
215 lines
10 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.ViewMailView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:proxy="clr-namespace:BeWo.ServiceProxy"
|
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
<localView:BeWoView.Resources>
|
|
<Style x:Key="ButtonFocusVisual">
|
|
<Setter Property="Control.Template">
|
|
<Setter.Value>
|
|
<ControlTemplate>
|
|
<Rectangle
|
|
Margin="2"
|
|
SnapsToDevicePixels="true"
|
|
Stroke="Black"
|
|
StrokeDashArray="1 2"
|
|
StrokeThickness="1" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="WarningButton" TargetType="{x:Type Button}">
|
|
<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}" />
|
|
<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}" />
|
|
<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Padding" Value="1" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Image
|
|
Width="16"
|
|
Height="16"
|
|
Source="..\..\Ressources\Icons\warning-16x16.png" />
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsKeyboardFocused" Value="true" />
|
|
<Trigger Property="ToggleButton.IsChecked" Value="true" />
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
<Setter Property="Foreground" Value="#ADADAD" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</localView:BeWoView.Resources>
|
|
<Grid Width="Auto" Height="Auto">
|
|
<!-- uc:ShadowChrome -->
|
|
<GroupBox Style="{StaticResource PopUpWindowStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image
|
|
Width="Auto"
|
|
Height="28"
|
|
Margin="0,0,0,0"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\Email.png">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,5,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
BorderThickness="0,0,0,0"
|
|
FontSize="20"
|
|
Foreground="{DynamicResource MainGroupBoxForegroundBrush}"
|
|
Text="Mail-Ansicht" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{DynamicResource ServiceRecordContentBrush}" />
|
|
<Grid
|
|
x:Name="rootGrid"
|
|
Grid.Row="1"
|
|
Margin="10,10,10,0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
Content="Von:" />
|
|
<TextBox
|
|
x:Name="senderTextBox"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch"
|
|
IsReadOnly="True" />
|
|
<!--<Button Content="Hinzufügen" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="0" Margin="10,0,0,0" Click="AddButton_Click"/>-->
|
|
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
Content="Betreff:" />
|
|
<TextBox
|
|
x:Name="subjectTextBox"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch"
|
|
IsReadOnly="True" />
|
|
|
|
</Grid>
|
|
<!--<WrapPanel Margin="0 10 0 10">
|
|
<RadioButton GroupName="priorityGroup" IsChecked="False" Name="lowPriorityRadioButton">Nidrige Priorität</RadioButton>
|
|
<RadioButton GroupName="priorityGroup" IsChecked="True" Name="normalPriorityRadioButton" Margin="10 0 10 0">Normale Priorität</RadioButton>
|
|
<RadioButton GroupName="priorityGroup" IsChecked="False" Name="highPriorityRadioButton">Hohe Priorität</RadioButton>
|
|
</WrapPanel>-->
|
|
<Label Name="priorityLabel" Margin="0,10,0,10" />
|
|
|
|
</StackPanel>
|
|
|
|
<TextBox
|
|
x:Name="mailTextBox"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
IsReadOnly="True" />
|
|
|
|
<!--<TextBox Grid.Row="2" x:Name="attachmentTextBox" IsReadOnly="True"/>-->
|
|
<WrapPanel x:Name="attachmentWrapPanel" Grid.Row="2">
|
|
<Label Margin="0,5,5,0">Anhänge:</Label>
|
|
</WrapPanel>
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<!--<Button x:Name="btnSave" Content="Senden und schließen" Margin="0,0,3,0" Command="ApplicationCommands.Save" Height="25" />-->
|
|
<Button
|
|
x:Name="btnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<!-- /uc:ShadowChrome -->
|
|
</Grid>
|
|
</localView:BeWoView> |