ReadOnlyListBase Question?

ReadOnlyListBase Question?

Old forum URL: forums.lhotka.net/forums/t/673.aspx


RangerGuy posted on Wednesday, July 19, 2006

Is it an acceptable practice to make a parent child relationship in a read only base class.

For Example

I want to display a readonly tree with as such (So all the objects are for display only but there is a parent child relationship.)

|-Root

|---Parent

|----->Children

 |-------->Grandchild

|----Parent

|----->Children

 |-------->Grandchild

Brian Criswell replied on Wednesday, July 19, 2006

Well, yeah.  As long as you do not want to save it and you do not mind the loss of the PropertyChanged event, it should work fine.

RangerGuy replied on Wednesday, July 19, 2006

Yeh.. it's display purpose only. No editing through these objects.. it purpose is only to display data on the UI.

 

Copyright (c) Marimer LLC