コードによるデータバインディングの方法を紹介します。 UI WPFアプリケーションを新規作成します。メインのフォーム(MainWindow.xaml)にTextBlockコントロールを配置します。 コード 以下のコードを記述します。 Bird.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WpfBinding3 { public class Bird { public string Name { get; set; } } } 解説 Birdクラスを定義します。Nameプロパティを一つ持つクラスです。 MainWindow.xaml.cs using System; using System.Collections.Generic; usi