Hello,
I've this usercontrol here: https://www.vbforums.com/showthread....ent&highlight=
that have the property SelectedEndianess
and in my app the the property:
I'm trying to bind them so:Code:Private Const m_Defaultendianess = 0 Private _myendianess As String = m_Defaultendianess <DefaultValue(m_DefaultZoomV)> Public Property myEndianess() As String Get Return _myendianess End Get Set(ByVal value As String) SetAndNotify(_myendianess, value) End Set End Property
but I'm getting this error: XDG0062 Object of type 'System.Windows.Data.Binding' cannot be converted to type 'System.String'.Code:<local:myBitButton x:Name="mybtnBitButton" Grid.Row="1" EndianessChanged="{s:Action mybtnBitButton_EndianessChanged}" SelectedEndianess="{Binding myEndianess , UpdateSourceTrigger=PropertyChanged}" ></local:myBitButton>
Any advice?




Reply With Quote
