forked from fr830/PrimSCADA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DialogWindowCreateFolder.xaml
24 lines (23 loc) · 1.64 KB
/
DialogWindowCreateFolder.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
<Window x:Class="SCADA.DialogWindowCreateFolder"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="300" Width="300" ResizeMode="NoResize" ShowInTaskbar="False" Title="Создание папки" WindowStartupLocation="CenterScreen" FontSize="16">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="94"/>
<ColumnDefinition Width="94"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="53*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="52*"/>
<RowDefinition Height="16*"/>
</Grid.RowDefinitions>
<Popup Name="Message" PlacementTarget="{Binding ElementName=tbNameFolder}" Placement="Bottom" AllowsTransparency="True" PopupAnimation="Slide" MaxWidth="{Binding ElementName=tbNameFolder, Path=ActualWidth}" StaysOpen="false">
</Popup>
<Label Content="Имя папки:" Margin="0" Grid.Row="1" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
<TextBox Name="tbNameFolder" Grid.Column="1" Margin="0,0,5,0" Grid.Row="1" TextWrapping="Wrap" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontSize="14" IsUndoEnabled="True" Padding="0" Grid.ColumnSpan="2"/>
<Button Content="Создать" Grid.Column="1" Margin="5,0" Grid.Row="3" IsDefault="True" Click="CreateFolder"/>
<Button Content="Отмена" Grid.Column="2" Margin="5,0" Grid.Row="3" Padding="1" IsCancel="True"/>
</Grid>
</Window>