mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-22 09:01:43 +03:00
00f97e41d6
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library.aspx http://create.msdn.com/en-us/education/catalog/article/pnhelp-wp7
60 lines
3.2 KiB
XML
60 lines
3.2 KiB
XML
<UserControl x:Class="WindowsPhone.Recipes.Push.Client.Controls.PushSettingsControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
|
|
xmlns:converters="clr-namespace:WindowsPhone.Recipes.Push.Client.Converters"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
FontFamily="{StaticResource PhoneFontFamilyNormal}"
|
|
FontSize="{StaticResource PhoneFontSizeNormal}"
|
|
Foreground="{StaticResource PhoneForegroundBrush}"
|
|
d:DesignHeight="640" d:DesignWidth="480">
|
|
|
|
<UserControl.Resources>
|
|
|
|
<converters:BoolBrushConverter x:Key="BoolBrushConverter" />
|
|
|
|
<Style x:Key="DescTextStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="Foreground" Value="Silver" />
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
<Setter Property="Margin" Value="16,-38,16,24" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
|
|
|
|
<StackPanel>
|
|
<StackPanel>
|
|
<tk:ToggleSwitch Header="Push Notifications"
|
|
IsChecked="{Binding IsPushEnabled, Mode=TwoWay}" />
|
|
<TextBlock Style="{StaticResource DescTextStyle}"
|
|
Text="Turn on/off push notifications." />
|
|
</StackPanel>
|
|
|
|
<Grid>
|
|
<StackPanel Margin="16,0,0,0">
|
|
<tk:ToggleSwitch Header="Tile Notifications"
|
|
IsChecked="{Binding IsTileEnabled, Mode=TwoWay}" />
|
|
<TextBlock Style="{StaticResource DescTextStyle}"
|
|
Text="Tile push notifications update the application's tile displayed in the Start Screen. The application must be pinned by the user first." />
|
|
|
|
<tk:ToggleSwitch Header="Toast Notifications"
|
|
IsChecked="{Binding IsToastEnabled, Mode=TwoWay}" />
|
|
<TextBlock Style="{StaticResource DescTextStyle}"
|
|
Text="Toast push notifications are system-wide notifications that do not disrupt the user workflow or require intervention to resolve and are displayed in the top of the screen for ten seconds." />
|
|
|
|
<tk:ToggleSwitch Header="Raw Notifications"
|
|
IsChecked="{Binding IsRawEnabled, Mode=TwoWay}" />
|
|
<TextBlock Style="{StaticResource DescTextStyle}"
|
|
Text="Raw push notifications are used to send application specific information. The application must be running first." />
|
|
</StackPanel>
|
|
|
|
<Border Background="{Binding IsPushEnabled, Converter={StaticResource BoolBrushConverter}}" />
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|