Group: Forum Members
Posts: 17,
Visits: 53
|
I wrapped a StrataFrame combobox and made it so if the user hits the F5 key, it shows a browse dialog which allows them to go on to add, edit or delete the records found in that combobox. It is a great feature but it is prone to developer error because I need to get the type of the browse as a string in the property (which then I use some reflection code to turn back into a real browse dialog that I got from the BrowseDialog source code).
What I'd like to do is re-use the StrataFrame BusinessObject UITypeEditor that you see below, but change it from looking for BusinessObjects to looking for BrowseDialogs. That way, I can offer a nice dialog to pick BrowseDialogs instead of typing out the entire namespace and name in the property window.
Description("The type of business object that will be used in the browse."), _
Editor(Constants.TE_BrowseDialogEditor, GetType(UITypeEditor)), _
TypeConverter(Constants.TC_SystemTypeStringConverter)> _
Public Overrides Property BusinessObjectType() As String
<...The rest of it....>
I've looked at making my own UITypeEditor and this problem isn't bad enough to make me want to try it. I would much rather inherit from the MicroFour.StrataFrame.Extensibility namespace and just override a property or two. Unless someone knows an easier way to offer a dynamic list in the property window of controls you've created?
|