Debian Codegraph @

Xpjproject/pjsip-apps/src/pjsua/winrt/gui/uwp/Voip/MainPage.xaml

raw
1 <Page
2 x:Class="VoipUI.MainPage"
3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5 xmlns:local="using:VoipUI"
6 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8 mc:Ignorable="d">
9
10 <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
11 Margin="5">
12 <Grid.RowDefinitions>
13 <RowDefinition Height="Auto"/>
14 <RowDefinition Height="Auto"/>
15 <RowDefinition Height="*"/>
16 </Grid.RowDefinitions>
17
18 <StackPanel Grid.Row="0">
19 <TextBlock FontSize="12" Text="Pjsua Sample App" Margin="5"/>
20 <TextBox x:Name="txt_CallerName" Text="Test Account" Margin="5"/>
21 <TextBox x:Name="txt_CallerNumber" Text="sip:192.168.0.103:6000" Margin="5"/>
22 </StackPanel>
23
24 <StackPanel Grid.Row="1">
25 <Grid HorizontalAlignment="Center">
26 <Grid.ColumnDefinitions>
27 <ColumnDefinition Width="165"/>
28 <ColumnDefinition Width="165"/>
29 </Grid.ColumnDefinitions>
30 <Grid.RowDefinitions>
31 <RowDefinition Height="Auto"/>
32 <RowDefinition Height="Auto"/>
33 <RowDefinition Height="Auto"/>
34 <RowDefinition Height="Auto"/>
35 <RowDefinition Height="Auto"/>
36 <RowDefinition Height="Auto"/>
37 <RowDefinition Height="Auto"/>
38 <RowDefinition Height="Auto"/>
39 <RowDefinition Height="Auto"/>
40 </Grid.RowDefinitions>
41
42 <Button x:Name="btn_NewOutgoingCall"
43 Grid.Column="0" Grid.Row="0"
44 Content="Make Call"
45 HorizontalAlignment="Left" VerticalAlignment="Top"
46 Width="150" Height="40"
47 Margin="5"
48 Click="btn_NewOutgoingCall_Click"/>
49 <Button x:Name="btn_EndCall" Grid.Column="1" Grid.Row="0" Content="End Call"
50 HorizontalAlignment="Left" VerticalAlignment="Top"
51 Width="150" Height="40"
52 Margin="5" Click="btn_EndCall_Click"/>
53
54 <TextBlock x:Name="label1" Grid.Column="0" Grid.Row="1"
55 HorizontalAlignment="Left" VerticalAlignment="Center"
56 Width="150" Height="40"
57 Text="User Id"
58 Margin="10,5,5,5"/>
59
60 <TextBox x:Name="txt_UserId" Grid.Column="1" Grid.Row="1"
61 HorizontalAlignment="Right" VerticalAlignment="Center"
62 Width="150" Height="40"
63 Margin="5" IsEnabled="True"/>
64
65 <TextBlock x:Name="label2" Grid.Column="0" Grid.Row="2"
66 HorizontalAlignment="Left" VerticalAlignment="Center"
67 Width="150" Height="40"
68 Text="Registrar"
69 Margin="10,5,5,5"/>
70
71 <TextBox x:Name="txt_Registrar" Grid.Column="1" Grid.Row="2"
72 HorizontalAlignment="Right" VerticalAlignment="Center"
73 Width="150" Height="40"
74 Margin="5" IsEnabled="True"/>
75
76 <TextBlock x:Name="label3" Grid.Column="0" Grid.Row="3"
77 HorizontalAlignment="Left" VerticalAlignment="Center"
78 Width="150" Height="40"
79 Text="Proxy"
80 Margin="10,5,5,5"/>
81
82 <TextBox x:Name="txt_Proxy" Grid.Column="1" Grid.Row="3"
83 HorizontalAlignment="Right" VerticalAlignment="Center"
84 Width="150" Height="40"
85 Margin="5" IsEnabled="True"/>
86
87 <TextBlock x:Name="label4" Grid.Column="0" Grid.Row="4"
88 HorizontalAlignment="Left" VerticalAlignment="Center"
89 Width="150" Height="40"
90 Text="User Name"
91 Margin="10,5,5,5"/>
92
93 <TextBox x:Name="txt_RegUserName" Grid.Column="1" Grid.Row="4"
94 HorizontalAlignment="Right" VerticalAlignment="Center"
95 Width="150" Height="40"
96 Margin="5" IsEnabled="True"/>
97
98 <TextBlock x:Name="label5" Grid.Column="0" Grid.Row="5"
99 HorizontalAlignment="Left" VerticalAlignment="Center"
100 Width="150" Height="40"
101 Text="Password"
102 Margin="10,5,5,5"/>
103
104 <TextBox x:Name="txt_Password" Grid.Column="1" Grid.Row="5"
105 HorizontalAlignment="Right" VerticalAlignment="Center"
106 Width="150" Height="40"
107 Margin="5" IsEnabled="True"/>
108 <Button x:Name="btn_GetAccountInfo" Grid.Column="0" Grid.Row="6" Content="Get Account Info"
109 HorizontalAlignment="Left" VerticalAlignment="Top"
110 Width="150" Height="40"
111 Margin="5" Click="btn_GetAccountInfo_Click"/>
112
113 <Button x:Name="btn_ModifyAccount" Grid.Column="1" Grid.Row="6" Content="Modify Account"
114 HorizontalAlignment="Left" VerticalAlignment="Top"
115 Width="150" Height="40"
116 Margin="5" Click="btn_ModifyAccount_Click"/>
117
118 <TextBlock x:Name="txt_RegState" Grid.Column="0" Grid.Row="7"
119 Text="Reg: Not Registered"
120 Margin="15,20,5,15"
121 VerticalAlignment="Bottom"
122 HorizontalAlignment="Center"
123 TextWrapping="WrapWholeWords"/>
124
125 <TextBlock x:Name="txt_CallStatus" Grid.Column="1" Grid.Row="7"
126 Text="Disconnected"
127 Margin="15,20,5,15"
128 VerticalAlignment="Bottom"
129 HorizontalAlignment="Center"
130 TextWrapping="WrapWholeWords"/>
131
132 </Grid>
133 </StackPanel>
134
135 </Grid>
136 </Page>