Пример #1
0
        protected bool ValidateOrReplaceViewElement(ref ViewElement element, WindowProfileValidationContext context)
        {
            this.ValidateOrReplaceViewElementSizes(element);
            this.ValidateOrReplaceViewElementPosition(element);
            View view = element as View;

            if (view != null)
            {
                bool flag = this.ValidateOrReplaceView(ref view, context);
                element = (ViewElement)view;
                return(flag);
            }
            ViewGroup viewGroup = element as ViewGroup;

            if (viewGroup != null)
            {
                bool flag = this.ValidateOrReplaceViewGroup(ref viewGroup, context);
                element = (ViewElement)viewGroup;
                return(flag);
            }
            ViewBookmark viewBookmark = element as ViewBookmark;

            if (viewBookmark == null)
            {
                return(this.ValidateOrReplaceCustomViewElement(ref element, context));
            }
            bool flag1 = this.ValidateOrReplaceViewBookmark(ref viewBookmark, context);

            element = (ViewElement)viewBookmark;
            return(flag1);
        }
Пример #2
0
 protected virtual bool ValidateOrReplaceViewBookmark(ref ViewBookmark viewBookmark, WindowProfileValidationContext context)
 {
     return(true);
 }
 public ViewBookmarkCustomSerializer(ViewBookmark mark)
     : base((ViewElement)mark)
 {
 }