Fixed encodings
This commit is contained in:
Родитель
3c17c316a0
Коммит
7da44428ac
|
@ -1,4 +1,4 @@
|
|||
private async void PinTile()
|
||||
private async void PinTile()
|
||||
{
|
||||
SecondaryTile tile = new SecondaryTile(DateTime.Now.Ticks.ToString())
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
HorizontalAlignment="Stretch"
|
||||
Margin="20,20,20,0"/>
|
||||
|
||||
<RichTextBlock Margin="20,10,20,0">
|
||||
<RichTextBlock Margin="20,10,20,0" Foreground="{StaticResource Brush-Grey-03}">
|
||||
<Paragraph>Click the button to pin a secondary tile and send a notification to the tile, displaying rich visual content. The previews below show you what the tile will look like when you pin it.</Paragraph>
|
||||
<Paragraph/>
|
||||
<Paragraph FontSize="12">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
private void PopToast()
|
||||
private void PopToast()
|
||||
{
|
||||
// Generate the toast notification content and pop the toast
|
||||
ToastContent content = GenerateToastContent();
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
Click="ButtonPopToast_Click"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
|
||||
<RichTextBlock Margin="0,10,0,0">
|
||||
<RichTextBlock Margin="0,10,0,0" Foreground="{StaticResource Brush-Grey-03}">
|
||||
<Paragraph>The button will pop a Toast notification reminder about your calendar appointment. A preview is seen below.</Paragraph>
|
||||
<Paragraph/>
|
||||
<Paragraph FontSize="12">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
private void PopToast()
|
||||
private void PopToast()
|
||||
{
|
||||
// Generate the toast notification content and pop the toast
|
||||
ToastContent content = GenerateToastContent();
|
||||
|
@ -64,12 +64,12 @@ public static ToastContent GenerateToastContent()
|
|||
// We'll just add two simple lines of text
|
||||
binding.Children.Add(new AdaptiveText()
|
||||
{
|
||||
Text = "Monday ⛅ 63° / 42°"
|
||||
Text = "Monday ? 63° / 42°"
|
||||
});
|
||||
|
||||
binding.Children.Add(new AdaptiveText()
|
||||
{
|
||||
Text = "Tuesday ☁ 57° / 38°"
|
||||
Text = "Tuesday ? 57° / 38°"
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ private static TileBinding GenerateTileBindingSmall()
|
|||
|
||||
new AdaptiveText()
|
||||
{
|
||||
Text = "63°",
|
||||
Text = "63°",
|
||||
HintStyle = AdaptiveTextStyle.Base,
|
||||
HintAlign = AdaptiveTextAlign.Center
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ private static TileBinding GenerateTileBindingLarge()
|
|||
|
||||
new AdaptiveText()
|
||||
{
|
||||
Text = "63° / 42°"
|
||||
Text = "63° / 42°"
|
||||
},
|
||||
|
||||
new AdaptiveText()
|
||||
|
@ -302,14 +302,14 @@ private static AdaptiveSubgroup GenerateSubgroup(string day, string img, int tem
|
|||
// High temp
|
||||
new AdaptiveText()
|
||||
{
|
||||
Text = tempHi + "°",
|
||||
Text = tempHi + "°",
|
||||
HintAlign = AdaptiveTextAlign.Center
|
||||
},
|
||||
|
||||
// Low temp
|
||||
new AdaptiveText()
|
||||
{
|
||||
Text = tempLo + "°",
|
||||
Text = tempLo + "°",
|
||||
HintAlign = AdaptiveTextAlign.Center,
|
||||
HintStyle = AdaptiveTextStyle.CaptionSubtle
|
||||
}
|
||||
|
@ -332,6 +332,6 @@ private static AdaptiveText GenerateLegacyToastText(string day, string weatherEm
|
|||
{
|
||||
return new AdaptiveText()
|
||||
{
|
||||
Text = $"{day} {weatherEmoji} {tempHi}° / {tempLo}°"
|
||||
Text = $"{day} {weatherEmoji} {tempHi}° / {tempLo}°"
|
||||
};
|
||||
}
|
|
@ -23,7 +23,7 @@
|
|||
HorizontalAlignment="Stretch"
|
||||
Margin="0,10,0,0"/>
|
||||
|
||||
<RichTextBlock Margin="0,10,0,0">
|
||||
<RichTextBlock Margin="0,10,0,0" Foreground="{StaticResource Brush-Grey-03}">
|
||||
<Paragraph>The first button will pop a Toast notification displaying the weather forecast.</Paragraph>
|
||||
<Paragraph/>
|
||||
<Paragraph>The second button will pin a secondary Tile and send a notification to the Tile, displaying the weather forecast.</Paragraph>
|
||||
|
|
Загрузка…
Ссылка в новой задаче