D
dave
I am not even sure that is the right term for this. I am not sure where to
really start looking for this capability.
I created a form using wpf. it is mostly a big TreeView with a couple
different TreeViewItems, each of which is a Grid of other controls. I
decided I wanted to be able to reuse some of the TreeViewItems in other
forms. Doing what made sense I created a new class library project, copied
the big form, broke out the pieces i wanted into their own classes, each
derived from TreeViewItem. The first problem is that in the class library
the designer reports that the root element (a TreeViewItem) is not supported.
Ignoring that I went back to the main project and ripped out the
TreeViewItems and replaced them with the classes from the class library
project. The compiler is happy, but the designer doesn't show the items, and
neither do they show in the app when running.
Obviously I am missing something here, but I'm not sure what to even start
searching on.
really start looking for this capability.
I created a form using wpf. it is mostly a big TreeView with a couple
different TreeViewItems, each of which is a Grid of other controls. I
decided I wanted to be able to reuse some of the TreeViewItems in other
forms. Doing what made sense I created a new class library project, copied
the big form, broke out the pieces i wanted into their own classes, each
derived from TreeViewItem. The first problem is that in the class library
the designer reports that the root element (a TreeViewItem) is not supported.
Ignoring that I went back to the main project and ripped out the
TreeViewItems and replaced them with the classes from the class library
project. The compiler is happy, but the designer doesn't show the items, and
neither do they show in the app when running.
Obviously I am missing something here, but I'm not sure what to even start
searching on.