Files
BeWoPlaner/BeWo/View/Controls/SingleSupportConceptSelectionControl.xaml

144 lines
6.4 KiB
XML

<UserControl
x:Class="BeWo.View.Controls.SingleSupportConceptSelectionControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:localsearch="clr-namespace:BeWo.View.Search"
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid
x:Name="mainGrid"
Background="{DynamicResource SupportConceptListBrush}"
MouseDown="btnSelectSupportConcept_Click">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid>
<Border x:Name="ItemContent" MinHeight="25">
<Grid
Margin="3,2,1,2"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
OpacityMask="{x:Null}"
SnapsToDevicePixels="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Image
x:Name="img"
Width="Auto"
Height="20"
HorizontalAlignment="Left"
VerticalAlignment="Center"
Source="..\..\Ressources\Icons\UserHomeMaleDisabled.png"
Visibility="Hidden" />
<TextBlock>
<Hyperlink
x:Name="NameAsLink"
Click="Hyperlink_OnClick"
Cursor="Arrow"
Foreground="#00000000">
<TextBlock
x:Name="customerText"
Margin="3,2"
VerticalAlignment="Center"
FontSize="14"
Foreground="#FFD2D2D2"
Tag="{Binding}"
Text="{Binding CustomerName}"
TextWrapping="Wrap" />
</Hyperlink>
</TextBlock>
</StackPanel>
<TextBlock
x:Name="supportConceptText"
Grid.Row="1"
Grid.ColumnSpan="2"
Margin="3,2"
VerticalAlignment="Center"
FontSize="12"
Foreground="{Binding NodeForegroundBrush}"
Text="{Binding SupportConceptName}" />
<TextBlock
x:Name="costBearerText"
Grid.Row="2"
Grid.ColumnSpan="2"
Margin="3,2"
VerticalAlignment="Center"
FontSize="12"
Foreground="#FFA0A0A0"
Text="{Binding CostBearerName}" />
<Button
x:Name="btnSelectSupportConcept"
Grid.RowSpan="3"
Grid.Column="2"
Width="26"
Height="Auto"
Margin="0"
Click="btnSelectSupportConcept_Click"
Tag="{Binding}"
ToolTip="{markup:Translate Hilfeplan auswählen}">
<Border
Grid.RowSpan="2"
Margin="0"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Canvas
Width="20"
Height="20"
Margin="0,0,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<Ellipse
x:Name="lupe1"
Width="14"
Height="14"
Fill="{x:Null}"
Stroke="#FFFFFFFF"
StrokeThickness="2" />
<Line
x:Name="lupe2"
Canvas.Left="10"
Canvas.Top="11.4"
Fill="#FFFFFFFF"
Stretch="Fill"
Stroke="#FFFFFFFF"
StrokeThickness="3"
X2="5"
Y1="0"
Y2="6" />
</Canvas>
</Border>
</Button>
</Grid>
</Border>
</Grid>
<Popup
x:Name="popupSupportConcepts"
Grid.Row="1"
Width="450"
Height="400"
Placement="MousePoint"
StaysOpen="False">
<localsearch:SupportConceptSearchView
x:Name="SearchView"
ItemSelected="SupportConceptSearchView_ItemSelected"
SearchMode="ActiveCostbearer2SupportConcepts"
ShowFilterPanel="True" />
</Popup>
</Grid>
</UserControl>