WPF Dialog Box Property Value Editor access source control
- by Cicik
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
Thanks