public void SetSelected(object Panel) { Type panelType = Panel.GetType(); areaOfInterestWrapper = new PrivateObjectReflector("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { "Selected" }); MethodInfo theMethod = panelType.GetMethod("SetLayoutInput", new Type[] { areaOfInterestWrapper.Instance.GetType() }); theMethod.Invoke(Panel, new object[] { areaOfInterestWrapper.Instance }); }