862 lines
50 KiB
XML
862 lines
50 KiB
XML
<UserControl
|
|
x:Class="BeWo.MainControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:BeWo="clr-namespace:BeWo"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:r="clr-namespace:BeWo.Security"
|
|
xmlns:t="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="300"
|
|
Background="{DynamicResource ApplicationBackground}"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
SnapsToDevicePixels="True"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<Storyboard x:Key="OnLoadedStoryboard" Completed="OnLoadedStoryboard_Completed">
|
|
<DoubleAnimationUsingKeyFrames
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="toolbarRoot"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
|
|
<SplineDoubleKeyFrame
|
|
KeySpline="0,1,1,1"
|
|
KeyTime="00:00:00.5000000"
|
|
Value="-5" />
|
|
<SplineDoubleKeyFrame
|
|
KeySpline="0.35,0.5,0.5,0.9"
|
|
KeyTime="00:00:01"
|
|
Value="0" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
<DoubleAnimationUsingKeyFrames
|
|
BeginTime="00:00:00"
|
|
Storyboard.TargetName="image"
|
|
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
|
|
<SplineDoubleKeyFrame
|
|
KeySpline="0,1,1,1"
|
|
KeyTime="00:00:00.5000000"
|
|
Value="0" />
|
|
</DoubleAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</UserControl.Resources>
|
|
<UserControl.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</UserControl.RenderTransform>
|
|
<UserControl.Triggers>
|
|
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
|
|
<BeginStoryboard x:Name="OnLoaded1_BeginStoryboard" Storyboard="{StaticResource OnLoadedStoryboard}" />
|
|
</EventTrigger>
|
|
</UserControl.Triggers>
|
|
<Grid
|
|
x:Name="grid_main"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Grid.IsSharedSizeScope="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="150" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<!--<Frame x:Name="chatFrame" Grid.Column="2" Grid.Row="0" />-->
|
|
<TextBlock
|
|
Width="Auto"
|
|
Margin="5,2,0,0"
|
|
HorizontalAlignment="Center">
|
|
<Hyperlink
|
|
Foreground="Transparent"
|
|
NavigateUri="https://www.bewoplaner.de"
|
|
RequestNavigate="Hyperlink_OnRequestNavigate"
|
|
TargetName="newWindow">
|
|
<InlineUIContainer>
|
|
<Image
|
|
x:Name="image"
|
|
Width="130"
|
|
HorizontalAlignment="Left"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="Ressources\Icons\bewoplaner_logo_small.png"
|
|
Style="{StaticResource toolbarImageStyle}">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="-200" Y="0" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
</InlineUIContainer>
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
|
|
<!--<TextBlock HorizontalAlignment="Right" Width="Auto" Margin="0,2,5,0" Grid.Column="2">
|
|
<Hyperlink NavigateUri="http://www.bewoplaner.de" TargetName="newWindow" Foreground="Transparent" RequestNavigate="Hyperlink_OnRequestNavigate">
|
|
<InlineUIContainer>
|
|
<Image HorizontalAlignment="Left" Source="Ressources\Icons\bewoplaner_logo_small.png"
|
|
Style="{StaticResource toolbarImageStyle}" RenderTransformOrigin="0.5,0.5" x:Name="image2">
|
|
|
|
</Image>
|
|
</InlineUIContainer>
|
|
</Hyperlink>
|
|
</TextBlock>-->
|
|
|
|
<BeWo:BSLogoControl
|
|
x:Name="bSLogoControl"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Width="1000"
|
|
Height="1000"
|
|
Margin="0,0,-300,-250"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<BeWo:BSLogoControl.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#29000000" />
|
|
<GradientStop Offset="1" Color="#29000000" />
|
|
</LinearGradientBrush>
|
|
</BeWo:BSLogoControl.OpacityMask>
|
|
</BeWo:BSLogoControl>
|
|
<Grid
|
|
x:Name="DetailFrame"
|
|
Grid.Row="0"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Margin="140,35,140,85"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<Grid.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Grid.RenderTransform>
|
|
<Grid.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FF000000" />
|
|
<GradientStop Offset="1" Color="#D8FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Grid.OpacityMask>
|
|
<!-- Border x:Name="detailPlaceHolder" Background="#FFB55252" CornerRadius="5,5,5,5"></Border-->
|
|
</Grid>
|
|
<Grid
|
|
x:Name="toolbarRoot"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
Width="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
MouseEnter="toolbarRoot_MouseEnter"
|
|
MouseLeave="toolbarRoot_MouseLeave"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<Grid.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="100" />
|
|
</TransformGroup>
|
|
</Grid.RenderTransform>
|
|
<Border
|
|
Name="toolbarBord"
|
|
Height="80"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<Border.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="20" />
|
|
</TransformGroup>
|
|
</Border.RenderTransform>
|
|
<Viewbox Stretch="Fill">
|
|
<Canvas Width="100" Height="100">
|
|
<Path Data="M0,100 L5,0 L95,0 L100,100 Z" StrokeThickness="1">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#66000000" />
|
|
<GradientStop Offset="1" Color="#CC080808" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
</Path>
|
|
<Rectangle
|
|
Canvas.Top="8"
|
|
Width="100"
|
|
Height="132"
|
|
Fill="#FF98C1FF">
|
|
<Rectangle.OpacityMask>
|
|
<RadialGradientBrush>
|
|
<GradientStop Offset="0.29" Color="#3FFFFFFF" />
|
|
<GradientStop Offset="0.875" Color="#00FFFFFF" />
|
|
</RadialGradientBrush>
|
|
</Rectangle.OpacityMask>
|
|
</Rectangle>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</Border>
|
|
<Grid
|
|
x:Name="toolbarContent"
|
|
Loaded="ToolbarContent_OnLoaded"
|
|
RenderTransformOrigin="0.5,0.5">
|
|
<Grid.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Grid.RenderTransform>
|
|
<StackPanel
|
|
x:Name="HomeButtonPanel"
|
|
Grid.Row="1"
|
|
Margin="10,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Orientation="Vertical">
|
|
<Button
|
|
Name="btn_home"
|
|
Width="40"
|
|
Height="40"
|
|
Margin="0,9,0,0"
|
|
Click="btn_home_Click">
|
|
<Image
|
|
Source="Ressources\Icons\Home.png"
|
|
Stretch="Fill"
|
|
StretchDirection="Both" />
|
|
</Button>
|
|
<Label
|
|
Content="{t:Translate Home}"
|
|
FontSize="12"
|
|
Foreground="#FFDBDBDB" />
|
|
</StackPanel>
|
|
<!--<StackPanel x:Name="HomeButtonPanel" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,0,0,0" >
|
|
<Button Margin="0,10,0,0" Click="button_Home" Width="40" Height="40">
|
|
<Image Source="Ressources\Icons\HomeDisabled.png" Stretch="Fill" StretchDirection="Both"></Image>
|
|
</Button>
|
|
<Label Content="Startseite" FontSize="12" Foreground="#FFDBDBDB"></Label>
|
|
</StackPanel>
|
|
<StackPanel x:Name="LogoutButtonPanel" Orientation="Vertical" Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="90,0,0,0" >
|
|
<Button Margin="0,10,0,0" Click="button_Logout" Width="40" Height="40">
|
|
<Image Source="Ressources\Icons\LogoutDisabled.png" Stretch="Fill" StretchDirection="Both"></Image>
|
|
</Button>
|
|
<Label Content="Abmelden" FontSize="12" Foreground="#FFDBDBDB"></Label>
|
|
</StackPanel>-->
|
|
<ScrollViewer
|
|
x:Name="toolbarScrollViewer"
|
|
Height="80"
|
|
Margin="80,0,80,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
ScrollChanged="toolbarScrollViewer_ScrollChanged"
|
|
VerticalScrollBarVisibility="Disabled">
|
|
<ScrollViewer.Template>
|
|
<ControlTemplate TargetType="{x:Type ScrollViewer}">
|
|
<Grid Margin="3,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="17" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="17" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button
|
|
Command="ScrollBar.PageLeftCommand"
|
|
Content="3"
|
|
FontFamily="Webdings"
|
|
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" />
|
|
<ScrollContentPresenter
|
|
Grid.Column="1"
|
|
Margin="20,0"
|
|
VerticalAlignment="Bottom"
|
|
Content="{TemplateBinding Content}" />
|
|
<Button
|
|
Grid.Column="2"
|
|
Command="ScrollBar.PageRightCommand"
|
|
Content="4"
|
|
FontFamily="Webdings"
|
|
Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</ScrollViewer.Template>
|
|
<Grid
|
|
Height="80"
|
|
Margin="0,0,0,0"
|
|
VerticalAlignment="Stretch">
|
|
<StackPanel
|
|
x:Name="toolbarMainButtonPanel"
|
|
Width="Auto"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<localView:ImageButton
|
|
x:Name="button_serviceRecord"
|
|
Width="90"
|
|
Height="Auto"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, ServiceRecordView_View"
|
|
Background="{StaticResource ServiceRecordContentBrush}"
|
|
Click="button_serviceRecord_Click"
|
|
Content="{t:Translate ZeiterfassungMenuItem}"
|
|
ImageSource="Ressources\Icons\HistoryDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}"
|
|
Tag="">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_additionalService"
|
|
Width="120"
|
|
Height="Auto"
|
|
r:DemandUserRight.VisibleDemands="AdditionalService_View"
|
|
Background="{StaticResource AdditionalServiceContentBrush}"
|
|
Click="button_additionalService_Click"
|
|
Content="{t:Translate Ergänzende DiensteMenuItem}"
|
|
ImageSource="Ressources\Icons\HistoryDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}"
|
|
Tag="">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_SchulbegleitenderDienst"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="VertretungenView_View"
|
|
Background="{StaticResource SchulbegleitenderDienstContentBrush}"
|
|
Click="Button_Vertretungen_OnClick"
|
|
Content="{t:Translate VertretungenMenuItem}"
|
|
ImageSource="Ressources\Icons\CalendarDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
|
|
<localView:ImageButton
|
|
x:Name="button_AccountingTransacation"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, AccountingTransactionView_View, BargeldverwaltungFinanzenAnsehen, DokumenteFinanzen"
|
|
Background="{StaticResource AccountingContentBrush}"
|
|
Click="button_AccountingTransacation_Click"
|
|
Content="{t:Translate FinanzenMenuItem}"
|
|
ImageSource="Ressources\Icons\CoinsDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
|
|
|
|
<Grid>
|
|
<localView:ImageButton
|
|
x:Name="button_Scheduler"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="KalenderAnsehen"
|
|
Background="{StaticResource ResourceContentBrush}"
|
|
Click="button_Scheduler_Click"
|
|
Content="{t:Translate KalenderMenuItem}"
|
|
ImageSource="Ressources\Icons\CalendarDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<BeWo:OutlinedTextBlock
|
|
x:Name="NewAppointmentsOutlinedTextBlock"
|
|
Margin="25,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Fill="OrangeRed"
|
|
FontFamily="Verdana"
|
|
FontSize="25"
|
|
FontWeight="ExtraBold"
|
|
SnapsToDevicePixels="True"
|
|
Stroke="White"
|
|
StrokeThickness="1"
|
|
Text="!"
|
|
TextWrapping="Wrap"
|
|
Visibility="Collapsed">
|
|
<BeWo:OutlinedTextBlock.Triggers>
|
|
<EventTrigger RoutedEvent="BeWo:OutlinedTextBlock.Loaded">
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
AutoReverse="True"
|
|
RepeatBehavior="Forever"
|
|
Storyboard.TargetName="NewAppointmentsOutlinedTextBlock"
|
|
Storyboard.TargetProperty="(BeWo:OutlinedTextBlock.FontSize)"
|
|
To="30.0"
|
|
Duration="0:0:0.3" />
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</BeWo:OutlinedTextBlock.Triggers>
|
|
</BeWo:OutlinedTextBlock>
|
|
</Grid>
|
|
<!-- ToDo: Neuer Kalender -->
|
|
<Grid>
|
|
<localView:ImageButton
|
|
x:Name="ButtonScheduling"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="KalenderAnsehen"
|
|
Background="{StaticResource ResourceContentBrush}"
|
|
Click="Button_Scheduling_Click"
|
|
Content="{t:Translate KalenderMenuItem}"
|
|
ImageSource="Ressources\Icons\CalendarDisabledUnderConstruction.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}"
|
|
Visibility="Collapsed">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<BeWo:OutlinedTextBlock
|
|
x:Name="NewAppointmentsOutlinedTextBlock2"
|
|
Margin="25,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Fill="OrangeRed"
|
|
FontFamily="Verdana"
|
|
FontSize="25"
|
|
FontWeight="ExtraBold"
|
|
SnapsToDevicePixels="True"
|
|
Stroke="White"
|
|
StrokeThickness="1"
|
|
Text="!"
|
|
TextWrapping="Wrap"
|
|
Visibility="Collapsed">
|
|
<BeWo:OutlinedTextBlock.Triggers>
|
|
<EventTrigger RoutedEvent="BeWo:OutlinedTextBlock.Loaded">
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
AutoReverse="True"
|
|
RepeatBehavior="Forever"
|
|
Storyboard.TargetName="NewAppointmentsOutlinedTextBlock2"
|
|
Storyboard.TargetProperty="(BeWo:OutlinedTextBlock.FontSize)"
|
|
To="30.0"
|
|
Duration="0:0:0.3" />
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</BeWo:OutlinedTextBlock.Triggers>
|
|
</BeWo:OutlinedTextBlock>
|
|
</Grid>
|
|
<!-- /ToDo: Neuer Kalender -->
|
|
<localView:ImageButton
|
|
x:Name="button_ResourceBooking"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, ResourceBookingView_View"
|
|
Background="{StaticResource ResourceContentBrush}"
|
|
Click="button_ResourceBooking_Click"
|
|
Content="{t:Translate RessourcenMenuItem}"
|
|
ImageSource="Ressources\Icons\CalendarDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Reports"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, QueryView_View, Analysis_ServiceOverview_View, Analysis_Auslastung_View, Analysis_AuslastungAllEmployee_View, Analysis_AuslastungTeam_View, Kilometerauswertung_View, KilometerauswertungEigene_View, BewertungAuswertung_View, PivotTabelleAnsehen, DienstplanungAnsehen, AbwesenheitsPlanungAnsehen, Mitarbeiterstundenkonto_ViewAll, Mitarbeiterstundenkonto_ViewSelf, Mitarbeiterstundenkonto_ViewTeams, Jahresbericht, Auswertungen_BerichteAnsehen, Auswertungen_StundenuebersichtAnsehen, Auswertungen_HilfeplanuebersichtAnsehen"
|
|
Background="{StaticResource ReportContentBrush}"
|
|
Click="button_Reports_Click"
|
|
Content="{t:Translate AuswertungenMenuItem}"
|
|
ImageSource="Ressources\Icons\ChartBarDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_SupportConcept"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, SupportConceptView_View, SupportConcept_ViewAllSupportConcepts, SupportConcept_ViewMyTeams"
|
|
Background="{StaticResource SupportConceptContentBrush}"
|
|
Click="button_SupportConcept_Click"
|
|
Content="{t:Translate HilfepläneMenuItem}"
|
|
ImageSource="Ressources\Icons\IDBadgeDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Customer"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, CustomerView_View, Customer_ViewMyCustomers, Customer_ViewMyTeams"
|
|
Background="{StaticResource CustomerContentBrush}"
|
|
Click="button_Customer_Click"
|
|
Content="{t:Translate KlientenMenuItem}"
|
|
ImageSource="Ressources\Icons\UserHomeMaleDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
|
|
<!-- r:DemandUserRight.VisibleDemands="ViewAll, CustomerTeam_View" -->
|
|
<localView:ImageButton
|
|
x:Name="button_CustomerTeam"
|
|
Width="90"
|
|
Background="{StaticResource CustomerTeamContentBrush}"
|
|
Click="button_CustomerTeam_Click"
|
|
Content="{t:Translate KliententeamsMenuItem}"
|
|
ImageSource="Ressources/Icons/UserGroupBusinessDisabled.png"
|
|
RenderTransformOrigin="0.5, 0.5"
|
|
Style="{StaticResource NavBarButton}"
|
|
Visibility="Collapsed">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
|
|
<localView:ImageButton
|
|
x:Name="button_Wohnheim"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="WohnheimView_View"
|
|
Background="{StaticResource WohnheimContentBrush}"
|
|
Click="button_Wohnheim_Click"
|
|
Content="{t:Translate WohnheimeMenuItem}"
|
|
ImageSource="Ressources\Icons\OfficeBulidingBlackDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
|
|
<localView:ImageButton
|
|
x:Name="button_Organisation"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, OrganisationView_View"
|
|
Background="{StaticResource OrganisationContentBrush}"
|
|
Click="button_Organisation_Click"
|
|
Content="{t:Translate OrganisationenMenuItem}"
|
|
ImageSource="Ressources\Icons\OfficeBulidingBlackDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Person"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, PersonView_View"
|
|
Background="{StaticResource PersonContentBrush}"
|
|
Click="button_Person_Click"
|
|
Content="{t:Translate PersonenMenuItem}"
|
|
ImageSource="Ressources\Icons\AnonymousUserDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Employee"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, EmployeeView_View, Employee_AllowViewOwnEmployees, Employee_AllowViewOwnTeam"
|
|
Background="{StaticResource EmployeeContentBrush}"
|
|
Click="button_Employee_Click"
|
|
Content="{t:Translate MitarbeiterMenuItem}"
|
|
ImageSource="Ressources\Icons\UserBusinessMaleDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Team"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, TeamView_ViewAll, TeamView_ViewMyTeams"
|
|
Background="{StaticResource TeamContentBrush}"
|
|
Click="button_Team_Click"
|
|
Content="{t:Translate TeamsMenuItem}"
|
|
ImageSource="Ressources\Icons\UserGroupBusinessDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Dokumente"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, TeamView_ViewAll, TeamView_ViewMyTeams"
|
|
Background="{StaticResource DokumenteContentBrush}"
|
|
Click="button_Dokumente_Click"
|
|
Content="{t:Translate DokumenteMenuItem}"
|
|
ImageSource="Ressources\Icons\Folder.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_User"
|
|
Width="90"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, UserView_View"
|
|
Background="{StaticResource UserContentBrush}"
|
|
Click="button_User_Click"
|
|
Content="{t:Translate BenutzerMenuItem}"
|
|
ImageSource="Ressources\Icons\UserBusinessMaleDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_UserGroup"
|
|
Width="Auto"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, UserGroupView_View"
|
|
Background="{StaticResource UserGroupContentBrush}"
|
|
Click="button_UserGroup_Click"
|
|
Content="{t:Translate BenutzergruppenMenuItem}"
|
|
ImageSource="Ressources\Icons\UserGroupBusinessDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<!--<localView:ImageButton r:DemandUserRight.VisibleDemands="ViewAll, AdministrationView_View"
|
|
x:Name="button_Template" Click="button_Template_Click"
|
|
HorizontalAlignment="Stretch" Style="{StaticResource NavBarButton}"
|
|
Content="{t:Translate Vorlagen}"
|
|
Background="#FF0045e0" RenderTransformOrigin="0.5,0.5"
|
|
ImageSource="Ressources\Icons\MenuDisabled.png" Width="90">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>-->
|
|
|
|
<localView:ImageButton
|
|
x:Name="button_Administration"
|
|
Width="90"
|
|
HorizontalAlignment="Stretch"
|
|
r:DemandUserRight.VisibleDemands="ViewAll, AdministrationView_View"
|
|
Background="{StaticResource AdministrationContentBrush}"
|
|
Click="button_Administration_Click"
|
|
Content="{t:Translate VerwaltungMenuItem}"
|
|
ImageSource="Ressources\Icons\ConfigurationDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
<localView:ImageButton
|
|
x:Name="button_Support"
|
|
Width="90"
|
|
HorizontalAlignment="Stretch"
|
|
r:DemandUserRight.VisibleDemands="Support_View"
|
|
Background="#FFD4FFCF"
|
|
Click="button_Support_Click"
|
|
Content="{t:Translate SupportMenuItem}"
|
|
ImageSource="Ressources\Icons\TechSupportWhiteDisabled.png"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Style="{StaticResource NavBarButton}">
|
|
<Button.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Button.RenderTransform>
|
|
</localView:ImageButton>
|
|
</StackPanel>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
<StackPanel
|
|
x:Name="LogoutButtonPanel"
|
|
Grid.Row="1"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
Orientation="Vertical">
|
|
<Button
|
|
Width="40"
|
|
Height="40"
|
|
Margin="0,9,0,0"
|
|
Click="button_Logout">
|
|
<Image
|
|
Source="Ressources\Icons\LogoutDisabled.png"
|
|
Stretch="Fill"
|
|
StretchDirection="Both" />
|
|
</Button>
|
|
<Label
|
|
Content="Abmelden"
|
|
FontSize="12"
|
|
Foreground="#FFDBDBDB" />
|
|
</StackPanel>
|
|
<!--<Rectangle Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="1" RenderTransformOrigin="0.5,0.5" Height="55" Width="1175" StrokeThickness="0" VerticalAlignment="Top">
|
|
<Rectangle.OpacityMask>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#0C000000" Offset="0"/>
|
|
<GradientStop Color="#4CFFFFFF" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Rectangle.OpacityMask>
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="-1"/>
|
|
<SkewTransform AngleX="0" AngleY="0"/>
|
|
<RotateTransform Angle="0"/>
|
|
<TranslateTransform X="-3" Y="49"/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
<Rectangle.Fill>
|
|
<VisualBrush Visual="{Binding ElementName=toolbar}"/>
|
|
</Rectangle.Fill>
|
|
</Rectangle>-->
|
|
</Grid>
|
|
</Grid>
|
|
<!--<GroupBox Visibility="Hidden" Header="Home" Grid.Column="1" Grid.Row="1" Grid.RowSpan="1" Margin="10,0,10,10" Style="{DynamicResource MainContentGroupBoxStyle}" >
|
|
<Border>
|
|
<Border.Background>
|
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
|
<GradientStop Color="#FFFFFFFF" Offset="0"/>
|
|
<GradientStop Color="#FFFFF2CF" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
</Border>
|
|
</GroupBox>-->
|
|
</Grid>
|
|
</UserControl>
|