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.
CodePudding user response:
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
CodePudding user response:
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

