Top Index
![]() ![]() ![]() |
StrageインスタンスにRegistしていないインスタンスをダーティチェックすると、管理対象となっていないため、新規ダーティであると判別されます。
しかし、StrageインスタンスにRegistしていないList型のインスタンスをダーティチェックすると、エラーになります。これは、List型自身をダーティチェック対象としていないためです。
上述のようなことがやりたい場合は、StrageインスタンスにList型のインスタンスをRegistしておき、そのList型のインスタンスに新規のアイテムを追加して、List型のインスタンスをダーティチェックにかけてください。新規アイテムが新規ダーティであると判断されます。
このあたりはソースコードに添付してある単体テストコードを参照されることをお勧めします。
参考サイト
・.NET Developer Empire
アプリケーション構成ファイル(App.config)にカスタム構成セクションを追加する
http://blogs.wankuma.com/tatsumihr/articles/79793.aspx
・MSDN
方法 : ConfigurationSection を使用してカスタム構成セクションを作成する
http://msdn2.microsoft.com/ja-jp/library/2tw134k3(vs.80).aspx
| 01 | <?xml version="1.0" encoding="utf-8" ?> | |
| 02 | <configuration> | |
| 03 | ||
| 04 | <configSections> | |
| 05 | <section name="dbcon" | |
| 06 | type="mk3008.dbcon.Model.DbconSectionHandler, dbcon"/> | |
| 07 | </configSections> | |
| 08 | ||
| 09 | <!--環境リストと実行環境--> | |
| 10 | <dbcon running-on="debug"> | |
| 11 | ||
| 12 | <!--開発環境--> | |
| 13 | <environments> | |
| 14 | <environment name="debug"> | |
| 15 | <connectors> | |
| 16 | <connector name="a-system"> | |
| 17 | <assembly path="dbcon.PlugIn.SqlCe.dll" type="mk3008.dbcon.PlugIn.SqlCe.SqlCeConnector"/> | |
| 18 | <parameter cn-string="Data Source=data/SystemAdebugDB.sdf"/> | |
| 19 | </connector> | |
| 20 | <connector name="b-system"> | |
| 21 | <assembly path="dbcon.PlugIn.SqlCe.dll" type="mk3008.dbcon.PlugIn.SqlCe.SqlCeConnector"/> | |
| 22 | <parameter cn-string="Data Source=data/SystemBdebugDB.sdf"/> | |
| 23 | </connector> | |
| 24 | </connectors> | |
| 25 | </environment> | |
| 26 | ||
| 27 | <!--リリース環境--> | |
| 28 | <environment name="release"> | |
| 29 | <connectors> | |
| 30 | <connector name="a-system"> | |
| 31 | <assembly path="dbcon.dll" type="mk3008.dbcon.DataAccess.SqlConnector"/> | |
| 32 | <parameter cn-string="Data Source=data/SystemAreleaseDB.sdf"/> | |
| 33 | </connector> | |
| 34 | <connector name="b-system"> | |
| 35 | <assembly path="dbcon.dll" type="mk3008.dbcon.DataAccess.SqlConnector"/> | |
| 36 | <parameter cn-string="Data Source=data/SystemBreleaseDB.sdf"/> | |
| 37 | </connector> | |
| 38 | </connectors> | |
| 39 | </environment> | |
| 40 | </environments> | |
| 41 | ||
| 42 | </dbcon> | |
| 43 | ||
| 44 | </configuration> |

Silverlight4でもDataTemplate.DataTypeはないっぽいこれなかったら、MVVMパターンにするメリットが激減しますわ・・・
Wiki HSV色空間
(http://ja.wikipedia.org/wiki/HSV%E8%89%B2%E7%A9%BA%E9%96%93)

