Example #1
0
        public static PageViewDisguise GetOrCreateViewDisguise(this Page obj)
        {
            var dis = (PageViewDisguise)obj.GetValue(ViewDisguiseProperty);

            if (dis == null)
            {
                dis = new PageViewDisguise(obj);
                obj.SetValue(ViewDisguiseProperty, dis);
            }
            return(dis);
        }
Example #2
0
 public static void SetViewDisguise(this Page obj, PageViewDisguise value)
 {
     obj.SetValue(ViewDisguiseProperty, value);
 }
 public static void SetViewDisguise(this UserControl dobj, PageViewDisguise value)
 {
     dobj?.SetValue(ViewDisguiseProperty, value);
 }