private static CustomControl GetBarControl(BarSubItemLink link) { PropertyInfo property = link.GetType().GetProperty("BarControl", BindingFlags.Instance | BindingFlags.NonPublic); CustomControl barControl = (CustomControl)property.GetValue(link, null); return(barControl); }
private static BarSubItemLinkViewInfo GetSubItemLinkViewInfo(BarSubItemLink link) { PropertyInfo property = link.GetType().GetProperty("LinkViewInfo", BindingFlags.Instance | BindingFlags.NonPublic); return((BarSubItemLinkViewInfo)property.GetValue(link, null)); }