This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Uri SaveTile(UserControl control, string filename, double width, double height) | |
{ | |
string path = tileFolder + filename + ".png"; | |
bool success = true; | |
Deployment.Current.Dispatcher.BeginInvoke(() => | |
{ | |
control.Width = width; | |
control.Height = height; | |
control.Measure(new Size(width, height)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Page | |
x:Class="BitmapToPNGTest.MainPage" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:BitmapToPNGTest" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using Poki.Utilities; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Xml.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IReadOnlyList<StorageFolder> artistFolders = await KnownFolders.MusicLibrary.GetFoldersAsync(); | |
IEnumerable<Task> tasks = artistFolders.Select(artistFolder => TraverseFolderForFolders(artistFolder)); | |
await Task.WhenAll(tasks); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// navigate to store (details of app) page | |
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:navigate?appid=" + CurrentApp.AppId)); | |
// navigate to review page | |
await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:reviewapp?appid=" + CurrentApp.AppId)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="Gauge" TargetType="controls:Gauge"> | |
<Setter Property="FontFamily" Value="Segoe WP" /> | |
<Setter Property="Background" Value="Transparent" /> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="controls:Gauge"> | |
<Viewbox> | |
<Grid x:Name="Container" Height="200" Width="200"> | |
<Path Name="PART_Scale" Stroke="{TemplateBinding ScaleBrush}" StrokeThickness="{TemplateBinding ScaleWidth}" /> | |
<Path Name="PART_Trail" Stroke="{TemplateBinding TrailBrush}" StrokeThickness="{TemplateBinding ScaleWidth}" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TileUpdater updater = TileUpdateManager.CreateTileUpdaterForApplication(); | |
string xml = @" | |
<tile> | |
<visual> | |
<binding template='TileMedium' branding='none'> | |
<image placement='peek' src='http://placehold.it/400x400' /> | |
<image hint-overlay='40' placement='background' src='http://placehold.it/300x300' /> | |
<text hint-wrap='true'>Test test test</text> | |
</binding> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Umbraco.Core; | |
using Umbraco.Forms.Core; | |
using Umbraco.Forms.Web.BusinessLogic; | |
using Umbraco.Forms.Web.Models.Backoffice; | |
namespace MyNamespace | |
{ | |
public class CustomExportType : ExportType | |
{ |
OlderNewer