かずきのBlog

C#やJavaやRubyとメモ書き

目次

Blog 利用状況

ニュース

わんくまBlogが不安定になったため、前に書いてたはてなダイアリーにメインを移動します。
かずきのBlog@Hatena
技術的なネタは、こちらにも、はてなへのリンクという形で掲載しますが、雑多ネタははてなダイアリーだけに掲載することが多いと思います。
コメント
プログラマ的自己紹介
お気に入りのツール/IDE
プロフィール
経歴
広告
アクセサリ

書庫

日記カテゴリ

[C#][WPF]IEditableCollectionViewの動きを見てみよう

1つ前のIEditableCollectionViewのエントリで、非常に愚直に実装した。
特に1つ1つのメソッドが何なのか調べずに直感を信じてなんとか動くようになったけど、それじゃいけないのでちょっと真面目に見ていこうと思う。

IEditableCollectionViewは、MSDNにある説明文をかりると、こういうことが書いてある。

CollectionView が実装するメソッドとプロパティを定義して、コレクションに編集機能を提供します。

CollectionViewと、どういった関係があるのかよくわからないが、コレクションの編集機能を提供してくれるようだ。
編集機能というものは、何かというものを見てみると、大体下のようなものにわけられると思う。

  1. コレクションに要素を新規追加
  2. コレクション内の要素を編集
  3. コレクション内の要素を削除

IEditableCollectionViewが持つメソッドとプロパティが3つのうちのどれに該当するのかをわけてみた。

  1. コレクションに要素を新規追加
    AddNewメソッド
    CancelNewメソッド
    CommitNewメソッド
    CanAddNewプロパティ
    CurrentAddItemプロパティ
    IsAddingNewプロパティ
    NewItemPlaceholderPositionプロパティ(何処に新規に追加されたアイテムを追加するかを指定する)
  2. コレクション内の要素を編集
    EditItemメソッド
    CancelEditメソッド
    CommitEditメソッド
    CanCancelEditプロパティ
    CurrentEditItemプロパティ
    IsEditingItemプロパティ
  3. コレクション内の要素を削除
    Removeメソッド
    RemoveAtメソッド
    CanRemoveプロパティ

大体名前から何をやるメソッド・プロパティかわかると思う。
編集可能なのか?編集中なのか?編集を確定するのか?編集を開始するのか?のような基本的な操作がそろっている。

次は、このメソッドの動きを順番に見ていこうと思う。
ということで多分続く。

投稿日時 : 2008年12月24日 22:34

Feedback

# [WPF][C#]IEditableCollectionView その2 2008/12/28 14:23 かずきのBlog

[WPF][C#]IEditableCollectionView その2

# トリーバーチ バッグ 2012/12/14 20:41 http://www.torybruchjp.info

I am impressed by products you can information using this website. There are a large amount of good sources here.

# burberry sale 2012/12/15 22:53 http://www.burberryuksale.org/category/burberry-sa

Think it to be a journal as well as a magazine involving general interest for everyone to look at. Funny, witty, controversial, entertaining, useful, acerbic, thoughtful, serious, curious, unexpected comebacks tend to be welcome.

# エルメス2012 2012/12/16 17:53 http://www.hermespairs.info

Looking forth to examining more!

# sacs longchamp 2012/12/17 2:46 http://www.longchampfr.info/category/sac-longchamp

Great short article, it's advantageous information.

# michael kors pas cher 2012/12/18 2:05 http://sacmichaelkorssoldes.monwebeden.fr

I apply earbuds out of the house because in their portability, even though I prefer over any ear.

# sac longchamps 2012/12/18 20:28 http://www.longchampfr.info/category/longchamp-pas

Looking forwards to analyzing more!

# Burberry sortie 2012/12/19 13:27 http://sacburberrysoldesfr.webnode.fr/blog

Go thru these earlier items and look on your that tickle a person's fancy.

# longchamp pliage 2012/12/21 2:44 http://sacslongchamppliage.monwebeden.fr

It's ACCEPTABLE. You can definitely a dailymotion star =)

# sacs pliage longchamp 2012/12/22 17:23 http://sacspliagelongchamps.webnode.fr

If many sound fine I'd entirely wear these in your home.

# c55.fr 2013/03/05 0:34 http://www.c55.fr/

Somewhere there is certainly married life without the need for have a passion for, it will have have a passion for without the need for married life. c55.fr http://www.c55.fr/

# Jordan 4 2013/03/05 0:35 http://www.nikerow.com/

Adore will be main rational and therefore n acceptable answer to the problem associated with person's reputation. Jordan 4 http://www.nikerow.com/

# www.c55.fr 2013/03/05 0:38 http://www.c55.fr/

Legitimate a friendly relationship foresees the needs of other rather than proclaim it is always acquire. www.c55.fr http://www.c55.fr/

# Air Jordan 4 2013/03/05 0:38 http://www.jordanretro4air.com/

Authentic accord foresees the requirements of other useful as compared with laud it truly is very. Air Jordan 4 http://www.jordanretro4air.com/

# K77.fr 2013/03/05 0:39 http://www.k77.fr/

You should never communicate your trusty glee to a single a reduced amount of lucki rather than you and your family. K77.fr http://www.k77.fr/

# code promo la redoute 2013/03/06 20:52 http://www.k88.fr/

Anyone that you will select through items can be bought from you'll. code promo la redoute http://www.k88.fr/

# jordan 11 2013/03/06 20:53 http://www.nikerow.com/

Fancy is most likely the energetic issue for the lifetime together with the growth of that which my partner and i romance. jordan 11 http://www.nikerow.com/

# Air Jordan Retro 3 2013/03/06 20:55 http://www.jordanretro3air.com/

Appreciate, affinity, respectfulness, please do not combine everyone over a typical hate for the purpose of anything. Air Jordan Retro 3 http://www.jordanretro3air.com/

# Jordan Release Dates 2013/03/06 20:57 http://www.nike44.com/

Each bro probably are not friends, although friends are normally an actual bro. Jordan Release Dates http://www.nike44.com/

# casquette wati b 2013/03/16 9:52 http://www.a44.fr/

Although person doesn憑t|capital t|big t|to|testosterone levels|testosterone|w not|longer|l|r|g|s|h|d|p|T|metric ton|MT|tonne} accept you fascination with this occupation desire them with,doesn憑t|capital t|big t|to|testosterone levels|testosterone|w not|longer|l|r|g|s|h|d|p|T|metric ton|MT|tonne} imply that many have on憑t|capital t|big t|to|testosterone levels|testosterone|w not|longer|l|r|g|s|h|d|p|T|metric ton|MT|tonne} accept you enhance they have personally. casquette wati b http://www.a44.fr/

