简体   繁体   中英

How can I get the data from an outlook email account, such as emails, contacts, and calendar events, and show it inside a list?

I want to make a user control (WPF) and put it inside a TabControl . That's fine, but I want to get the data, like an email or a contact, and put it in that user control as part of a list and show it in a list box, something like this:

在此处输入图像描述

In the email tab, show emails, In the contacts tab, show contacts, In the Events tab, show Calendar events, All in the same fashion.

To get contacts, emails and events from out look, you can use Microsoft Graph API. you can check those thing on documentation of this Microsoft Graph API

Leverage the Outlook API and make the appropriate calls. Microsoft has documentation on it.

Format your response into a collection of custom objects that are mapped, and then iterate through that collection to generate and populate your elements.

Outlook API starting point: https://docs.microsoft.com/en-us/outlook/rest/get-started

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM