126 lines
5.7 KiB
XML
126 lines
5.7 KiB
XML
<UserControl
|
|
x:Class="BeWo.View.Controls.CustomerSelectionControl"
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="300"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<!--<Label x:Name="labelTitle" Content="Gruppenauswahl" FontSize="12" FontWeight="Bold" />-->
|
|
<Grid
|
|
Grid.Row="1"
|
|
Background="{DynamicResource CustomerListBrush}"
|
|
MouseDown="btnSelectCustomer_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\UserGroupDisabled.png"
|
|
Visibility="Hidden" />
|
|
<StackPanel Orientation="Vertical">
|
|
<TextBlock
|
|
x:Name="FullName"
|
|
Margin="3,2"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Foreground="#FFD2D2D2"
|
|
Tag="{Binding}"
|
|
Text="{Binding Name}"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
|
<Button
|
|
x:Name="btnSelectCustomer"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="2"
|
|
Width="26"
|
|
Height="Auto"
|
|
Margin="0"
|
|
Click="btnSelectCustomer_Click"
|
|
Tag="{Binding}"
|
|
ToolTip="Gruppe 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="popupCustomers"
|
|
Grid.Row="1"
|
|
Width="400"
|
|
Height="400"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localsearch:CustomerSearchView x:Name="SearchView" ItemSelected="CustomerSearchView_ItemSelected" />
|
|
</Popup>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|