<Window x:Class="ovp.CurveChart.dlgCurveProperties" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Curve Properties" ShowInTaskbar="False" SizeToContent="WidthAndHeight" ResizeMode="NoResize" MinWidth="150" MinHeight="100" WindowStartupLocation="CenterOwner" FocusManager.FocusedElement="{Binding ElementName=txtCurveName}" BorderBrush="Cornsilk" BorderThickness="10" Background="AliceBlue" > <Window.Resources> <Style TargetType="Label"> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Padding" Value="5" /> </Style> <Style TargetType="Button"> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="5, 10, 5, 5" /> </Style> <Style x:Key="dialogButton" TargetType="Button"> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="5, 10, 5, 5" /> <Setter Property="Width" Value="72" /> </Style> </Window.Resources> <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Label Target="{Binding ElementName=txtCurveName}">Curve Name</Label> <TextBox Grid.Column="1" Name="txtCurveName" Text="{Binding CurveName, UpdateSourceTrigger=PropertyChanged}"/> <Label Grid.Row="1" Target="{Binding ElementName=btnCurveColor}">Curve Color</Label> <Button Grid.Row="1" Grid.Column="1" Name="btnCurveColor" Click="btnCurveColor_Click" ToolTip="Click to select the Curve Color"> <Rectangle Width="50" Height="17"> <Rectangle.Fill> <SolidColorBrush x:Name="curveBrush" Color="{Binding CurveColor}"/> </Rectangle.Fill> </Rectangle> </Button> <StackPanel Grid.Row="2" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom"> <Button Name="btnOK" Click="btnOK_Click" Style="{StaticResource dialogButton}" IsDefault="True" IsEnabled="False">OK</Button> <Button Style="{StaticResource dialogButton}" IsCancel="True">Cancel</Button> </StackPanel> </Grid> </Window>
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)