Exemplo n.º 1
0
 public ToastPreViewModel(IWidget widget)
     : base(widget)
 {
     //Infra Structure
     _model           = new ToastModel(widget, true);
     IsImgConvertType = false;
 }
Exemplo n.º 2
0
        public ToastViewModel(IWidget widget)
        {
            _model                      = new ToastModel(widget, false);
            _toast                      = widget as IToast;
            _bSupportBorder             = false;
            _bSupportBackground         = false;
            _bSupportText               = false;
            _bSupportTextVerAlign       = false;
            _bSupportTextHorAlign       = false;
            _bSupportGradientBackground = false;
            _bSupportGradientBorderline = false;
            _bSupportRotate             = false;
            _bSupportTextRotate         = false;

            IsChildPageOpened = (_model as ToastModel).IsAnyChildrenPageOpen();
            widgetGID         = widget.Guid;
            Type = ObjectType.Toast;
            _ListEventAggregator.GetEvent <RefreshWidgetChildPageEvent>().Subscribe(RefreshWidgetPageUIHandler);
            _ListEventAggregator.GetEvent <CloseWidgetPageEvent>().Subscribe(CloseWidgetPageHandler);
        }