wpf - Datagrid SelectedItem lost on window.IsEnabled = false -


i have (main)window containing frame. page loaded frame, viewmodel datacontext.

the view has datagrids, 1 bound viewmodel , other bound selected.item (so master-details view..)

the problem occurs when display popup box, , set mainwindow isenabled = false. when happens, selected item datagrid bound viewmodel gets unselected, , of course other datagrids selected items unselected well.

how can preserve "state" of ui when mainwindow.isenabled set false?

if want add insanity mix. after installing vs 2011 beta (which replaces .net 4.0 framework .net 4.5) created small test application vs 2010 targets 4.0 , behaviour of has changed once again not set selecteditem = null when grid disabled. don't know if make final version of 4.5 or not....


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -