Example #1
0
        public NewMessaging()
        {
            InitializeComponent();

            if (_viewModel == null)
            {
                _viewModel = new MessagesViewModel();
            }

            DataContext = _viewModel;

            this.mailMessageSelectedStoryboard = LayoutRoot.Resources["MailMessageSelected"] as Storyboard;
            this.newMessageSelectedStoryboard = LayoutRoot.Resources["NewMessageSelected"] as Storyboard;
            this.outMailMessageSelectedStoryboard = LayoutRoot.Resources["OutBoxMessageSelected"] as Storyboard;
        }
Example #2
0
        public MessagesView()
        {
            InitializeComponent();

            if (_viewModel == null)
            {
                _viewModel = new MessagesViewModel();
            }

            DataContext = _viewModel;

            this.mailMessageSelectedStoryboard = LayoutRoot.Resources["MailMessageSelected"] as Storyboard;
            this.newMessageSelectedStoryboard = LayoutRoot.Resources["NewMessageSelected"] as Storyboard;

            //AppMessages.MailFinishedDeleting.Register(this, OnMailDeleted);
            //MessagesTreeView.ItemsSource = _viewModel.InboxMessages;
        }