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 | |
{ |
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
<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
// 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
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
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
<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
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
<Grid x:Name="LayoutRoot" Width="37" Height="42" Visibility="Collapsed" Opacity="0"> | |
<VisualStateManager.VisualStateGroups> | |
<VisualStateGroup> | |
<VisualState x:Name="DefaultState"> | |
<Storyboard> | |
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="Visibility" | |
BeginTime="0:0:0.2"> | |
<DiscreteObjectKeyFrame KeyTime="0:0:0" Value="Collapsed"/> | |
</ObjectAnimationUsingKeyFrames> | |
<DoubleAnimation Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="Opacity" |
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
<phone:Panorama.TitleTemplate> | |
<DataTemplate> | |
<!-- You have to assign a width here as the Canvas has no impact on the layout, and therefore it won't stretch the Grid to match it's siblings width. | |
As the Grid has a calculated width of 0 in your code example, it will get repeated faster (which is visible to you). The problem with the TitleTemplate is, that you can't set HorizontalAlignment="Stretch" (for 100% width), as it won't work here :-S | |
If you increase the Width, the Logo will move faster, therefore you will get a faster parallax movement --> | |
<Grid Margin="0,34,0,0" Width="240" Height="134.218"> | |
<!-- I have also removed the Canvas Background, as it won't work anymore with the added width. Just set a Background for the Panorama itself, this will get around this issue (Panorama.Background) --> | |
<Canvas x:Name="DivvyLogoBranding"> | |
<Path Data="F1M0,0L0,73.195 25.669,0z" | |
Fill="#FF |
NewerOlder