Esempio n. 1
0
 public HamburgerMenutPreViewModel(IWidget widget)
     : base(widget)
 {
     //Infra Structure
     _model           = new HamburgerMenuModel(widget);
     IsImgConvertType = true;
 }
Esempio n. 2
0
        public HamburgerMenuViewModel(IWidget widget)
        {
            _model                      = new HamburgerMenuModel(widget);
            _bSupportBorder             = false;
            _bSupportBackground         = false;
            _bSupportText               = false;
            _bSupportTextVerAlign       = false;
            _bSupportTextHorAlign       = false;
            _bSupportGradientBackground = false;
            _bSupportGradientBorderline = false;
            _bSupportRotate             = false;
            _bSupportTextRotate         = false;

            IsChildPageOpened = (_model as HamburgerMenuModel).IsAnyChildrenPageOpen();
            Widget            = widget as IHamburgerMenu;
            Widget.MenuPage.Open();

            _imageStream = (_model as HamburgerMenuModel).ImageStream;
            widgetGID    = widget.Guid;
            Type         = ObjectType.HamburgerMenu;

            _ListEventAggregator.GetEvent <CloseWidgetPageEvent>().Subscribe(CloseWidgetPageHandler);
        }