/// <summary> /// Initializes a new instance of the ToastFrame class. /// </summary> public ToastFrame() { DefaultStyleKey = typeof(ToastFrame); _toastQueue = new Queue <ToastInfo>(); _toastTimer = new DispatcherTimer { Interval = ToastTimeout }; _toastTimer.Tick += ToastTimer_Tick; // This is a dummy status bar. Its purpose is to allow the status bar's properties // to be changed before OnApplyTemplate is called. Then, on OnApplyTemplate, the // properties from the dummy instance are transferred to the actual instance. StatusBar = new ToastFrameStatusBar(); }
/// <summary> /// Initializes a new instance of the ToastFrame class. /// </summary> public ToastFrame() { DefaultStyleKey = typeof(ToastFrame); _toastQueue = new Queue<ToastInfo>(); _toastTimer = new DispatcherTimer { Interval = ToastTimeout }; _toastTimer.Tick += ToastTimer_Tick; // This is a dummy status bar. Its purpose is to allow the status bar's properties // to be changed before OnApplyTemplate is called. Then, on OnApplyTemplate, the // properties from the dummy instance are transferred to the actual instance. StatusBar = new ToastFrameStatusBar(); }