Dialer.xaml 10 KB
Newer Older
1
<linphone:BasePage
2
    x:Class="Linphone.Dialer"
Sylvain Berfini's avatar
Sylvain Berfini committed
3 4 5 6 7 8
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9
    xmlns:controls="clr-namespace:Linphone.Controls"
10
    xmlns:linphone="clr-namespace:Linphone"
Sylvain Berfini's avatar
Sylvain Berfini committed
11 12 13 14 15 16
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">
17
    
Sylvain Berfini's avatar
Sylvain Berfini committed
18
    <!--LayoutRoot is the root grid where all page content is placed-->
19
    <Grid x:Name="LayoutRoot" Background="Transparent">
Sylvain Berfini's avatar
Sylvain Berfini committed
20
        <Grid.RowDefinitions>
21
            <RowDefinition Height="Auto"/>
Sylvain Berfini's avatar
Sylvain Berfini committed
22 23 24
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
25
        
26 27
        <controls:StatusBar x:Name="status" Grid.Row="0"></controls:StatusBar>
        
Sylvain Berfini's avatar
Sylvain Berfini committed
28
        <!--TitlePanel contains the name of the application and page title-->
29
        <StackPanel x:Name="TitlePanel" Grid.Row="1" Margin="12,5,0,0">
30
            <TextBlock Text="{Binding Path=LocalizedResources.DialerMenu, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Tap="Title_Tap"/>
31
        </StackPanel>
32
        
Sylvain Berfini's avatar
Sylvain Berfini committed
33
        <!--ContentPanel - place additional content here-->
34
        <Grid x:Name="ContentPanel" Grid.Row="2" Margin="12,0,12,0">
Sylvain Berfini's avatar
Sylvain Berfini committed
35
            <Grid.RowDefinitions>
36
                <RowDefinition Height="Auto"/>
37
                <RowDefinition Height="Auto"/>
38
                <RowDefinition Height="Auto"/>
Sylvain Berfini's avatar
Sylvain Berfini committed
39
            </Grid.RowDefinitions>
40 41

            <controls:AddressBox
42
                x:Name="addressBox"
Sylvain Berfini's avatar
Sylvain Berfini committed
43
                Grid.Row="0"
44
                BorderThickness="0"
45
                FontSize="40"/>
46

47
            <Grid Grid.Row="1" x:Name="numpad">
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>

                <Button
                    Grid.Row="0"
                    Grid.Column="0"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="1"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
70
                        <TextBlock Text="1" FontSize="60"/>
71 72 73 74 75 76 77 78 79 80 81 82 83
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="0"
                    Grid.Column="1"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="2"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
84
                        <TextBlock Text="2" FontSize="60"/>
85 86 87 88 89 90 91 92 93 94 95 96 97
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="0"
                    Grid.Column="2"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="3"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
98
                        <TextBlock Text="3" FontSize="60"/>
99 100 101 102 103 104 105 106 107 108 109 110 111
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="1"
                    Grid.Column="0"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="4"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
112
                        <TextBlock Text="4" FontSize="60"/>
113 114 115 116 117 118 119 120 121 122 123 124 125
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="1"
                    Grid.Column="1"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="5"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
126
                        <TextBlock Text="5" FontSize="60"/>
127 128 129 130 131 132 133 134 135 136 137 138 139
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="1"
                    Grid.Column="2"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="6"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
140
                        <TextBlock Text="6" FontSize="60"/>
141 142 143 144 145 146 147 148 149 150 151 152 153
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="2"
                    Grid.Column="0"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="7"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
154
                        <TextBlock Text="7" FontSize="60"/>
155 156 157 158 159 160 161 162 163 164 165 166 167
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="2"
                    Grid.Column="1"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="8"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
168
                        <TextBlock Text="8" FontSize="60"/>
169 170 171 172 173 174 175 176 177 178 179 180 181
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="2"
                    Grid.Column="2"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="9"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
182
                        <TextBlock Text="9" FontSize="60"/>
183 184 185 186 187 188 189 190 191 192 193 194 195
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="3"
                    Grid.Column="0"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="*"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
196
                        <TextBlock Text="*" FontSize="60"/>
197 198 199 200 201 202 203 204 205 206 207 208 209 210
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="3"
                    Grid.Column="1"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1" 
                    Hold="zero_Hold_1"
                    ClickMode="Press"
                    Tag="0"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
211
                        <TextBlock Text="0" FontSize="60"/>
212 213 214 215 216 217 218 219 220 221 222 223 224
                    </StackPanel>
                </Button>

                <Button
                    Grid.Row="3"
                    Grid.Column="2"
                    BorderThickness="0"
                    Margin="-10"
                    Click="Numpad_Click_1"
                    ClickMode="Press"
                    Tag="#"
                    Background="{StaticResource PhoneChromeBrush}">
                    <StackPanel Orientation="Horizontal">
225
                        <TextBlock Text="#" FontSize="60"/>
226 227 228 229
                    </StackPanel>
                </Button>
                
            </Grid>
Sylvain Berfini's avatar
Sylvain Berfini committed
230

231
            <Grid Grid.Row="2" Margin="0,20,0,20">
232 233
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
234
                    <ColumnDefinition Width="*"/>
235
                </Grid.ColumnDefinitions>
236

237
                <Button 
238
                    Grid.Column="0"
239
                    x:Name="call"
240 241 242 243 244 245 246 247
                    Background="{StaticResource PhoneAccentBrush}"
                    Content="{Binding Path=LocalizedResources.Call, Source={StaticResource LocalizedStrings}}"
                    Click="call_Click_1"
                    ClickMode="Release">
                    <Button.Style>
                        <StaticResource ResourceKey="AccentColorButton"/>
                    </Button.Style>
                </Button>
248 249 250
            </Grid>
        </Grid>
        
Sylvain Berfini's avatar
Sylvain Berfini committed
251 252
    </Grid>

253
</linphone:BasePage>