Hi,
I am not able to apply style at runtime on child window.I have created two styles one with chrome and one without chrome. What i wanted to do is on mediaplayer fullscreen mode disable the dragging of child window and on press on escape button(normal mode) enable dragging of child window. My code looks like this :
void Content_FullScreenChanged(object sender, EventArgs e)
{
if (App.Current.Host.Content.IsFullScreen)
{
ObjChildMediaPlayer.Style = Application.Current.Resources["TestStyle"] as Style;
}
else
{
ObjChildMediaPlayer.Style = Application.Current.Resources["TestBasicStyle"] as Style;
}
ObjChildMediaPlayer.UpdateLayout();
}
On full screen dragging is disabling but when i press escape button it does not drag. I want the child window to be dragging in normal mode.