Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

タグ

2012年3月30日のブックマーク (3件)

  • いつも書いてるViewModelBaseとDelegateCommandクラス - かずきのBlog@hatena

    WPFでHello world書いたり、ちょっと実験したりというときに毎回書いてるのも馬鹿らしいので、ここにメモ。 Visual Studioのテンプレートに登録してしまうのが楽そうだ。 ViewModelBase public abstract class ViewModelBase : INotifyPropertyChanged { protected ViewModelBase() { } public event PropertyChangedEventHandler PropertyChanged; /// <summary> /// Raise PropertyChanged Event. /// </summary> /// <param name="names"></param> protected virtual void OnPropertyChanged(param

    いつも書いてるViewModelBaseとDelegateCommandクラス - かずきのBlog@hatena
    Nilfs
    Nilfs 2012/03/30
    ViewModelBaseは使いやすそう。
  • TreeViewをバインディングする - 作ってみたWPF

    データバインディングでツリーを設定するにはHierarchicalDataTemplateを使いノードの構造を設定する。設定するパラメータは、「そのノードが表示するデータ・ビジュアル」と「そのノードが持つ子ノードのリスト」の2つである。 ノード用クラスには「ラベル」と「子ノードリスト」の最低限2つのプロパティが必要だ。ノードの表示情報を増やしたい場合はさらにプロパティを追加する。ノードの種類を増やす場合は派生クラスを作る。この例では「赤いノード」と「末端ノード」の2つを追加している。 ツリーの構造・ノードの内容を動的に変更したい場合は、INotifyPropertyChangedで変更通知を実装し、リストをObservableCollectionにする。方法は普通のデータバインディングと変わらない。 class DataBinding { public List<TreeNode> Tre

    Nilfs
    Nilfs 2012/03/30
    TreeViewをバインディングするときのサンプル
  • jenkins エレガントなコードを書くための執事のすすめ

    The document discusses various plugins that can be used with Jenkins/Hudson for continuous integration. It mentions plugins for plotting test results over time, detecting duplicated code, performing static analysis with PMD and Checkstyle, and more. Links are provided to the plugins on the Jenkins wiki along with descriptions of how they work and what problems they aim to solve.Read less

    jenkins エレガントなコードを書くための執事のすすめ
    Nilfs
    Nilfs 2012/03/30
    PMDプラグインとか入れたい