This repository has been archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
ConnectionDialog.xaml
45 lines (37 loc) · 2.11 KB
/
ConnectionDialog.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
<Window x:Class="FluentCassandra.LinqPad.ConnectionDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Cassandra Connection"
Background="{x:Static SystemColors.ControlBrush}"
SizeToContent="Height"
Width="336"
WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="281*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Text="Keyspace *" Margin="6" VerticalAlignment="Center" />
<TextBox Grid.Row="0" Grid.Column="1" Name="KeyspaceValue" Margin="6" Text="{Binding Keyspace, Mode=TwoWay}" />
<TextBlock Grid.Row="1" Text="Host *" Margin="6" VerticalAlignment="Center" />
<TextBox Grid.Row="1" Grid.Column="1" Name="HostValue" Margin="6" Text="{Binding Host, Mode=TwoWay}" />
<TextBlock Grid.Row="2" Text="Port" Margin="6" VerticalAlignment="Center" />
<TextBox Grid.Row="2" Grid.Column="1" Name="PortValue" Margin="6" Text="{Binding Port, Mode=TwoWay}" />
<TextBlock Grid.Row="3" Text="Timeout" Margin="6" VerticalAlignment="Center" />
<TextBox Grid.Row="3" Grid.Column="1" Name="TimeoutValue" Margin="6" Text="{Binding Timeout, Mode=TwoWay}" />
<TextBlock Grid.Row="4" Text="Username" Margin="6" VerticalAlignment="Center" />
<TextBox Grid.Row="4" Grid.Column="1" Name="UsernameValue" Margin="6" Text="{Binding Username, Mode=TwoWay}" />
<TextBlock Grid.Row="5" Text="Password" Margin="6" VerticalAlignment="Center" />
<PasswordBox Grid.Row="5" Grid.Column="1" Name="PasswordValue" Margin="6" PasswordChanged="PasswordValue_PasswordChanged" />
<Button Grid.Row="9" Grid.Column="1" Content="OK" Name="OkButton" HorizontalAlignment="Right" Margin="6" Width="60" Click="OkButton_Click" Command="{Binding SaveCommand}" />
</Grid>
</Window>