-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAddSubscriptionWindow.xaml
More file actions
47 lines (41 loc) · 2.38 KB
/
AddSubscriptionWindow.xaml
File metadata and controls
47 lines (41 loc) · 2.38 KB
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
<Window x:Class="SampleWpf.AddSubscriptionWindow"
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:SampleWpf"
mc:Ignorable="d"
WindowStyle="ToolWindow"
Title="Add BLF Subscription" Height="Auto" Width="300"
SizeToContent="WidthAndHeight"
WindowStartupLocation="CenterOwner"
ShowInTaskbar="False"
ResizeMode="NoResize">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Text="Extension:" Grid.Row="0" Margin="5"/>
<TextBox x:Name="txDestExt" d:Text="123" Grid.Row="0" Grid.Column="1" Margin="5" FontSize="14" FontWeight="Bold"/>
<TextBlock Text="Label:" Grid.Row="1" Margin="5"/>
<TextBox x:Name="tbLabel" d:Text="label" Grid.Row="1" Grid.Column="1" Margin="5"/>
<TextBlock Text="Account:" Grid.Row="2" Margin="5"/>
<ComboBox x:Name="cbAccounts" Grid.Row="2" Grid.Column="1" Margin="5"
ItemsSource="{Binding Path=Collection}" DisplayMemberPath = "Uri"
SelectedItem="{Binding Path=SelectedAccount, Mode=OneWay}" />
<TextBlock x:Name="tbErrText" Text="Can't create subscription. Add account first" HorizontalAlignment="Center"
Grid.Row="3" Grid.ColumnSpan="2" Grid.Column="0" Margin="5" Foreground="Red"/>
<StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" >
<Button x:Name="btnOK" Content="OK" Width="100" Margin="15" HorizontalAlignment="Right" Click="btnOK_Click"/>
<Button x:Name="btnCancel" Content="Cancel" Width="100" Margin="15" HorizontalAlignment="Right" Click="btnCancel_Click"/>
</StackPanel>
</Grid>
</Window>