This file contains hidden or 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
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<mimeMap fileExtension=".json" mimeType="application/json" /> | |
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> | |
<mimeMap fileExtension=".woff2" mimeType="font/woff2" /> | |
</staticContent> | |
</system.webServer> |
This file contains hidden or 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
<rewriteMaps> | |
<rewriteMap name="StaticRedirects"> | |
<add key="old_url" value="new_url" /> | |
</rewriteMap> | |
</rewriteMaps> |
This file contains hidden or 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 class GraphicsPathExtensions | |
{ | |
public static float ComputeArea(this GraphicsPath graphicsPath) | |
{ | |
var points = graphicsPath.PathPoints.ToList(); | |
//Add the first point as the last in order to close the figure and compute area properly. | |
points.Add(points[0]); | |
return Math.Abs(points.Take(points.Count - 1).Select((p, i) => p.X * points[i + 1].Y - p.Y * points[i + 1].X).Sum()) / 2; | |
} |
This file contains hidden or 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 class DeserializedBlogPost | |
{ | |
private const string Wp = "http://wordpress.org/export/1.2/"; | |
private const string ContentUrl = "http://purl.org/rss/1.0/modules/content/"; | |
private const string Dc = "http://purl.org/dc/elements/1.1/"; | |
public DeserializedBlogPost(XElement blogElement) | |
{ | |
this.Title = blogElement.Element("title").Value; |
This file contains hidden or 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
Insert the following code into your project file: | |
<Import Project="PreprocessXaml.targets" /> | |
--> | |
<PropertyGroup> | |
<MarkupCompilePass1DependsOn> |
This file contains hidden or 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 partial class App : Application | |
{ | |
private static readonly IUnityContainer Container = new UnityContainer(); | |
public static INavigationService NavigationService { get; private set; } | |
// Other code omitted for conciseness | |
internal static void InitializeNavigationService(NavigationService service) | |
{ | |
NavigationService = new SimpleNavigationService(service); |
This file contains hidden or 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 MyApp.Infrastructure; | |
namespace MyApp.Views | |
{ | |
public sealed partial class MainPage : PageBase | |
{ | |
public MainPage() | |
{ | |
this.InitializeComponent(); | |
} |
This file contains hidden or 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
<panels:RelativePositionPanel> | |
<Button panels:RelativePositionPanel.RelativeX="0.5" | |
panels:RelativePositionPanel.RelativeY="0.5" | |
Content="Test" /> | |
</panels:RelativePositionPanel> |