Skip to content

Instantly share code, notes, and snippets.

@KatsuYuzu
KatsuYuzu / BindToApplicationBarIconButtonBehavior.cs
Created December 17, 2013 17:29
Windows PhoneのApplication Barのバインディングサンプル。長くなるのでコマンドは省略。コマンドはprismのソースを参照するとよいです。
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interactivity;
@KatsuYuzu
KatsuYuzu / MyTriggerBehavior.cs
Last active January 1, 2016 11:09
Windows ストアアプリの独自のTriggerBehaviorサンプル。
using Microsoft.Xaml.Interactivity;
using System;
using Windows.ApplicationModel;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
namespace App1
{
[ContentProperty(Name = "Actions")]
@KatsuYuzu
KatsuYuzu / tslint.json
Last active January 19, 2016 07:04
好みの tslint.json(Web Essentials 2.5.4時点のすべての rules)
// added and custom from Web Essentials 2.5.4 default
{
"rules": {
"ban": [
true,
[ "_", "extend" ],
[ "_", "isNull" ],
[ "_", "isDefined" ]
],
"class-name": true,
@KatsuYuzu
KatsuYuzu / webapi-client.ts
Last active April 23, 2016 07:37
ASP.NET WebAPI 体験記 #clrh99 で話した割り切り WebAPI に対応したクライアント自動生成 T4
/* tslint:disable */
namespace App.WebApi {
"use strict";
//#region infrastructure
angular.module("webApiClient", [])
.provider("webApiClientHandler", [function () {