<localView:BeWoView x:Class="BeWo.View.HomeDragPanelView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:localView="clr-namespace:BeWo.View" xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
					xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared" xmlns:sharedCompact="clr-namespace:BS.Shared.DataContracts.Compact;assembly=BS.Shared"
					xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
					xmlns:blc="clr-namespace:Blacklight.Wpf.Controls;assembly=Blacklight.Wpf.Controls" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">

	<localView:BeWoView.Resources>
		<localView:TaskDateDescriptionConverter x:Key="TaskDateDescriptionConverter" />

		<ControlTemplate x:Key="HomeViewListBoxTemplate" TargetType="{x:Type ListBox}">
			<Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
				<ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}" HorizontalScrollBarVisibility="Disabled">
					<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
				</ScrollViewer>
			</Border>
		</ControlTemplate>

		<Style x:Key="HomeViewListStyle" TargetType="{x:Type ListBox}">
			<Setter Property="Template" Value="{StaticResource HomeViewListBoxTemplate}" />
			<Setter Property="Padding" Value="2,0,2,2" />
		</Style>
		<Style x:Key="HomeViewListBoxItemStyle" TargetType="{x:Type ListBoxItem}" >
			<Setter Property="Background" Value="#00FFFFFF" />
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
			<Setter Property="Padding" Value="2,0,0,0" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border x:Name="Bd" SnapsToDevicePixels="True" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" />
						</Border>
						<ControlTemplate.Triggers>

							<Trigger Property="IsEnabled" Value="False">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<!--<Style x:Key="InboxItemStyle" TargetType="{x:Type ListBoxItem}">
            <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}"/>
            <Setter Property="Margin" Value="0,2,0,0" />
            <EventSetter Event="MouseDoubleClick" Handler="InboxItem_DoubleClick" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <Border x:Name="ItemBorder" CornerRadius="5" MinHeight="20" Background="#FF000000">
                                <Border.OpacityMask>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#19000000" Offset="0"/>
                                        <GradientStop Color="#26000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.OpacityMask>

                            </Border>
                            <Border x:Name="ItemContent" CornerRadius="5" MinHeight="20">
                                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="{Binding Path=InsertedOn}" TextWrapping="Wrap"/>
                                    <TextBlock Text="{Binding Path=Subject}" TextWrapping="Wrap" Grid.Column="1"/>
                                    <TextBlock Text="{Binding Path=SenderName}" TextWrapping="Wrap" Grid.Column="2"/>
                                </Grid>
                            </Border>
                        </Grid>

                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#33000000" Offset="0"/>
                                            <GradientStop Color="#66000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>


                            <Trigger Property="ListBoxItem.IsSelected" Value="True">
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#99000000" Offset="0"/>
                                            <GradientStop Color="#CC000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="ListBoxItem.IsSelected" Value="True"/>
                                    <Condition Property="Selector.IsSelectionActive" Value="False"/>
                                </MultiTrigger.Conditions>
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#99000000" Offset="0"/>
                                            <GradientStop Color="#B2000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>

                            </MultiTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>

                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="OutboxItemStyle" TargetType="{x:Type ListBoxItem}">
            <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}"/>
            <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type ItemsControl}, Mode=FindAncestor}}"/>
            <Setter Property="Margin" Value="0,2,0,0" />
            <EventSetter Event="MouseDoubleClick" Handler="OutboxItem_DoubleClick" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid>
                            <Border x:Name="ItemBorder" CornerRadius="5" MinHeight="20" Background="#FF000000">
                                <Border.OpacityMask>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#19000000" Offset="0"/>
                                        <GradientStop Color="#26000000" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.OpacityMask>

                            </Border>
                            <Border x:Name="ItemContent" CornerRadius="5" MinHeight="20">
                                <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="5,3,5,3" OpacityMask="{x:Null}" SnapsToDevicePixels="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                    </Grid.ColumnDefinitions>
                                    <TextBlock Text="{Binding Path=InsertedOn}" TextWrapping="Wrap"/>
                                    <TextBlock Text="{Binding Path=Subject}" TextWrapping="Wrap" Grid.Column="1"/>
                                    <TextBlock Text="{Binding Path=ReceiverString}" TextWrapping="Wrap" Grid.Column="2"/>
                                </Grid>
                            </Border>
                        </Grid>

                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#33000000" Offset="0"/>
                                            <GradientStop Color="#66000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>

                            <Trigger Property="ListBoxItem.IsSelected" Value="True">
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#99000000" Offset="0"/>
                                            <GradientStop Color="#CC000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>
                            <MultiTrigger>
                                <MultiTrigger.Conditions>
                                    <Condition Property="ListBoxItem.IsSelected" Value="True"/>
                                    <Condition Property="Selector.IsSelectionActive" Value="False"/>
                                </MultiTrigger.Conditions>
                                <Setter Property="OpacityMask" TargetName="ItemBorder">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#99000000" Offset="0"/>
                                            <GradientStop Color="#B2000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>

                            </MultiTrigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>

                </Setter.Value>
            </Setter>
        </Style>-->
	</localView:BeWoView.Resources>


	<uc:ShadowChrome>
		<GroupBox Style="{DynamicResource MainContentGroupBoxStyle}" Foreground="#FF000000">
			<GroupBox.Header>
				<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom">
					<TextBox x:Name="txtHeader" Margin="3,3,0,0" Background="{x:Null}" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="22" BorderBrush="{x:Null}" VerticalAlignment="Center" Padding="0,0,0,0" IsReadOnly="True" />
					<TextBlock x:Name="txtChangePassword" VerticalAlignment="Center" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" Margin="5,3,3,3">
						<Hyperlink RequestNavigate="PasswortAendernLinkOnRequestNavigate" NavigateUri="#" Foreground="{DynamicResource MainGroupBoxForegroundBrush}">
							<TextBlock Text="Passwort ändern" HorizontalAlignment="Center" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="12" VerticalAlignment="Center" />
						</Hyperlink>
					</TextBlock>
          
          <!-- ########################################## Achtung Chat Verlinkung ########################################################################################### -->
          <TextBlock x:Name="txtChangePassword2" VerticalAlignment="Center"  Foreground="{DynamicResource MainGroupBoxForegroundBrush}" Margin="5,3,3,3">
            <Hyperlink RequestNavigate="ChatLinkOnRequestNavigate" NavigateUri="#" Foreground="{DynamicResource MainGroupBoxForegroundBrush}">
              <TextBlock Text="Whatschapp" HorizontalAlignment="Center" Foreground="{DynamicResource MainGroupBoxForegroundBrush}" FontSize="12" VerticalAlignment="Center" />
            </Hyperlink>
          </TextBlock>
          <!-- ############################################################################################################################################################## -->
          
        </StackPanel>
			</GroupBox.Header>

			<Grid x:Name="RootGrid" ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False" Background="{StaticResource ObjectEditBackgroundBrush}">
				<!--<Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                        <GradientStop Color="#FFFFF4D5" Offset="0.996"/>
                        <GradientStop Color="#FFFFF9EA" Offset="0.723"/>
                    </LinearGradientBrush>

                </Grid.Background>-->


				<Grid Margin="5,5,5,5">
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto" />
						<RowDefinition Height="*" />
					</Grid.RowDefinitions>
					<TextBlock x:Name="txtVersion" Text="" TextWrapping="Wrap" HorizontalAlignment="Right" Margin="0,0,5,0" />
					<StackPanel Margin="5,0,0,0" Orientation="Horizontal">
						<TextBlock x:Name="txtLoginTime" Text="Angemeldet seit 13.01.2009 13:43" TextWrapping="Wrap" />
						<TextBlock x:Name="txtLastLoginTime" Text="Zuletzt angemeldet am: 08.01.2009 12:53" TextWrapping="Wrap" />
					</StackPanel>

					<blc:DragDockPanelHost x:Name="panelHost" Grid.Row="1">

						<blc:DragDockPanel x:Name="Tasks">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\AlertsDisabled.png" Stretch="Fill" StretchDirection="Both" />
									<TextBlock Text="Aufgaben" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<Grid Grid.IsSharedSizeScope="True">

								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>


								<StackPanel Orientation="Horizontal" Name="taskFilter" RadioButton.Checked="RadioButton_Checked">
									<RadioButton x:Name="rb_open" IsChecked="True" Margin="3" GroupName="task_filter">Offene Aufgaben</RadioButton>
									<RadioButton x:Name="rb_closed" Margin="3" GroupName="task_filter">Erledigte Aufgaben</RadioButton>
									<RadioButton x:Name="rb_all" Margin="3" GroupName="task_filter">Alle Aufgaben</RadioButton>
								</StackPanel>

								<ListBox Grid.Row="1" ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="listboxTasks"
                                         Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0"
                                         HorizontalContentAlignment="Stretch" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}"
                                         ScrollViewer.IsDeferredScrollingEnabled="False" MouseDoubleClick="listboxTasks_MouseDoubleClick" Background="{x:Null}">
									<ListBox.ItemTemplate>
										<DataTemplate DataType="{x:Type localViewModel:TaskVM}">
											<Grid Margin="0,1,0,1" ToolTip="{Binding Description}" TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="Auto" SharedSizeGroup="col1" />
													<ColumnDefinition Width="*" />
													<ColumnDefinition Width="Auto" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="Auto" />
												</Grid.RowDefinitions>
												<Border x:Name="BackgroundColorBorder" CornerRadius="5" MinHeight="24" Background="{DynamicResource SupportConceptListBrush}" Grid.ColumnSpan="3" Margin="0,0,0,0" OpacityMask="{x:Null}" />
												<Border x:Name="ItemBorder" CornerRadius="5" MinHeight="24" Background="#FF000000" Grid.ColumnSpan="3" Margin="0,0,0,0">
													<Border.OpacityMask>
														<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
															<GradientStop Color="#19000000" Offset="0" />
															<GradientStop Color="#26000000" Offset="1" />
														</LinearGradientBrush>
													</Border.OpacityMask>

												</Border>
												<TextBlock Margin="5 5" FontSize="12" Foreground="#FFD2D2D2" Grid.Column="0" Grid.Row="0">
													<TextBlock.Text>
														<MultiBinding StringFormat="{}{0}">
															<Binding Path="Title" />
														</MultiBinding>
													</TextBlock.Text>
												</TextBlock>
												<TextBlock Text="{Binding Converter={StaticResource TaskDateDescriptionConverter}}" Margin="5 5" FontSize="12" Foreground="#FFD2D2D2" Grid.Column="2" Grid.Row="0"></TextBlock>
											</Grid>
											<DataTemplate.Triggers>
												<Trigger Property="IsMouseOver" Value="True">
													<Setter Property="OpacityMask" TargetName="ItemBorder">
														<Setter.Value>
															<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
																<GradientStop Color="#44000000" Offset="0" />
																<GradientStop Color="#77000000" Offset="1" />
															</LinearGradientBrush>
														</Setter.Value>
													</Setter>
												</Trigger>

											</DataTemplate.Triggers>
										</DataTemplate>
									</ListBox.ItemTemplate>
									<!-- ListBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <StackPanel IsItemsHost="True" Background="{DynamicResource SupportConceptListBrush}"/>
                                    </ItemsPanelTemplate>
                                </ListBox.ItemsPanel-->

									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />

								</ListBox>

							</Grid>
						</blc:DragDockPanel>

						<blc:DragDockPanel x:Name="ExpiringSupportConcepts">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\Light Bulb.png" Stretch="Fill" StretchDirection="Both" />
									<TextBlock Text="Hinweise" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>

								<TextBlock Grid.Row="0" Text="Folgende Hilfepläne laufen demnächst aus:" TextWrapping="Wrap" />
								<ListBox Grid.Row="1" ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="listboxExpiringSupportConcepts" Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False" MouseDoubleClick="listboxSupportConcepts_MouseDoubleClick" Background="{x:Null}">
									<ListBox.ItemTemplate>
										<DataTemplate DataType="{x:Type sharedCompact:CompactSupportConceptDC}">
											<Grid Margin="0,1,0,1" TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
													<ColumnDefinition Width="Auto" />
													<ColumnDefinition Width="Auto" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="Auto" />
												</Grid.RowDefinitions>
												<Border x:Name="BackgroundColorBorder" CornerRadius="5" MinHeight="24" Background="{DynamicResource SupportConceptListBrush}" Grid.ColumnSpan="3" Margin="0,0,0,0" OpacityMask="{x:Null}" />
												<Border x:Name="ItemBorder" CornerRadius="5" MinHeight="24" Background="#FF000000" Grid.ColumnSpan="3" Margin="0,0,0,0">
													<Border.OpacityMask>
														<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
															<GradientStop Color="#19000000" Offset="0" />
															<GradientStop Color="#26000000" Offset="1" />
														</LinearGradientBrush>
													</Border.OpacityMask>

												</Border>
												<TextBlock Margin="5 5" FontSize="12" Foreground="#FFD2D2D2" Grid.Column="0" Grid.Row="0">
													<TextBlock.Text>
														<MultiBinding StringFormat="{}{0} endet am {1:dd.MM.yyyy}">
															<Binding Path="CustomerName" />
															<Binding Path="EndDate" />
														</MultiBinding>
													</TextBlock.Text>
												</TextBlock>
												<Button Grid.Column="1" Width="23" Height="23" Style="{DynamicResource TransparentButtonStyle}" ToolTip="In Zeiterfassung öffnen" Tag="{Binding}" Click="ButtonOpenServiceRecordView_Click" Margin="0,0,2,0">
													<Image Source="..\Ressources\Icons\HistoryDisabled.png" />
												</Button>
											</Grid>
											<DataTemplate.Triggers>
												<Trigger Property="IsMouseOver" Value="True">
													<Setter Property="OpacityMask" TargetName="ItemBorder">
														<Setter.Value>
															<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
																<GradientStop Color="#44000000" Offset="0" />
																<GradientStop Color="#77000000" Offset="1" />
															</LinearGradientBrush>
														</Setter.Value>
													</Setter>
												</Trigger>
											</DataTemplate.Triggers>
										</DataTemplate>
									</ListBox.ItemTemplate>
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />

								</ListBox>

							</Grid>
						</blc:DragDockPanel>

						<blc:DragDockPanel x:Name="ConferenceDates">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\Alarm.png" Stretch="Fill" StretchDirection="Both"></Image>
									<TextBlock Text="Hilfeplankonferenzen" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<TextBlock Grid.Row="0" Text="Hilfeplankonferenzen innerhalb der nächsten zwei Wochen:" TextWrapping="Wrap" />
								<ListBox Grid.Row="1" ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="listboxConferenceDates" Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False" MouseDoubleClick="listboxSupportConcepts_MouseDoubleClick" Background="{x:Null}">
									<ListBox.ItemTemplate>
										<DataTemplate DataType="{x:Type sharedCompact:CompactSupportConceptDC}">
											<Grid Margin="0,1,0,1" TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
													<ColumnDefinition Width="Auto" />
													<ColumnDefinition Width="Auto" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="Auto" />
												</Grid.RowDefinitions>
												<Border x:Name="BackgroundColorBorder" CornerRadius="5" MinHeight="24" Background="{DynamicResource SupportConceptListBrush}" Grid.ColumnSpan="3" Margin="0,0,0,0" OpacityMask="{x:Null}" />
												<Border x:Name="ItemBorder" CornerRadius="5" MinHeight="24" Background="#FF000000" Grid.ColumnSpan="3" Margin="0,0,0,0">
													<Border.OpacityMask>
														<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
															<GradientStop Color="#19000000" Offset="0" />
															<GradientStop Color="#26000000" Offset="1" />
														</LinearGradientBrush>
													</Border.OpacityMask>

												</Border>
												<TextBlock Margin="5 5" FontSize="12" Foreground="#FFD2D2D2" Grid.Column="0" Grid.Row="0">
													<TextBlock.Text>
														<MultiBinding StringFormat="{}{0} {1}">
															<Binding Path="ConferenceDateString" />
															<Binding Path="CustomerName" />
														</MultiBinding>
													</TextBlock.Text>
												</TextBlock>
												<Button Grid.Column="1" Width="23" Height="23" Style="{DynamicResource TransparentButtonStyle}" ToolTip="In Zeiterfassung öffnen" Tag="{Binding}" Click="ButtonOpenServiceRecordView_Click" Margin="0,0,3,0">
													<Image Source="..\Ressources\Icons\HistoryDisabled.png" />
												</Button>
											</Grid>
											<DataTemplate.Triggers>
												<Trigger Property="IsMouseOver" Value="True">
													<Setter Property="OpacityMask" TargetName="ItemBorder">
														<Setter.Value>
															<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
																<GradientStop Color="#44000000" Offset="0" />
																<GradientStop Color="#77000000" Offset="1" />
															</LinearGradientBrush>
														</Setter.Value>
													</Setter>
												</Trigger>

											</DataTemplate.Triggers>
										</DataTemplate>
									</ListBox.ItemTemplate>
									<!-- ListBox.ItemsPanel>
                                    <ItemsPanelTemplate>
                                        <StackPanel IsItemsHost="True" Background="{DynamicResource SupportConceptListBrush}"/>
                                    </ItemsPanelTemplate>
                                </ListBox.ItemsPanel-->

									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />
									<sharedCompact:CompactSupportConceptDC ActivationType="Active" ConferenceDate="2010-01-01" />

								</ListBox>
							</Grid>
						</blc:DragDockPanel>

						<blc:DragDockPanel x:Name="Birthdates">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\Calendar 1.png" Stretch="Fill" StretchDirection="Both" />
									<TextBlock Text="Geburtstage" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<ListBox ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="listboxBirthdays" Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Background="{x:Null}" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False" MouseDoubleClick="listboxBirthdays_MouseDoubleClick">
									<ListBox.ItemTemplate>
										<DataTemplate DataType="{x:Type sharedCompact:CompactPersonDC}">
											<Grid Margin="0,1,0,1" TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="Auto" />
												</Grid.RowDefinitions>
												<Border x:Name="BackgroundColorBorder" CornerRadius="5" MinHeight="24" Background="{Binding Converter={StaticResource PersonBackgroundBrushConverter}}" Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="0,0,0,0" OpacityMask="{x:Null}" />
												<Border x:Name="ItemBorder" CornerRadius="5" MinHeight="24" Background="#FF000000" Grid.RowSpan="3" Grid.ColumnSpan="2" Margin="0,0,0,0" Visibility="Visible">
													<Border.OpacityMask>
														<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
															<GradientStop Color="#00000000" Offset="0" />
															<GradientStop Color="#00000000" Offset="1" />
														</LinearGradientBrush>
													</Border.OpacityMask>

												</Border>
												<TextBlock Margin="5 5" FontSize="12" Foreground="#FFD2D2D2" Grid.Column="0" Grid.Row="0">
													<TextBlock.Text>
														<MultiBinding StringFormat="{}{0}  *{1}">
															<Binding Path="FullName" />
															<Binding Path="Birthday" />
														</MultiBinding>
													</TextBlock.Text>
												</TextBlock>

											</Grid>
											<DataTemplate.Triggers>
												<Trigger Property="IsMouseOver" Value="True">
													<Setter Property="OpacityMask" TargetName="ItemBorder">
														<Setter.Value>
															<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
																<GradientStop Color="#44000000" Offset="0" />
																<GradientStop Color="#77000000" Offset="1" />
															</LinearGradientBrush>
														</Setter.Value>
													</Setter>
												</Trigger>

											</DataTemplate.Triggers>
										</DataTemplate>
									</ListBox.ItemTemplate>
								</ListBox>
							</Grid>
						</blc:DragDockPanel>

						<blc:DragDockPanel x:Name="InternalNews">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\AlertsDisabled.png" Stretch="Fill" StretchDirection="Both" />
									<TextBlock Text="Ankündigungen" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<ScrollViewer VerticalScrollBarVisibility="Auto">
								<Grid x:Name="InternalNewsGrid" Margin="5,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" Background="{x:Null}">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="*" />
									</Grid.ColumnDefinitions>
									<Grid.RowDefinitions>
										<RowDefinition Height="*" />
									</Grid.RowDefinitions>

								</Grid>
							</ScrollViewer>
							<!--<ListBox ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="ListboxInternalNews" Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Background="{x:Null}" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False">
								<ListBox.ItemTemplate>
									<DataTemplate DataType="{x:Type localViewModel:TeamNewsItemVM}">
										<Grid Margin="0 3">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="*" />
											</Grid.ColumnDefinitions>
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="*" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
											<Expander  HorizontalAlignment="Stretch" IsExpanded="True" Style="{DynamicResource FlatLineExpander}" >
												<Expander.Header>
													<Grid Background="Transparent" Visibility="{Binding Path=IsTitleVisible, Converter={StaticResource BoolVisibilityConverter}}">
														<Grid.ColumnDefinitions>
															<ColumnDefinition Width="Auto" />
															<ColumnDefinition Width="*" />
														</Grid.ColumnDefinitions>
														<TextBlock FontSize="14" Foreground="Black" Grid.Column="0" Grid.Row="0" FontWeight="Bold" Text="{Binding Path=Team.Name}"/>
														<Button Grid.Column="1" x:Name="btnCreateNewsItem" Style="{DynamicResource FlatButton}" Tag="{Binding}" Margin="0,0,-10,0"
																HorizontalAlignment="Right" Width="16" Height="16" Click="BtnCreateNewsItem_OnClick" Visibility="{Binding Path=AllowEdit, Converter={StaticResource BoolVisibilityConverter}}">
															<Image Source="..\..\Ressources\Icons\new.png" Stretch="Uniform" />
														</Button>

													</Grid>
												</Expander.Header>
												<ListBox ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" Margin="0,3,0,0"
													 Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Background="{x:Null}" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False"
													 ItemsSource="{Binding Path=NewsItems}">
													<ListBox.ItemTemplate>
														<DataTemplate DataType="{x:Type shared:NewsItemDC}">
															<Grid Margin="0 3">
																<Grid.ColumnDefinitions>
																	<ColumnDefinition Width="*" />
																	<ColumnDefinition Width="Auto" />
																	<ColumnDefinition Width="Auto" />
																</Grid.ColumnDefinitions>
																<Grid.RowDefinitions>
																	<RowDefinition Height="25" />
																	<RowDefinition Height="*" />
																	<RowDefinition Height="Auto" />
																</Grid.RowDefinitions>
																<TextBlock FontSize="12" Foreground="{DynamicResource BigInfoTextBrush}" Grid.Column="0" Grid.Row="0" FontWeight="Bold" Text="{Binding Path=TitleString}" Margin="0,0,0,0"/>
																<TextBlock FontSize="10" Foreground="#FF000000" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Text="{Binding Path=Text}" TextWrapping="Wrap" Margin="0,0,0,0"  />

																<Border Grid.Column="1" Background="Transparent">
																</Border>
																<Button Grid.Column="1" x:Name="btnEditNewsItem" BorderThickness="1,1,1,1" Padding="1,1,1,1" Style="{DynamicResource FlatButton}" Tag="{Binding}" VerticalAlignment="Top"
																		Width="16" Height="16" Click="BtnEditNewsItem_OnClick" Visibility="Hidden">
																	<Image Source="..\..\Ressources\Icons\edit.png" Stretch="Uniform" Margin="1,1,1,1" />
																</Button>
																

																<Border Grid.Column="2" Background="Transparent">
																</Border>
																<Button Grid.Column="2" x:Name="btnDeleteNewsItem" BorderThickness="1,1,1,1" Padding="1,1,1,1" Style="{DynamicResource FlatButton}" Tag="{Binding}" VerticalAlignment="Top"
																		Width="16" Height="16" Click="BtnDeleteNewsItem_OnClick" Visibility="Hidden">
																	<Image Source="..\..\Ressources\Icons\delete.png" Stretch="Uniform" Margin="1,1,1,1" />
																</Button>
																
															</Grid>
															<DataTemplate.Triggers>
																<Trigger Property="IsMouseOver" Value="True">
																	<Setter Property="Visibility" TargetName="btnEditNewsItem" Value="{Binding Path=AllowEdit, Converter={StaticResource BoolVisibilityConverter}}" />
																	<Setter Property="Visibility" TargetName="btnDeleteNewsItem" Value="{Binding Path=AllowEdit, Converter={StaticResource BoolVisibilityConverter}}" />
																</Trigger>
															</DataTemplate.Triggers>
														</DataTemplate>
													</ListBox.ItemTemplate>
												</ListBox>
											</Expander>
											-->
							<!--<ListBox ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" Margin="0,-3,0,0" Visibility="{Binding Path=IsTitleVisible, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter='false'}"
													 Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Background="{x:Null}" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False"
													 ItemsSource="{Binding Path=NewsItems}">
													<ListBox.ItemTemplate>
														<DataTemplate DataType="{x:Type shared:NewsItemDC}">
															<Grid Margin="0 3">
																<Grid.ColumnDefinitions>
																	<ColumnDefinition Width="*" />
																	<ColumnDefinition Width="Auto" />
																	<ColumnDefinition Width="Auto" />
																</Grid.ColumnDefinitions>
																<Grid.RowDefinitions>
																	<RowDefinition Height="Auto" />
																	<RowDefinition Height="*" />
																</Grid.RowDefinitions>
																<TextBlock FontSize="12" Foreground="{DynamicResource BigInfoTextBrush}" Grid.Column="0" Grid.Row="0" FontWeight="Bold" Text="{Binding Path=Title}" Margin="0,0,0,0"/>
																<TextBlock FontSize="10" Foreground="#FF000000" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Text="{Binding Path=Text}" TextWrapping="Wrap" Margin="0,3,0,0"  />
																
															</Grid>
														</DataTemplate>
													</ListBox.ItemTemplate>
												</ListBox>-->
							<!--


										</Grid>
									</DataTemplate>
								</ListBox.ItemTemplate>
							</ListBox>-->
						</blc:DragDockPanel>

						<blc:DragDockPanel x:Name="BeWoNews">
							<blc:DragDockPanel.Header>
								<StackPanel Orientation="Horizontal">
									<Image Source="..\Ressources\Icons\RSS Newsfeed.png" Stretch="Fill" StretchDirection="Both" />
									<TextBlock Text="BeWoPlaner News" TextWrapping="Wrap" FontSize="16" Foreground="#E0E0E0" VerticalAlignment="Bottom" Margin="5,0,0,5" />
								</StackPanel>
							</blc:DragDockPanel.Header>
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<ListBox ScrollViewer.CanContentScroll="True" IsSynchronizedWithCurrentItem="True" x:Name="listboxNews" Margin="0,3,0,0" Padding="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch" MinWidth="0" HorizontalContentAlignment="Stretch" Background="{x:Null}" Style="{DynamicResource HomeViewListStyle}" ItemContainerStyle="{DynamicResource HomeViewListBoxItemStyle}" ScrollViewer.IsDeferredScrollingEnabled="False" MouseDoubleClick="listboxBirthdays_MouseDoubleClick">
									<ListBox.ItemTemplate>
										<DataTemplate DataType="{x:Type shared:RssItem}">
											<Grid Margin="0,1,0,1" TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="*" />
												</Grid.ColumnDefinitions>
												<Grid.RowDefinitions>
													<RowDefinition Height="Auto" />
													<RowDefinition Height="Auto" />
													<RowDefinition Height="*" />
													<RowDefinition Height="Auto" />
												</Grid.RowDefinitions>
												<TextBlock FontSize="12" Foreground="{DynamicResource BigInfoTextBrush}" Grid.Column="0" Grid.Row="0" FontWeight="Bold" TextDecorations="Underline">
													<Hyperlink NavigateUri="{Binding Path=Link}" TargetName="newWindow" Foreground="{DynamicResource BigInfoTextBrush}" RequestNavigate="Hyperlink_OnRequestNavigate">
														<TextBlock Text="{Binding Path=Title}" />
													</Hyperlink>
												</TextBlock>
												<TextBlock FontSize="10" Foreground="#FF868686" Grid.Column="0" Grid.Row="1" Text="{Binding Path=DateString}" Margin="0,3,0,0" />
												<TextBlock FontSize="10" Foreground="#FF000000" Grid.Column="0" Grid.Row="2" Text="{Binding Path=Description}" TextWrapping="Wrap" Margin="0,3,0,0" />
												<TextBlock Grid.Row="3">
													<Hyperlink TextDecorations="None" NavigateUri="{Binding Path=Link}" TargetName="newWindow" RequestNavigate="Hyperlink_OnRequestNavigate">
														<Image Source="..\Ressources\Icons\ArrowRight.png" Width="16" Height="16" />
													</Hyperlink>
												</TextBlock>


											</Grid>
										</DataTemplate>
									</ListBox.ItemTemplate>
									<shared:RssItem Date="11/05/2009 14:32:00" Description="Blabsaf uuahs flashufl sahfl ashf lsafh " Link="www.beyondsoft.de" Title="Neue BeWoPlaner Version online!" />
									<shared:RssItem Date="11/03/2009 12:12:00" Description="Blabsaf uuahs flashufl sahfl ashf lsafh " Link="www.beyondsoft.de" Title="Server Crash! Alle Daten weg!" />
								</ListBox>
							</Grid>
						</blc:DragDockPanel>
					</blc:DragDockPanelHost>

				</Grid>

			</Grid>

		</GroupBox>
	</uc:ShadowChrome>

</localView:BeWoView>