-
Notifications
You must be signed in to change notification settings - Fork 0
/
SectionGeometryWnd.xaml
44 lines (42 loc) · 2.77 KB
/
SectionGeometryWnd.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Window x:Class="EtkilesimDiyagram.SectionGeometryWnd"
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:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:local="clr-namespace:EtkilesimDiyagram"
mc:Ignorable="d"
Title="Kesit" Height="140" Width="250" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" SizeToContent="WidthAndHeight">
<Window.DataContext>
<local:AppFileTemplate />
</Window.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height = "Auto" MinHeight="30" />
<RowDefinition Height = "Auto" MinHeight="30"/>
<RowDefinition Height = "Auto" MinHeight="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "Auto" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column = "0" Grid.Row = "0" Orientation = "Horizontal" Width="Auto" HorizontalAlignment="Stretch">
<Label Content = "Genişlik (b):" HorizontalAlignment="Right" VerticalAlignment = "Center" Width = "100" Margin="5,0,0,0"/>
<xctk:DoubleUpDown Name = "txtB" Value="{Binding b, Mode=TwoWay}" VerticalAlignment = "Center" Width = "70" FormatString="F0" Minimum="0" ShowButtonSpinner="False"/>
<Label Content = "cm" HorizontalAlignment="Right" VerticalAlignment = "Center" Margin="5,0,0,0"/>
</StackPanel>
<StackPanel Grid.Column = "0" Grid.Row = "1" Orientation = "Horizontal" Width="Auto" HorizontalAlignment="Stretch">
<Label Content = "Yükseklik (h):" HorizontalAlignment="Right" VerticalAlignment = "Center" Width = "100" Margin="5,0,0,0"/>
<xctk:DoubleUpDown Name = "txtH" Value="{Binding h, Mode=TwoWay}" VerticalAlignment = "Center" Width = "70" FormatString="F0" Minimum="0" ShowButtonSpinner="False"/>
<Label Content = "cm" HorizontalAlignment="Right" VerticalAlignment = "Center" Margin="5,0,0,0"/>
</StackPanel>
<StackPanel Grid.Column = "0" Grid.Row = "2" Orientation = "Horizontal" Width="Auto" HorizontalAlignment="Center">
<StackPanel.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="10,10,10,10"/>
</Style>
</StackPanel.Resources>
<Button x:Name="bTamam" IsDefault="True" Content="Tamam" MinWidth="70" Click="bTamam_Click"></Button>
<Button x:Name="bCikis" IsCancel="True" Content="İptal" MinWidth="70" Click="bCikis_Click"></Button>
</StackPanel>
</Grid>
</Window>