StrataFrame Forum

MicroFour StrataFrame Inherited UI BindingField Editor problem

http://forum.strataframe.net/Topic28466.aspx

By dgsoft - 9/22/2010

Hi,

We update StrataFrame version to 1.7.3.1 and DevExpress controls to version 10.1

Then we rebuild source code for project MicroFour StrataFrame Inherited UI using new DevExpress references.

As result - now the Editor for BindingField property for all inherited controls does not work. (no more combobox to select field)




Can you help?

Thanks

Denis
By Ivan George Borges - 9/22/2010

Hi Denis.

Have a look at this post:

http://forum.strataframe.net/FindPost28345.aspx
By dgsoft - 9/22/2010

Hi Ivan!

Yes! Its what I looked for! Great! Problem fixed

Thanks a lot,

Denis
By Ivan George Borges - 9/22/2010

You are welcome, Denis. Cool
By dgsoft - 9/23/2010

Hi Again Smile)

The same question Smile Now all works with StrataFrame controls. I have written my own IBusinessBindable control.
Its very simple Smile) because I copy all code from TextEdit.vb and paste to my private class. Bingo! Before VS2010 - it works fine.
After manipulations with .EDIT_BindingFieldEditor and Recompile MicroFour StrataFrame Inherited UI, controls which inherited from StrataFrame Inherited UI - works perfect,
My own controls editor - does not appears.


<Category(EDITOR_CATEGORY), Description(EDITOR_BINDINGFIELD_DESC), DefaultValue(""), EditorAttribute(ControlConstants.EDIT_BindingFieldEditor, GetType(System.Drawing.Design.UITypeEditor))> _
Public Property BindingField() As String Implements IBusinessBindable.BindingField
Get
Return _BindingField
End Get
Set(ByVal value As String)
_BindingField = value
End Set
End Property


Public Property BindingField() As String Implements IBusinessBindable.BindingField Get Return _BindingField End Get Set(ByVal value As String) _BindingField = value End Set End Property


What also should I know Smile

Thanks
Denis
By Ivan George Borges - 9/23/2010

Hiya.

Can you see, on your code: ControlConstants.EDIT_BindingFieldEditor ?

OK, it seems this is the constant Trent is talking about, and since you have your own control now, you should have this constante declared somewhere. If you have it, do the same thing he told us to do, I mean, have it declared this way:

Public Const EditorAssemblyExt As String = ", MicroFour StrataFrame Extensibility, Version=" & BuildInformation.BuildAssemblyVersion & ", Culture=neutral, PublicKeyToken=99fe9917f71608a7"


I guess you could insert this content directly into your code, in substitution to ControlConstants.EDIT_BindingFieldEditor.

If I wasn't very clear, let me know... it's been a hard day today. BigGrin
By dgsoft - 9/23/2010

Hi Ivan,

Aha! Now it works also. When I move constants definition into my class - editor appears! Super!

  Public Class MKSBindableControl
Inherits MKS.GoliathNet.Windows.Controls.MKSBaseContainer
Implements IBusinessBindable, IInitializeBusinessObject

Public Const EditorNamespace As String = "MicroFour.StrataFrame.Extensibility."
Public Const EDIT_BindingFieldEditor As String = EditorNamespace & "BindingFieldEditor" & EditorAssemblyExt
Public Const EditorAssemblyExt As String = ", MicroFour StrataFrame Extensibility, Version=" & MicroFour.StrataFrame.BuildInformation.BuildAssemblyVersion & ", Culture=neutral, PublicKeyToken=99fe9917f71608a7"

    <Category(EDITOR_CATEGORY), Description(EDITOR_BINDINGFIELD_DESC), DefaultValue(""), EditorAttribute(EDIT_BindingFieldEditor, GetType(System.Drawing.Design.UITypeEditor))> _
Public Property BindingField() As String Implements IBusinessBindable.BindingField
Get
Return _BindingField
End Get
Set(ByVal value As String)
_BindingField = value
End Set
End Property


Thanks again for your help!
Denis
By Ivan George Borges - 9/23/2010

Glad it worked, Denis.

You're welcome. Cool