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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Style TargetType="CheckBox"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type CheckBox}"> | |
<Border Padding="0,6,0,5"> | |
<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto"/> |
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 System.IO; | |
using System.Text; | |
using System.Windows; | |
public partial class App : Application | |
{ | |
[STAThread] | |
private static void Main(string[] args) | |
{ |
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.Runtime.InteropServices; | |
using System.Text; | |
public static class Shlwapi | |
{ | |
[DllImport("shlwapi.dll")] | |
public static extern bool PathCompactPathEx(StringBuilder pszOut, string pszSrc, uint cchMax, uint dwFlags); | |
public static string CompactPath(string path, int length) | |
{ |
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 System.Threading; | |
using System.Windows.Forms; | |
public class MessageLoop | |
{ | |
private Thread thread; | |
private SynchronizationContext context; | |
private ManualResetEvent initialized; |
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
<form> | |
<label> | |
First name | |
<input type="text" /> | |
</label> | |
<label> | |
Last name | |
<input type="text" /> | |
</label> | |
<button type="submit">Submit</button> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<BuildDir>$(SolutionDir)Build\</BuildDir> | |
<Rebuilding>false</Rebuilding> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(OutputType)' == 'Exe' Or '$(OutputType)' == 'WinExe'"> | |
<StartAction>Program</StartAction> | |
<StartWorkingDirectory>$(BuildDir)</StartWorkingDirectory> | |
<StartProgram>$(BuildDir)$(TargetFileName)</StartProgram> |
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; | |
public partial class Settings | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
} | |
public class Program | |
{ |
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
import argparse | |
import Image | |
import ImageChops | |
def parseArgs(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument("source", metavar = "SOURCE") | |
parser.add_argument("target", metavar = "TARGET") | |
return parser.parse_args() |
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 System.Windows; | |
internal static class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
SingleInstanceExecuter executer = new SingleInstanceExecuter(); | |
executer.Executing += (sender, e) => | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.Tasks.dll" /> | |
<Target Name="TransformAppConfig" AfterTargets="Build" Condition="Exists('App.config') AND Exists('App.$(Configuration).config')"> | |
<TransformXml Source="App.config" Transform="App.$(Configuration).config" Destination="$(OutDir)$(TargetFileName).config" /> | |
</Target> | |
</Project> |