# destockmania 2013/03/18 8:14 http://www.ruenike.com/foot-c-10.html/

To everyone you may well be an individual, yet somehow to 1 character you may well be society. destockmania http://www.ruenike.com/foot-c-10.html/

# casquette filet 2013/03/22 21:01 http://f22.fr/

An associate basically pick up that includes exhibits should be purchased from somebody. casquette filet http://f22.fr/

# destockchine 2013/03/24 0:32 http://d77.fr/

Glee is really aromatise you simply can't put entirely on some others whilst not using a couple is catagorized entirely on that you are. destockchine http://d77.fr/

# destockchine 2013/03/24 0:32 http://c99.fr/

Throughout riches their friends and family are familiar with our company; present in difficulty we realize their friends and family. destockchine http://c99.fr/

# usine23 2013/03/24 0:32 http://e55.fr/

Little or no man or woman is definitely worth all your rips, plus the individual who is simply had victory‘big t give you cry. usine23 http://e55.fr/

# destockmania 2013/04/03 7:28 http://www.ruenike.com/chaussure-femme-c-4.html/

Satisfaction truly a perfume you should not dump on the subject of others without the need for getting a hardly any drops on the subject of yourself. destockmania http://www.ruenike.com/chaussure-femme-c-4.html/

# coach outlet las vegas 2013/04/06 1:29 http://www.coachoutletcoupon88.com/

A honest neighbor is a of which overlooks your primary deficiencies and furthermore can handle your primary positive results. coach outlet las vegas http://www.coachoutletcoupon88.com/

# Sac Guess 2013/04/06 2:09 http://www.ruecuir.com/

Love, camaraderie, prise, please don't link folk over a widely used hate for the purpose of a specific product. Sac Guess http://www.ruecuir.com/

# laredoute 2013/04/07 7:06 http://ruezee.com/

Take pleasure in, accord, consider, do not link up men and women as much as a widespread hate in support of an item. laredoute http://ruezee.com/

# flocage tee shirt 2013/04/07 14:35 http://www.foot-center.fr/

Where exactly you will find there's married life without any romance, there are romance without any married life. flocage tee shirt http://www.foot-center.fr/

# tati 2013/04/08 0:27 http://ruenee.com/

Affection is going to be fragile through commence, nonetheless grows up tougher with each passing year you'll no doubt as it should be federal reserve. tati http://ruenee.com/

# RCRszvPkJuoVADsIP 2022/04/19 11:15 johnansaz

http://imrdsoacha.gov.co/silvitra-120mg-qrms

タイトル
名前
Url
コメント