WPF Dialog Box Property Value Editor access source control

Posted by Cicik on Stack Overflow See other posts from Stack Overflow or by Cicik
Published on 2010-03-28T12:26:16Z Indexed on 2010/03/28 12:33 UTC
Read the original article Hit count: 1097

Hello, I have User control in WPF with dependency property DEP1 on which i set value by DialogPropertyValueEditor(code below):

Public Class OPCItemDialogPropertyValueEditor
    Inherits DialogPropertyValueEditor

    Private res As New EditorResources()

    Public Sub New()
        Me.InlineEditorTemplate = TryCast(res("OPCItemInlineEditorTemplate"), DataTemplate)
    End Sub

    Public Overrides Sub ShowDialog(ByVal propertyValue As PropertyValue, ByVal commandSource As IInputElement)
        Dim window As New MyWindowToSetProperty(SomeParameter, "STRING Value Of ANother Property In control")
        If window.ShowDialog() Then
            propertyValue.Value = window.ChoosedOPCItem
        End If
    End Sub
End Class

I need to set value of property of my control as parameter("STRING Value Of ANother Property In control") for window from i set value to property DEP1


© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-user-controls