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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>練習用HTMLテンプレート</title> | |
<!-- jQuery Mobile --> |
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
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
<meta name="viewport" content="initial-scale=1.0"> |
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 TargetType="{x:Type TextBlock}"> | |
<Setter Property="Foreground" Value="White"/> | |
</Style> |
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.Windows; | |
using System.Windows.Controls; | |
namespace CommonControlParts | |
{ | |
/// <summary> | |
/// 4つの角のCornerRadiusをXAMLから個別に指定できるようにしたBorder | |
/// </summary> | |
public class PartialCornerBorder : Border | |
{ |
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
<ControlTemplate TargetType="{x:Type Button}"> | |
<Grid> | |
<Grid x:Name="HiddenGrid" Visibility="Hidden"> | |
<Grid.RowDefinitions> | |
<RowDefinition/> | |
<RowDefinition/> | |
<RowDefinition/> | |
<RowDefinition/> | |
</Grid.RowDefinitions> | |
<!-- ボタンの高さの1/4の値を取得するためだけに使うGrid --> |
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.Globalization; | |
using System.Windows.Data; | |
namespace WpfApp1.Converters | |
{ | |
/// <summary> | |
/// bool型を"はい"または"いいえ"に変換するコンバータ | |
/// </summary> | |
public class BooleanToYesNoConverter : IValueConverter |
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
class Animal { | |
constructor(public name: string) { } | |
move(distanceInMeters: number = 0) { | |
console.log(`${this.name} moved ${distanceInMeters}m.`); | |
} | |
} | |
class Snake extends Animal { | |
constructor(name: string) { super(name); } | |
move(distanceInMeters = 5) { |
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
class MyClass { | |
constructor() { } | |
MyFunction(x: number) { | |
console.log(`the input number is ${x}.`); | |
} | |
} | |
let myInstance: MyClass = new MyClass(); | |
myInstance.MyFunction(3); |
OlderNewer