protected override void InitializeInDesignMode()
 {
     SetCurrentFolder(MailFolderViewModel.Create(null, null, MessageFolderName.All, MessageType.Inbox));
     CurrentMessage     = Items[0];
     NewMessage         = CurrentMessage;
     ShowMessagePreview = true;
 }
Пример #2
0
        void FillFolders()
        {
            Folders = new List <IMailFolderDescription>();
            MailFolderViewModel mainFolder = MailFolderViewModel.Create("Mr.Brooks", FilePathHelper.GetAppImageUri("FoldersIcons/Customer"), MessageFolderName.Root, MessageType.Inbox);
            MailFolderViewModel mainInbox  = MailFolderViewModel.Create("Inbox", FilePathHelper.GetAppImageUri("FoldersIcons/Inbox"), MessageFolderName.All, MessageType.Inbox);

            mainInbox.SubFolders.Add(MailFolderViewModel.Create("Management", FilePathHelper.GetAppImageUri("FoldersIcons/Management"), MessageFolderName.Management, MessageType.Inbox));
            mainInbox.SubFolders.Add(MailFolderViewModel.Create("IT", FilePathHelper.GetAppImageUri("FoldersIcons/IT"), MessageFolderName.IT, MessageType.Inbox));
            mainInbox.SubFolders.Add(MailFolderViewModel.Create("Sales", FilePathHelper.GetAppImageUri("FoldersIcons/Sales"), MessageFolderName.Sales, MessageType.Inbox));
            mainInbox.SubFolders.Add(MailFolderViewModel.Create("Engineering", FilePathHelper.GetAppImageUri("FoldersIcons/Engineering"), MessageFolderName.Engineering, MessageType.Inbox));
            mainFolder.SubFolders.Add(mainInbox);
            mainFolder.SubFolders.Add(MailFolderViewModel.Create("Sent Items", FilePathHelper.GetAppImageUri("FoldersIcons/Sent"), MessageFolderName.All, MessageType.Sent));
            mainFolder.SubFolders.Add(MailFolderViewModel.Create("Deleted Items", FilePathHelper.GetAppImageUri("FoldersIcons/Deleted"), MessageFolderName.All, MessageType.Deleted));
            mainFolder.SubFolders.Add(MailFolderViewModel.Create("Drafts", FilePathHelper.GetAppImageUri("FoldersIcons/Draft"), MessageFolderName.All, MessageType.Draft));
            Folders.Add(mainFolder);
        }