newSanwindow hinzugefügt

This commit is contained in:
Husky
2020-06-13 16:46:18 +02:00
parent 9442d94de5
commit dc07ba2638
7 changed files with 56 additions and 4 deletions

View File

@@ -7,6 +7,9 @@
</ApplicationDefinition> </ApplicationDefinition>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="NewSanierungWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPositionenBaustelle.xaml.cs"> <Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPositionenBaustelle.xaml.cs">
<SubType>Code</SubType> <SubType>Code</SubType>
</Compile> </Compile>
@@ -78,6 +81,9 @@
<Page Update="my_controls.xaml"> <Page Update="my_controls.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>
<Page Update="NewSanierungWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Resources.xaml"> <Page Update="Resources.xaml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Page> </Page>

View File

@@ -45,6 +45,7 @@
<StackPanel Grid.Row="2"> <StackPanel Grid.Row="2">
<RadioButton Name="rbLeistungsverzeichnis" Content="Leistungsverzeichnis" Style="{StaticResource ToggelButtonList}" Checked="rbLeistungsverzeichnis_Checked" /> <RadioButton Name="rbLeistungsverzeichnis" Content="Leistungsverzeichnis" Style="{StaticResource ToggelButtonList}" Checked="rbLeistungsverzeichnis_Checked" />
<RadioButton Name="rbLeistungsverzeichnisBaustellen" Content="LV / BS" Style="{StaticResource ToggelButtonList}" Checked="rbLeistungsverzeichnisBaustellen_Checked" /> <RadioButton Name="rbLeistungsverzeichnisBaustellen" Content="LV / BS" Style="{StaticResource ToggelButtonList}" Checked="rbLeistungsverzeichnisBaustellen_Checked" />
<RadioButton Name="Test" Checked="Test_Checked" Content="Test" Style="{StaticResource ToggelButtonList}" />
</StackPanel> </StackPanel>
</Grid> </Grid>
<ContentControl Grid.Column="1" Name="ContentController" Content="KanSan"/> <ContentControl Grid.Column="1" Name="ContentController" Content="KanSan"/>

View File

@@ -206,6 +206,12 @@ namespace KanSan
UCLeistungsverzeichnisPositionenBaustelle = new UI.UCLeistungsverzeichnisPositionenBaustelle(); UCLeistungsverzeichnisPositionenBaustelle = new UI.UCLeistungsverzeichnisPositionenBaustelle();
ContentController.Content = UCLeistungsverzeichnisPositionenBaustelle; ContentController.Content = UCLeistungsverzeichnisPositionenBaustelle;
} }
private void Test_Checked(object sender, RoutedEventArgs e)
{
NewSanierungWindow newSanierungWindow = new NewSanierungWindow();
newSanierungWindow.ShowDialog();
}
} }
} }

View File

@@ -0,0 +1,12 @@
<Window x:Class="KanSan.NewSanierungWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:KanSan"
mc:Ignorable="d"
Title="NewSanierungWindow" Height="450" Width="800">
<Grid>
<ContentControl Name="Root" />
</Grid>
</Window>

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace KanSan
{
/// <summary>
/// Interaktionslogik für NewSanierungWindow.xaml
/// </summary>
public partial class NewSanierungWindow : Window
{
public NewSanierungWindow()
{
InitializeComponent();
Root.Content = new UI.UCTätigkeitenNew();
}
}
}

View File

@@ -20,8 +20,9 @@
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
<RowDefinition />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<ContentControl Grid.Row="0" Content="{Binding }" ContentTemplate="{StaticResource SelectNewTätigkeitenLVPosition}" /> <ContentControl Grid.Row="0" Content="{Binding }" ContentTemplate="{StaticResource SelectNewTätigkeitenLVPosition}" />
<ContentControl Grid.Row="1" />
</Grid> </Grid>
</UserControl> </UserControl>

View File

@@ -5,17 +5,17 @@
<DataTemplate x:Key="SanierungViewModelDataTemplate" DataType="{x:Type l:UCHarzSanierung }"> <DataTemplate x:Key="SanierungViewModelDataTemplate" DataType="{x:Type l:UCHarzSanierung }">
<l:UCHarzSanierung /> <l:UCHarzSanierung />
</DataTemplate> </DataTemplate>
<DataTemplate x:Key="SelectNewTätigkeitenLVPosition" DataType="{x:Type l:UCTätigkeitNewSelect}"> <DataTemplate x:Key="SelectNewTätigkeitenLVPosition">
<Border BorderThickness="2" BorderBrush="Red"> <Border BorderThickness="2" BorderBrush="Red">
<ItemsControl ItemsSource="{Binding LVPositionen }"> <ItemsControl ItemsSource="{Binding LVPositionen }">
<ItemsControl.ItemsPanel> <ItemsControl.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>
<UniformGrid Rows="8" Columns="3" /> <UniformGrid Rows="4" Columns="3" />
</ItemsPanelTemplate> </ItemsPanelTemplate>
</ItemsControl.ItemsPanel> </ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate> <ItemsControl.ItemTemplate>
<DataTemplate> <DataTemplate>
<Button Content="{Binding Beschreibung}" /> <Button Content="{Binding Beschreibung}" Command="Test" />
</DataTemplate> </DataTemplate>
</ItemsControl.ItemTemplate> </ItemsControl.ItemTemplate>
</ItemsControl> </ItemsControl>