// Methods public AreaOfInterestLayoutInput() { //this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new Type[0]); string stId = "Focus"; this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { stId }); }
public void SetLayoutInput(object Panel) { //Type myType = Panel.GetType(); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oType2, oType }); //theMethod.Invoke(Panel, new object[] { ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject }); Type myType = Panel.GetType(); weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.LegacyHorizontalFlowLayout, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { }); Panel = weasel.Instance; //PropertyInfo pi = myType.GetProperty("Layout", BindingFlags.NonPublic | BindingFlags.Instance); //pi.SetValue(Panel, weasel.Instance, null); // Hashtable PropertiesOfMyObject = new Hashtable(); // PropertyInfo[] pis = myType.GetProperties(BindingFlags.FlattenHierarchy | //BindingFlags.IgnoreCase | //BindingFlags.Instance | //BindingFlags.NonPublic | //BindingFlags.Public); // for (int i = 0; i < pis.Length; i++) // { // PropertyInfo pi = (PropertyInfo)pis.GetValue(i); // PropertiesOfMyObject.Add(pi.Name, pi.GetValue(weasel.Instance, new object[] { })); // } //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayout", new Type[] { weasel.Instance.GetType() }); //theMethod.Invoke(Panel, new object[] { weasel.Instance }); }
public void SetLayoutInput(object Panel) { //Type myType = Panel.GetType(); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oType2, oType }); //theMethod.Invoke(Panel, new object[] { ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject }); Type myType = Panel.GetType(); weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.FlowSizeMemoryLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] {}); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { weasel.Instance.GetType() }); theMethod.Invoke(Panel, new object[] { weasel.Instance }); }
public void SetScrollIntoViewDisposition(object ScrollingData, object ScrollIntoViewDisposition) { // Type type = ScrollingData.GetType(); // PropertyInfo pi = null; // while (type != null && pi != null) // { // pi = type.GetProperty("ScrollIntoViewDisposition", BindingFlags.FlattenHierarchy | //BindingFlags.IgnoreCase | //BindingFlags.Instance | //BindingFlags.NonPublic | //BindingFlags.Public); // params omitted for brevity, using DeclaredOnly // type = type.BaseType; // } if (_loaded == false) { _loaded = true; PrivateObjectWeasel weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.ScrollIntoViewDisposition, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); float f = 0; weasel.SetProperty("LockedPosition", f); weasel.SetProperty("LockedAlignment", f); MethodInfo mi = ScrollingData.GetType().GetMethod("set_ScrollIntoViewDisposition", BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase | BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public); mi.Invoke(ScrollingData, new object[] { weasel.Instance }); //Type myType = ScrollingData.GetType(); //PropertyInfo pinfo = myType.GetProperty("ScrollIntoViewDisposition", weasel.Instance.GetType()); //pinfo.SetValue(ScrollingData, weasel.Instance, null); //pinfo.SetValue(ScrollingData, PipVisualState.Inactive, null); } }
public void SetScrollingLayout(object Panel) { //Type myType = Panel.GetType(); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oType2, oType }); //theMethod.Invoke(Panel, new object[] { ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject }); Type myType = Panel.GetType(); weasel2 = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.ScrollingLayout, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { }); //PropertyInfo inf = weasel2.GetType().GetProperty("Orientation"); //inf.SetValue(weasel2, (object)"Horizontal", null); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayout", new Type[] { weasel2.Instance.GetType() }); //theMethod.Invoke(Panel, new object[] { weasel2.Instance }); PropertyInfo inf = myType.GetProperty("Layout", BindingFlags.Public | BindingFlags.Instance); inf.SetValue(Panel, (object)weasel2.Instance, null); }
public TreeNode(object tree) { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.TreeNode, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { tree }); }
public NowPlaying(object viewOwner) { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.NowPlaying, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { viewOwner }); }
public MergeAnimation() { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.MergeAnimation, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); }
public GradientOffsetKeyframe() { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.GradientOffsetKeyframe, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); }
//public Gradient(object zone) //{ // this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.Gradient, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { zone }); //} public Gradient(object zone) { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.ViewItem, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { zone }); }
public BaseKeyframe(float flTime) { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.BaseKeyframe, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); }
// Methods protected BaseARGBColorKeyframe() { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.BaseARGBColorKeyframe, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); }
public AreaOfInterestLayoutInput(string stId) { this._weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { stId }); //this.m_stId = stId; }
public void SetLayoutInput(object Panel) { //Type myType = Panel.GetType(); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); //MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oType2, oType }); //theMethod.Invoke(Panel, new object[] { ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject }); Type myType = Panel.GetType(); weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",new object[]{"Focus"}); //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { weasel.Instance.GetType() }); theMethod.Invoke(Panel, new object[] { weasel.Instance }); }
public void SetLayoutInput(object Panel, object oNewValue) { return; //if (this.weasel != null) //{ //if (this.weasel != null) //{ // this.weasel.SetProperty("Id", "notFocus"); // this.weasel = null; //} Type myType = Panel.GetType(); MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oNewValue.GetType() }); theMethod.Invoke(Panel, new object[] { oNewValue }); if (this.weasel != null) this.weasel = null; return; // // Type zmyType = Panel.GetType(); // // //PrivateObjectWeasel zweasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); // // MethodInfo ztheMethod = zmyType.GetMethod("MarkLayoutInvalid"); // // ztheMethod.Invoke(Panel, null); // //} // //this.weasel.SetProperty("Id", "notFocus"); // //} // //return; //// Hashtable PropertiesOfMyObject = new Hashtable(); //// Type t = weasel.Instance.GetType(); //// PropertyInfo[] pis = t.GetProperties(BindingFlags.FlattenHierarchy | ////BindingFlags.IgnoreCase | ////BindingFlags.Instance | ////BindingFlags.NonPublic | ////BindingFlags.Public); //// for (int i = 0; i < pis.Length; i++) //// { //// PropertyInfo pi = (PropertyInfo)pis.GetValue(i); //// PropertiesOfMyObject.Add(pi.Name, pi.GetValue(weasel.Instance, new object[] { })); //// } //// } //// return; // //////////////////// // if (this.weasel != null) // { // } // //Type myType = Panel.GetType(); // //Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); // //Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); // //MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { oType2, oType }); // //theMethod.Invoke(Panel, new object[] { ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject }); // Type myType = Panel.GetType(); //// MethodInfo mi = weasel.Instance.GetType().GetMethod("get_ILayoutData.Data", ////BindingFlags.FlattenHierarchy | ////BindingFlags.IgnoreCase | ////BindingFlags.Instance | ////BindingFlags.NonPublic | ////BindingFlags.Public); //// mi.Invoke(weasel.Instance, null); // object o = weasel.Instance.GetType().GetProperty("Microsoft.MediaCenter.UI.ILayoutData.Data", BindingFlags.FlattenHierarchy | //BindingFlags.IgnoreCase | //BindingFlags.Instance | //BindingFlags.NonPublic | //BindingFlags.Public|BindingFlags.Static); // object o2 = o.GetType().GetProperty("m_value", BindingFlags.FlattenHierarchy | //BindingFlags.IgnoreCase | //BindingFlags.Instance | //BindingFlags.NonPublic | //BindingFlags.Public | BindingFlags.Static); // //ValueType v = (ValueType)o; // //System.ComponentModel.PropertyDescriptorCollection pdc = System.ComponentModel.TypeDescriptor.GetProperties(weasel.Instance); // //foreach (System.ComponentModel.PropertyDescriptor pdcI in pdc) // //{ // //} // //PrivateObjectWeasel weasel = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.AreaOfInterestLayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35", new object[] { "Focus" }); // //PrivateObjectWeasel weasel2 = new PrivateObjectWeasel("Microsoft.MediaCenter.UI.ViewItem, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"); // ////Type oType = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingObject.GetType(); // ////Type oType2 = ((AreaOfInterestLayoutInput)AreaOfInterest).underlyingData.GetType(); // MethodInfo theMethod = myType.GetMethod("SetLayoutInput", new Type[] { Type.GetType("Microsoft.MediaCenter.UI.Utility.DataCookie, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"), Type.GetType("Microsoft.MediaCenter.UI.ILayoutInput, Microsoft.MediaCenter.UI, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35") }); // theMethod.Invoke(Panel, new object[] { o, null }); }