<ContentView.Resources>
<ResourceDictionary MergedWith="callThemes:CallTheme">
- <ControlTemplate x:Key="HalfPanel">
+ <ControlTemplate x:Key="TopPanel">
<commonControls:CustomGrid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="232" />
</commonControls:CustomGrid>
</ControlTemplate>
- <ControlTemplate x:Key="MiniPanel">
+ <ControlTemplate x:Key="ActivePanel">
<commonControls:CustomGrid HeightRequest="172">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="160" />
</commonControls:CustomGrid>
</ControlTemplate>
- <ControlTemplate x:Key="MultiplePanel">
+ <ControlTemplate x:Key="ConferencePanel">
<commonControls:CustomGrid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="104" />
FontSize="27" Text="{TemplateBinding SecondaryText}" />
</commonControls:CustomGrid>
</ControlTemplate>
+
+ <ControlTemplate x:Key="EmergencyPanel">
+ <commonControls:CustomGrid>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="32" />
+ <ColumnDefinition Width="*" />
+ <ColumnDefinition Width="32" />
+ </Grid.ColumnDefinitions>
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="24" />
+ <RowDefinition Height="54" />
+ <RowDefinition Height="33" />
+ <RowDefinition Height="348" />
+ <RowDefinition Height="71" />
+ <RowDefinition Height="86" />
+ <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="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}" />
+ </commonControls:CustomGrid>
+ </ControlTemplate>
</ResourceDictionary>
</ContentView.Resources>
<ContentView.Triggers>
- <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Half">
- <Setter Property="ControlTemplate" Value="{StaticResource HalfPanel}" />
+ <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="Mini">
- <Setter Property="ControlTemplate" Value="{StaticResource MiniPanel}" />
+ <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Active">
+ <Setter Property="ControlTemplate" Value="{StaticResource ActivePanel}" />
</DataTrigger>
- <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Multiple">
- <Setter Property="ControlTemplate" Value="{StaticResource MultiplePanel}" />
+ <DataTrigger TargetType="ContentView" Binding="{Binding Source={x:Reference This}, Path=LayoutType}" Value="Conference">
+ <Setter Property="ControlTemplate" Value="{StaticResource ConferencePanel}" />
</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>
</ContentView.Triggers>
</ContentView>
\ No newline at end of file