History.xaml 3.46 KB
Newer Older
1
<linphone:BasePage
Sylvain Berfini's avatar
Sylvain Berfini committed
2 3 4 5 6 7 8 9
    x:Class="Linphone.Views.History"
    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"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
10
    xmlns:linphone="clr-namespace:Linphone"
11
    xmlns:controls="clr-namespace:Linphone.Controls"
Sylvain Berfini's avatar
Sylvain Berfini committed
12 13 14 15 16 17 18 19
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
20
    <Grid x:Name="LayoutRoot" Background="Transparent">
Sylvain Berfini's avatar
Sylvain Berfini committed
21
        <Grid.RowDefinitions>
22
            <RowDefinition Height="Auto"/>
Sylvain Berfini's avatar
Sylvain Berfini committed
23 24 25 26 27
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
28
        <StackPanel Grid.Row="1" Margin="12,5,0,0">
29
            <!--<TextBlock Foreground="Black" Text="{Binding Path=LocalizedResources.ApplicationTitle, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>-->
30
            <TextBlock Text="{Binding Path=LocalizedResources.HistoryMenu, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
Sylvain Berfini's avatar
Sylvain Berfini committed
31 32 33
        </StackPanel>

        <!--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 36 37
            <phone:Pivot x:Name="history" Grid.Row="1">
                <phone:Pivot.HeaderTemplate>
                    <DataTemplate>
38
                        <TextBlock Text="{Binding Title}"/>
Sylvain Berfini's avatar
Sylvain Berfini committed
39 40 41 42 43 44 45 46 47 48 49
                    </DataTemplate>
                </phone:Pivot.HeaderTemplate>
                <phone:Pivot.ItemTemplate>
                    <DataTemplate>
                        <toolkit:LongListMultiSelector x:Name="calls" ItemsSource="{Binding Calls}" SelectionChanged="calls_SelectionChanged_1">
                            <toolkit:LongListMultiSelector.ItemTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <Border Width="30" Height="30">
                                            <Image Source="{Binding StatusIcon}" Stretch="UniformToFill"/>
                                        </Border>
50
                                        <Button x:Name="callLog" Content="{Binding DisplayedName}" FontSize="20" FontStyle="Normal" BorderThickness="0" Tag="{Binding BindsDirectlyToSource=True}" Click="callLog_Click_1"></Button>
Sylvain Berfini's avatar
Sylvain Berfini committed
51 52 53 54 55 56 57 58 59 60
                                    </StackPanel>
                                </DataTemplate>
                            </toolkit:LongListMultiSelector.ItemTemplate>
                        </toolkit:LongListMultiSelector>
                    </DataTemplate>
                </phone:Pivot.ItemTemplate>
            </phone:Pivot>
        </Grid>
    </Grid>

61
</linphone:BasePage>