i set two way binding then on ok is working fine,cancel is not
and if i set one way binding cancel is working fine ok button is not
i am calling expression editor on a button click dynamically that code is:
Private Sub btnRiskFactorFormular_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim window As New ExpressionEditorWindow()
window.DataContext = DirectCast(sender, System.Windows.Controls.Button).DataContext
Dim bindFormular As System.Windows.Data.Binding = New System.Windows.Data.Binding("ewrf_formula")
' bindFormular.Mode = BindingMode.OneWay
window.ExpressionEditor.SetBinding(RadExpressionEditor.ExpressionTextProperty, bindFormular)
Dim objRiskFactors As New WellnessIncentiveMethods
Dim test As List(Of EERiskFactorFields) = objRiskFactors.fnGetRiskFactorNames()
window.ExpressionEditor.Item = test(0)
AddHandler window.Closed, AddressOf Me.OnExpressionWindowClosed
window.ShowDialog()
End Sub
and if i set one way binding cancel is working fine ok button is not
i am calling expression editor on a button click dynamically that code is:
Private Sub btnRiskFactorFormular_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
Dim window As New ExpressionEditorWindow()
window.DataContext = DirectCast(sender, System.Windows.Controls.Button).DataContext
Dim bindFormular As System.Windows.Data.Binding = New System.Windows.Data.Binding("ewrf_formula")
' bindFormular.Mode = BindingMode.OneWay
window.ExpressionEditor.SetBinding(RadExpressionEditor.ExpressionTextProperty, bindFormular)
Dim objRiskFactors As New WellnessIncentiveMethods
Dim test As List(Of EERiskFactorFields) = objRiskFactors.fnGetRiskFactorNames()
window.ExpressionEditor.Item = test(0)
AddHandler window.Closed, AddressOf Me.OnExpressionWindowClosed
window.ShowDialog()
End Sub