public MainViewModel() { NotificationSource = new NotificationsSource { MaximumNotificationCount = 5, NotificationLifeTime = TimeSpan.FromSeconds(3) }; }
public MainViewModel() { NotificationSource = new NotificationsSource { MaximumNotificationCount = 4, NotificationLifeTime = TimeSpan.FromSeconds(3) }; }
public MainViewModel() { this._xsltParameters = new ObservableCollection <XsltParameter>(); this._xsltParameters.CollectionChanged += (a, b) => this.RunTransform(); this.Document = new Document(); this.XmlToTransformDocument.TextChanged += (a, b) => this.RunTransform(); NotificationSource = new NotificationsSource(); }
public MainWindowViewModel(PageManager pageManager, IEventAggregator ea, IFolderReactionMonitorModel monitor, IRegionManager regionManagar) { PageManager = pageManager; _Monitor = monitor; _RegionManager = regionManagar; MessageRequest = new InteractionRequest<Notification>(); _CompositeDisposable = new CompositeDisposable(); var e = ea.GetEvent<PubSubEvent<TaskbarIconBalloonMessageEventPayload>>(); e.Subscribe(x => { MessageRequest.Raise(new Notification() { Title = x.Title, Content = x.Message }); }); IsOpenSubContent = PageManager .ObserveProperty(x => x.IsOpenSubContent) .ToReactiveProperty(false); IsOpenSideMenu = PageManager .ToReactivePropertyAsSynchronized(x => x.IsOpenSideMenu); NotificationSource = new NotificationsSource(); var toastEvent = ea.GetEvent<PubSubEvent<ToastNotificationEventPayload>>(); toastEvent.Subscribe(x => { NotificationSource.Show(x.Message, x.Type); }); }
public ToastViewModel() { NotificationSource = new NotificationsSource(); }
public MainViewModel() { NotificationSource = new NotificationsSource(); }