Quantcast
Viewing all articles
Browse latest Browse all 18858

DataGrid.LoadedEvent behaviour not firing, when binding WPF Window - Height & Width

Hi,

DataGrid.LoadedEvent behavior is not firing when I bind the Height & Width of a WPF window, where as other DataGrid event behaviors are working fine. When I remove the binding on the Height & Width of the window, the DataGrid.LoadedEvent behavior is also firing. Looking forward for some help.

NOTE: I am attaching a test project to this post where in you can see the behavior stated above. In the test project, the DataGrid.LoadedEvent will not fire if bindings are set on Height & Width of the window but DataGrid.GotFocus will fire. If bindings are removed on Height & Width of the window, DataGrid.LoadedEvent behavior is also firing.

Attachment Link


Ramakrishna


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>