newSanwindow hinzugefügt
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
</ApplicationDefinition>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="NewSanierungWindow.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UI\Leistungsverzeichnis\UCLeistungsverzeichnisPositionenBaustelle.xaml.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
@@ -78,6 +81,9 @@
|
||||
<Page Update="my_controls.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="NewSanierungWindow.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Update="Resources.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
<StackPanel Grid.Row="2">
|
||||
<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="Test" Checked="Test_Checked" Content="Test" Style="{StaticResource ToggelButtonList}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<ContentControl Grid.Column="1" Name="ContentController" Content="KanSan"/>
|
||||
|
||||
@@ -206,6 +206,12 @@ namespace KanSan
|
||||
UCLeistungsverzeichnisPositionenBaustelle = new UI.UCLeistungsverzeichnisPositionenBaustelle();
|
||||
ContentController.Content = UCLeistungsverzeichnisPositionenBaustelle;
|
||||
}
|
||||
|
||||
private void Test_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
NewSanierungWindow newSanierungWindow = new NewSanierungWindow();
|
||||
newSanierungWindow.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
12
KanSan/NewSanierungWindow.xaml
Normal file
12
KanSan/NewSanierungWindow.xaml
Normal 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>
|
||||
26
KanSan/NewSanierungWindow.xaml.cs
Normal file
26
KanSan/NewSanierungWindow.xaml.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,8 +20,9 @@
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<ContentControl Grid.Row="0" Content="{Binding }" ContentTemplate="{StaticResource SelectNewTätigkeitenLVPosition}" />
|
||||
<ContentControl Grid.Row="1" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
<DataTemplate x:Key="SanierungViewModelDataTemplate" DataType="{x:Type l:UCHarzSanierung }">
|
||||
<l:UCHarzSanierung />
|
||||
</DataTemplate>
|
||||
<DataTemplate x:Key="SelectNewTätigkeitenLVPosition" DataType="{x:Type l:UCTätigkeitNewSelect}">
|
||||
<DataTemplate x:Key="SelectNewTätigkeitenLVPosition">
|
||||
<Border BorderThickness="2" BorderBrush="Red">
|
||||
<ItemsControl ItemsSource="{Binding LVPositionen }">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Rows="8" Columns="3" />
|
||||
<UniformGrid Rows="4" Columns="3" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Button Content="{Binding Beschreibung}" />
|
||||
<Button Content="{Binding Beschreibung}" Command="Test" />
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
Reference in New Issue
Block a user