<div dir="ltr">This might be an obvious problem out of my lack of understanding how Python.Net work.<div><br></div><div>I am exploring the possibility of program WPF ViewModel.</div><div><br></div><div>After resolving the problem inheriting .Net interface class, </div><div><br></div><div><div>class ViewModel(System.ComponentModel.INotifyPropertyChanged):</div><div>    __namespace__ = "WPFPy"<br></div></div><div>....</div><div><br></div><div>class MyViewModel(ViewModel):</div><div>....  here to implement follow ironpython examples</div><div><br></div><div>then assign it to DataContext </div><div><br></div><div>self.window = System.Windows.Markup.XamlReader.Load(outStream)</div><div>self.window.DataContext = MyViewModel()</div><div><br></div><div>this does not seem to work, the property/method in MyViewModel is never called nor any data binding happened. </div><div><br></div><div>I was able to get ExpandoObject work well though and binding works fine </div><div>self.window.DataContext = System.Dynamic.ExpandoObject()</div><div><br></div><div>so, that makes me asking if it makes sense at all to pass a Python class object back into .Net framework and expect it works -- even if the proper interface is implemented. </div><div><br></div><div><br></div><div>thanks</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>