Files
BeWoPlaner/BeWo/View/Document/SingleTemplateSelectionView.xaml

156 lines
6.1 KiB
XML

<localView:BeWoView
x:Class="BeWo.View.Document.SingleTemplateSelectionView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
xmlns:localView="clr-namespace:BeWo.View"
xmlns:localViewControls="clr-namespace:BeWo.View.Controls"
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
xmlns:val="clr-namespace:BeWo.Validation"
Focusable="True">
<Grid Background="{StaticResource ObjectEditBackgroundBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition x:Name="GridRowTemplate" Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition x:Name="GridRowFolder" Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label
x:Name="lblTemplate"
Margin="0,0,0,0"
Content="Vorlage:" />
<dxg:TreeListControl
x:Name="treelistcontrol_template"
Grid.Row="1"
Grid.ColumnSpan="2"
Margin="5,0,5,0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn CellToolTipBinding="{Binding Description}" FieldName="Name" />
<dxg:TreeListColumn
AllowSorting="True"
FieldName="SortName"
SortIndex="0"
SortOrder="Ascending"
Visible="False" />
</dxg:TreeListControl.Columns>
<dxg:TreeListControl.View>
<dxg:TreeListView
x:Name="TreeView_template"
AllowEditing="False"
AutoWidth="True"
KeyFieldName="{Binding DocumentTreeItemVM.DocTreeItemOid}"
MouseDoubleClick="TreeView_template_MouseDoubleClick"
ParentFieldName="Binding DocumentTreeItemVM.ParentOid"
PrintNodeImages="True"
ShowColumnHeaders="False"
ShowHorizontalLines="False"
ShowIndicator="False"
ShowNodeImages="True"
ShowVerticalLines="False" />
</dxg:TreeListControl.View>
</dxg:TreeListControl>
<!--<CheckBox x:Name="chkSaveDoc" Content="Dokument abspeichern" Grid.Row="2" Checked="CheckBox_Checked" Margin="5,8,0,0" Unchecked="CheckBox_Unchecked" />-->
<Label
x:Name="lblFileName"
Grid.Row="2"
Margin="0,3,0,0"
Content="Name:" />
<TextBox
x:Name="txtFileName"
Grid.Row="2"
Grid.Column="1"
Margin="3,3,0,0"
HorizontalAlignment="Stretch" />
<dxg:TreeListControl
x:Name="treelistcontrol_folderStructureForSelection"
Grid.Row="4"
Grid.ColumnSpan="2"
Margin="5,5,5,0"
VerticalAlignment="Stretch"
DefaultSorting="Name"
Visibility="Visible">
<dxg:TreeListControl.Columns>
<dxg:TreeListColumn AllowSorting="True" FieldName="Name" />
</dxg:TreeListControl.Columns>
<dxg:TreeListControl.View>
<dxg:TreeListView
x:Name="TreeView_folderStructureForSelection"
AllowEditing="False"
AutoWidth="True"
KeyFieldName="{Binding DocumentTreeItemVM.DocTreeItemOid}"
ParentFieldName="Binding DocumentTreeItemVM.ParentOid"
PrintNodeImages="True"
ShowColumnHeaders="False"
ShowHorizontalLines="False"
ShowIndicator="False"
ShowNodeImages="True"
ShowVerticalLines="False" />
</dxg:TreeListControl.View>
</dxg:TreeListControl>
<WrapPanel
Grid.Row="5"
Grid.ColumnSpan="1"
Margin="0,5,5,5"
HorizontalAlignment="Left"
VerticalAlignment="Bottom">
<Button
Name="button_aufklappenAllGoals"
Margin="10,0,0,0"
HorizontalAlignment="Left"
Click="button_aufklappenAll_Click">
Alle aufklappen
</Button>
<Button
Name="button_zuklappenAllGoals"
Margin="5,0,0,0"
HorizontalAlignment="Left"
Click="button_zuklappenAll_Click">
Alle zuklappen
</Button>
</WrapPanel>
<WrapPanel
Grid.Row="5"
Grid.Column="1"
Margin="0,5,5,5"
HorizontalAlignment="Right"
VerticalAlignment="Bottom">
<Button
x:Name="Button_SelectTemplate"
Margin="0,0,5,0"
Click="Button_CreateTemplateForSelection_Click"
Content="Dokument erstellen" />
<Button
x:Name="Button_SelectFolder"
Margin="0,0,5,0"
Click="Button_SelectFolder_Click"
Content="Dokument speichern" />
<Button
x:Name="Button_Cancel_OnlyOne"
Click="Button_Cancel_Click"
Content="Abbrechen" />
</WrapPanel>
</Grid>
</localView:BeWoView>