<?xml version="1.0" encoding="UTF-8"?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- x:Class="CallApp.Tizen.Call.Controls.ContactInformationPanel"
+ x:Class="CallApp.Tizen.Call.Controls.ContactInfoPanel"
x:Name="This"
xmlns:callControls="clr-namespace:CallApp.Tizen.Call.Controls"
xmlns:callThemes="clr-namespace:CallApp.Tizen.Call.Themes"
<ContentView.Resources>
<ResourceDictionary MergedWith="callThemes:CallTheme">
- <ControlTemplate x:Key="TopPanel">
- <commonControls:CustomGrid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="232" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="24" />
- <RowDefinition Height="54" />
- <RowDefinition Height="242" />
- </Grid.RowDefinitions>
-
- <Label Grid.Column="0" Grid.Row="1" Margin="32,0,0,0" HorizontalOptions="Start" VerticalOptions="Center"
- TextColor="{StaticResource CallDefaultTextColor}" FontSize="27" Text="{TemplateBinding StatusText}" />
-
- <Image Grid.Column="0" Grid.Row="2" Margin="32,0,32,0" WidthRequest="168" HeightRequest="168"
- HorizontalOptions="Center" VerticalOptions="Center" Source="{TemplateBinding Image}" />
-
- <commonControls:CustomGrid Grid.Column="1" Grid.Row="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition Height="76" />
- <RowDefinition Height="6" />
- <RowDefinition Height="46" />
- </Grid.RowDefinitions>
-
- <Label Grid.Row="1" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
- FontSize="38" Text="{TemplateBinding PrimaryText}" />
-
- <Label Grid.Row="3" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
- FontSize="23" Text="{TemplateBinding SecondaryText}" />
- </commonControls:CustomGrid>
-
- <callControls:FlatButton Grid.Column="2" Grid.Row="2" WidthRequest="80" HeightRequest="80"
- Margin="32,74,0,0" Image="call_btn_addcall.png" IsVisible="False" />
- </commonControls:CustomGrid>
- </ControlTemplate>
-
<ControlTemplate x:Key="ActivePanel">
<commonControls:CustomGrid HeightRequest="172">
<Grid.ColumnDefinitions>
</commonControls:CustomGrid>
</ControlTemplate>
- <ControlTemplate x:Key="SinglePanel">
+ <ControlTemplate x:Key="EmergencyPanel">
<commonControls:CustomGrid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<RowDefinition Height="54" />
<RowDefinition Height="33" />
<RowDefinition Height="348" />
- <RowDefinition Height="42" />
+ <RowDefinition Height="71" />
<RowDefinition Height="86" />
- <RowDefinition Height="8" />
- <RowDefinition Height="54" />
- <RowDefinition Height="63" />
+ <RowDefinition Height="96" />
</Grid.RowDefinitions>
<Label Grid.Column="1" Grid.Row="1" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
FontSize="27" Text="{TemplateBinding StatusText}" />
- <Image Grid.Column="1" Grid.Row="3" HorizontalOptions="Center" VerticalOptions="Center" Source="{TemplateBinding Image}" />
+ <Image Grid.Column="1" Grid.Row="3" HorizontalOptions="Center" VerticalOptions="Center" Source="Call ID/348x348/call_photo_id_emergency.png" />
<Label Grid.Column="1" Grid.Row="5" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
FontSize="47" Text="{TemplateBinding PrimaryText}" />
-
- <Label Grid.Column="1" Grid.Row="7" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
- FontSize="27" Text="{TemplateBinding SecondaryText}" />
</commonControls:CustomGrid>
</ControlTemplate>
- <ControlTemplate x:Key="EmergencyPanel">
+ <ControlTemplate x:Key="SinglePanel">
<commonControls:CustomGrid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="32" />
<RowDefinition Height="54" />
<RowDefinition Height="33" />
<RowDefinition Height="348" />
- <RowDefinition Height="71" />
+ <RowDefinition Height="42" />
<RowDefinition Height="86" />
- <RowDefinition Height="96" />
+ <RowDefinition Height="8" />
+ <RowDefinition Height="54" />
+ <RowDefinition Height="63" />
</Grid.RowDefinitions>
<Label Grid.Column="1" Grid.Row="1" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
FontSize="27" Text="{TemplateBinding StatusText}" />
- <Image Grid.Column="1" Grid.Row="3" HorizontalOptions="Center" VerticalOptions="Center" Source="Call ID/348x348/call_photo_id_emergency.png" />
+ <Image Grid.Column="1" Grid.Row="3" HorizontalOptions="Center" VerticalOptions="Center" Source="{TemplateBinding Image}" />
<Label Grid.Column="1" Grid.Row="5" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
FontSize="47" Text="{TemplateBinding PrimaryText}" />
+
+ <Label Grid.Column="1" Grid.Row="7" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
+ FontSize="27" Text="{TemplateBinding SecondaryText}" />
+ </commonControls:CustomGrid>
+ </ControlTemplate>
+
+ <ControlTemplate x:Key="TopPanel">
+ <commonControls:CustomGrid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="232" />
+ <ColumnDefinition Width="*" />
+ <ColumnDefinition Width="Auto" />
+ </Grid.ColumnDefinitions>
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="24" />
+ <RowDefinition Height="54" />
+ <RowDefinition Height="242" />
+ </Grid.RowDefinitions>
+
+ <Label Grid.Column="0" Grid.Row="1" Margin="32,0,0,0" HorizontalOptions="Start" VerticalOptions="Center"
+ TextColor="{StaticResource CallDefaultTextColor}" FontSize="27" Text="{TemplateBinding StatusText}" />
+
+ <Image Grid.Column="0" Grid.Row="2" Margin="32,0,32,0" WidthRequest="168" HeightRequest="168"
+ HorizontalOptions="Center" VerticalOptions="Center" Source="{TemplateBinding Image}" />
+
+ <commonControls:CustomGrid Grid.Column="1" Grid.Row="2">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="50" />
+ <RowDefinition Height="76" />
+ <RowDefinition Height="6" />
+ <RowDefinition Height="46" />
+ </Grid.RowDefinitions>
+
+ <Label Grid.Row="1" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
+ FontSize="38" Text="{TemplateBinding PrimaryText}" />
+
+ <Label Grid.Row="3" HorizontalOptions="Start" VerticalOptions="Center" TextColor="{StaticResource CallDefaultTextColor}"
+ FontSize="23" Text="{TemplateBinding SecondaryText}" />
+ </commonControls:CustomGrid>
+
+ <callControls:FlatButton Grid.Column="2" Grid.Row="2" WidthRequest="80" HeightRequest="80"
+ Margin="32,74,0,0" Image="call_btn_addcall.png" IsVisible="False" />
</commonControls:CustomGrid>
</ControlTemplate>
</ResourceDictionary>
</ContentView.Resources>
<ContentView.Triggers>
- <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Top">
- <Setter Property="ControlTemplate" Value="{StaticResource TopPanel}" />
- </DataTrigger>
-
<DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Active">
<Setter Property="ControlTemplate" Value="{StaticResource ActivePanel}" />
</DataTrigger>
<Setter Property="ControlTemplate" Value="{StaticResource ConferencePanel}" />
</DataTrigger>
+ <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Emergency">
+ <Setter Property="ControlTemplate" Value="{StaticResource EmergencyPanel}" />
+ </DataTrigger>
+
<DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Single">
<Setter Property="ControlTemplate" Value="{StaticResource SinglePanel}" />
</DataTrigger>
- <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Emergency">
- <Setter Property="ControlTemplate" Value="{StaticResource EmergencyPanel}" />
+ <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Top">
+ <Setter Property="ControlTemplate" Value="{StaticResource TopPanel}" />
</DataTrigger>
</ContentView.Triggers>
</ContentView>
\ No newline at end of file
namespace CallApp.Tizen.Call.Controls
{
- public partial class ContactInformationPanel : ContentView
+ /// <summary>
+ /// Partial class of ContactInfoPanel.xaml
+ /// </summary>
+ public partial class ContactInfoPanel : ContentView
{
/// <summary>
/// Layout types
Top
}
- public ContactInformationPanel()
+ public ContactInfoPanel()
{
InitializeComponent();
}
public static readonly BindableProperty LayoutTypeProperty = BindableProperty.Create(
"LayoutType",
typeof(LayoutTypes),
- typeof(ContactInformationPanel),
+ typeof(ContactInfoPanel),
LayoutTypes.Single);
public LayoutTypes LayoutType
{
return (LayoutTypes)GetValue(LayoutTypeProperty);
}
+
set
{
SetValue(LayoutTypeProperty, value);
public static readonly BindableProperty StatusTextProperty = BindableProperty.Create(
"StatusText",
typeof(string),
- typeof(ContactInformationPanel),
+ typeof(ContactInfoPanel),
string.Empty);
public string StatusText
{
return (string)GetValue(StatusTextProperty);
}
+
set
{
SetValue(StatusTextProperty, value);
public static readonly BindableProperty ImageProperty = BindableProperty.Create(
"Image",
typeof(ImageSource),
- typeof(ContactInformationPanel),
+ typeof(ContactInfoPanel),
null);
public ImageSource Image
{
return (ImageSource)GetValue(ImageProperty);
}
+
set
{
SetValue(ImageProperty, value);
public static readonly BindableProperty PrimaryTextProperty = BindableProperty.Create(
"PrimaryText",
typeof(string),
- typeof(ContactInformationPanel),
+ typeof(ContactInfoPanel),
string.Empty);
public string PrimaryText
{
return (string)GetValue(PrimaryTextProperty);
}
+
set
{
SetValue(PrimaryTextProperty, value);
public static readonly BindableProperty SecondaryTextProperty = BindableProperty.Create(
"SecondaryText",
typeof(string),
- typeof(ContactInformationPanel),
+ typeof(ContactInfoPanel),
string.Empty);
public string SecondaryText
{
return (string)GetValue(SecondaryTextProperty);
}
+
set
{
SetValue(SecondaryTextProperty, value);