Controlls editiert
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:KanSan"
|
xmlns:local="clr-namespace:KanSan"
|
||||||
xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF" x:Class="KanSan.MainWindow"
|
xmlns:syncfusion="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF" x:Class="KanSan.MainWindow"
|
||||||
TitleTextAlignment="Center"
|
TitleTextAlignment="Center" TitleBarBackground="BlueViolet"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="{Binding ApplicationTitle}" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
|
Title="{Binding ApplicationTitle}" Height="450" Width="800" WindowStartupLocation="CenterScreen" WindowState="Maximized">
|
||||||
|
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
</Window.Resources>
|
</Window.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="29*" />
|
<ColumnDefinition Width="Auto" />
|
||||||
<ColumnDefinition Width="171*" />
|
<ColumnDefinition />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="206*" />
|
<RowDefinition Height="206*" />
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:self="clr-namespace:KanSan.ViewModel;assembly=KanSan.ViewModel"
|
||||||
xmlns:local="clr-namespace:KanSan.UI"
|
xmlns:local="clr-namespace:KanSan.UI"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="450" d:DesignWidth="800" Background="LightGray">
|
d:DesignHeight="450" d:DesignWidth="800" Background="LightGray">
|
||||||
@@ -14,7 +15,52 @@
|
|||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<StackPanel Grid.Column="1">
|
||||||
<CheckBox Content="Rohrleitung in Betrieb" IsChecked="True" Style="{StaticResource checkBoxCircle}"/>
|
<CheckBox Content="Rohrleitung in Betrieb" IsChecked="True" Style="{StaticResource checkBoxCircle}"/>
|
||||||
|
<CheckBox Content="Wasserhaltung durchgeführt" IsChecked="True" Style="{StaticResource checkBoxCircle}" />
|
||||||
|
<CheckBox Content="Haltung gespült" IsChecked="True" Style="{StaticResource checkBoxCircle}" />
|
||||||
|
<CheckBox Content="Genehmigung Erforderlich" IsChecked="True" Style="{StaticResource checkBoxCircle}" />
|
||||||
|
<CheckBox Content="Baustellen sicherung erforderlich" IsChecked="False" Style="{StaticResource checkBoxCircle}" />
|
||||||
|
</StackPanel>
|
||||||
|
<Grid Grid.Column="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Label Grid.Row="0" Grid.Column="0" Content="Strassename"/>
|
||||||
|
<Label Grid.Row="1" Grid.Column="0" Content="Obere Punkt" />
|
||||||
|
<Label Grid.Row="2" Grid.Column="0" Content="Untere Punkt" />
|
||||||
|
<Label Grid.Row="3" Grid.Column="0" Content="Objektbezeichnung" />
|
||||||
|
<Label Grid.Row="4" Grid.Column="0" Content="Durchmesser" />
|
||||||
|
<Label Grid.Row="5" Grid.Column="0" Content="Material" />
|
||||||
|
|
||||||
|
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Strassename}" />
|
||||||
|
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding OberePunkt}" />
|
||||||
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding UnterePunkt}" />
|
||||||
|
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Objektnummer}" />
|
||||||
|
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding DN}" />
|
||||||
|
<ComboBox Grid.Row="5" Grid.Column="1">
|
||||||
|
<ComboBoxItem Content="Lala" />
|
||||||
|
<ComboBoxItem Content="Haha" />
|
||||||
|
</ComboBox>
|
||||||
|
<!--<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding Material}" />-->
|
||||||
|
</Grid>
|
||||||
<!--<RadioButton Name="my" Content="Rohrleitung in Betrieb" Style="{StaticResource ToggelButtonList}" />-->
|
<!--<RadioButton Name="my" Content="Rohrleitung in Betrieb" Style="{StaticResource ToggelButtonList}" />-->
|
||||||
</Grid>
|
</Grid>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -16,11 +16,11 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="UIElement.IsMouseOver" Value="True">
|
<Trigger Property="UIElement.IsMouseOver" Value="True">
|
||||||
<Setter TargetName="rect" Property="Shape.Fill" Value="#FFFFA500" />
|
<Setter TargetName="rect" Property="Shape.Fill" Value="BlueViolet"/>
|
||||||
<Setter Property="Foreground" Value="#FFFFFFFF"/>
|
<Setter Property="Foreground" Value="#FFFFFFFF"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
||||||
<Setter TargetName="rect" Property="Shape.Fill" Value="#FFFFA500" />
|
<Setter TargetName="rect" Property="Shape.Fill" Value="BlueViolet" />
|
||||||
<Setter Property="Foreground" Value="#FFFFFFFF" />
|
<Setter Property="Foreground" Value="#FFFFFFFF" />
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<Setter Property="Content" Value="" />
|
<Setter Property="Content" Value="" />
|
||||||
<Setter Property="IsEnabled" Value="{Binding Change}" />
|
<Setter Property="IsEnabled" Value="{Binding Change}" />
|
||||||
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}" />
|
<Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}" />
|
||||||
<Setter Property="Foreground" Value="#FFFFFFFF" />
|
<Setter Property="Foreground" Value="Black" />
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="{x:Type CheckBox}">
|
<ControlTemplate TargetType="{x:Type CheckBox}">
|
||||||
@@ -49,13 +49,13 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
<Trigger Property="ToggleButton.IsChecked" Value="True">
|
||||||
<Setter TargetName="highlightCircle" Property="Shape.Fill" Value="#FFFFA500"/>
|
<Setter TargetName="highlightCircle" Property="Shape.Fill" Value="BlueViolet"/>
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="ToggleButton.IsChecked" Value="False">
|
<Trigger Property="ToggleButton.IsChecked" Value="False">
|
||||||
<Setter TargetName="highlightCircle" Property="Shape.Fill" Value="#FFFFFFFF" />
|
<Setter TargetName="highlightCircle" Property="Shape.Fill" Value="#FFFFFFFF" />
|
||||||
</Trigger>
|
</Trigger>
|
||||||
<Trigger Property="UIElement.IsFocused" Value="True">
|
<Trigger Property="UIElement.IsFocused" Value="True">
|
||||||
<Setter TargetName="outerEllipse" Property="Shape.Stroke" Value="#FFFFA500" />
|
<Setter TargetName="outerEllipse" Property="Shape.Stroke" Value="BlueViolet" />
|
||||||
</Trigger>
|
</Trigger>
|
||||||
</ControlTemplate.Triggers>
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
|||||||
Reference in New Issue
Block a user