98 lines
5.5 KiB
XML
98 lines
5.5 KiB
XML
<UserControl
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" Focusable="True"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:clientPartials="clr-namespace:BS.Shared.DataContracts.ClientPartials;assembly=BS.Shared"
|
|
x:Class="BeWo.View.Detail.GoalImportControl"
|
|
d:DesignHeight="500" d:DesignWidth="550"
|
|
mc:Ignorable="d">
|
|
<Grid Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label x:Name="SearchFieldLabel" Grid.Column="0" Content="Suche" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Left" />
|
|
<TextBox x:Name="cbtv_search" Grid.Column="1" Margin="3" Height="23" Template="{StaticResource SearchTextBoxTemplate}" HorizontalAlignment="Stretch" />
|
|
</Grid>
|
|
<TreeView x:Name="TreeView" Grid.Row="1" Grid.ColumnSpan="2" Margin="3" Padding="0 5 10 5" ItemTemplate="{DynamicResource TreeItemTemplate}" ItemContainerStyle="{DynamicResource TreeViewStyle}">
|
|
<TreeView.Resources>
|
|
<Style x:Key="TreeViewStyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
|
|
</Style>
|
|
<HierarchicalDataTemplate x:Key="TreeItemTemplate" DataType="{x:Type clientPartials:SupportConceptGoalDC}" ItemsSource="{Binding Path=Children}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<CheckBox IsChecked="{Binding Path=IsChecked, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Margin="0, 4, 2, 0"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1" Background="Transparent" Height="21" Padding="0, 3, 0, 0" VerticalAlignment="Center" HorizontalAlignment="Left" BorderThickness="0"
|
|
IsReadOnly="True" Text="{Binding Path=GoalEntryDC.DisplayName, Mode=OneWay}" FontWeight="Bold" ToolTipService.ShowDuration="100000">
|
|
<TextBox.ToolTip>
|
|
<StackPanel Orientation="Vertical">
|
|
<Label FontWeight="Bold" Content="{Binding Path=GoalEntryDC.TypeDescription, Mode=OneWay}"/>
|
|
<TextBox Background="Transparent" Padding="3,1,0,0" VerticalAlignment="Center" BorderThickness="0"
|
|
TextWrapping="Wrap"
|
|
AcceptsReturn="True"
|
|
MaxWidth="500"
|
|
IsReadOnly="True" Text="{Binding Path=GoalEntryDC.Notice}" />
|
|
</StackPanel>
|
|
</TextBox.ToolTip>
|
|
</TextBox>
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.Resources>
|
|
<TreeView.ItemsSource>
|
|
<MultiBinding Converter="{StaticResource FilterDCConverter}">
|
|
<MultiBinding.Bindings>
|
|
<Binding Path="GoalTree" />
|
|
<Binding ElementName="cbtv_search" Path="Text" />
|
|
</MultiBinding.Bindings>
|
|
</MultiBinding>
|
|
</TreeView.ItemsSource>
|
|
</TreeView>
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="0" Orientation="Horizontal" >
|
|
<Button Margin="3"
|
|
Name="button_checkAllGoals" Click="button_checkAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle auswählen</Button>
|
|
<Button Margin="3"
|
|
Name="button_uncheckAllGoals" Click="button_uncheckAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle abwählen</Button>
|
|
<Button Margin="3"
|
|
Name="button_aufklappenAllGoals" Click="button_aufklappenAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle aufklappen</Button>
|
|
<Button Margin="3"
|
|
Name="button_zuklappenAllGoals" Click="button_zuklappenAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle zuklappen</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
|
|
<Button x:Name="ButtonImport" Content=" Hinzufügen " Margin="3" HorizontalAlignment="Right" Click="ButtonImport_Click" />
|
|
<Button x:Name="ButtonCancel" Grid.Row="1" Grid.Column="1" Content=" Abbrechen " Margin="3,3,6,3" HorizontalAlignment="Right" Click="ButtonCancel_Click" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|