-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoadsWnd.xaml
48 lines (47 loc) · 2.62 KB
/
LoadsWnd.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
45
46
47
48
<Window x:Class="EtkilesimDiyagram.LoadsWnd"
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:EtkilesimDiyagram"
mc:Ignorable="d"
Title="Yükler" Height="420" Width="200" SizeToContent="WidthAndHeight" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">
<Window.DataContext>
<local:AppFileTemplate />
</Window.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height = "Auto" />
<RowDefinition Height = "Auto" />
<RowDefinition Height = "Auto" MinHeight="30"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "Auto" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column = "0" Grid.Row = "0" Orientation = "Horizontal" HorizontalAlignment="Right">
<StackPanel.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="10,10,10,10"/>
</Style>
</StackPanel.Resources>
<Button x:Name="bPasteLoadsFromClipboard" Content="Panodan Yapıştır" Click="bPasteLoadsFromClipboard_Click"/>
</StackPanel>
<StackPanel Grid.Row="1" Margin="0,0,-11,0" >
<DataGrid x:Name="reBarsGrid" AutoGenerateColumns="False" ItemsSource="{Binding Loads, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="300" Margin="10,0,23,0" CanUserReorderColumns="False" CanUserResizeColumns="False" MinColumnWidth="50">
<DataGrid.Columns>
<DataGridTextColumn Header="M (tm)" Binding="{Binding M}"/>
<DataGridTextColumn Header="N (t)" Binding="{Binding N}"/>
</DataGrid.Columns>
</DataGrid>
</StackPanel>
<StackPanel Grid.Column = "0" Grid.Row = "2" Orientation = "Horizontal" Width="192" HorizontalAlignment="Right" Margin="0,0,-9,0">
<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>