Welcome to Office 365 APIs | Microsoft Docs
Skip to main content

Office 365 APIs

This site contains the documentation for Office 365 REST APIs exposed on the OneNote and Outlook endpoints. The documentation is no longer actively updated. It is here for your reference, in case you have already included any of the API in your project.

Office 365 services, such as OneNote, Outlook, Excel, OneDrive, Microsoft Teams, Planner, and SharePoint, are now exposed in Microsoft Graph. Microsoft Graph is a unified API endpoint for accessing data across Microsoft 365, which includes Office 365, Enterprise Mobility, and Security and Windows services. It provides a simplified developer experience, with one endpoint and a single authentication token that gives your app access to data across all these services.

Our recommendation:

  • If you are starting a new app, please use Microsoft Graph.
  • If you are maintaining an existing project, use this documentation set for reference. In addition, plan your move to the latest APIs in Microsoft Graph to take advantage of all the new functionality and innovation there.
  • If you are adding new functionality to an existing project, integrate that new functionality by using Microsoft Graph.

With Microsoft Graph, you can access Office 365 data and more, from solutions across mobile, web, and desktop platforms. So whether you're building web applications by using .NET, PHP, Java, Python, or Ruby on Rails, or creating apps for the Universal Windows Platform (UWP), iOS, Android, or on another device platform, it's your choice.

In this section

 locked
ItemsSource is IEnumerable of UserControls RRS feed

  • Question

  • I have ListView.ItemsSource bound to an IEnumerable<UserControl>. If that's all I do, the ListView displays the list of UserControls just fine. However I need to put some minor formatting around the UserControls when presented in the list. Specifically I need to stick them inside a Border (at least for starters). So philosophically I need to do:

    <DataTemplate>
      <Border>
        {Binding}
      </Border>
    </DataTemplate>

    I've tried <Border Child="{Binding}">. That just creates empty ListView items. Presumably the underlying logic doesn't accept that approach. Is there a XAML solution to this rather then resorting to wrapping the UserControls in Borders in code -- which has the undesirable effect of putting some of the UI formatting in the code rather than in XAML.

    As a secondary but related question... anybody know what property controls the gap between items in a ListView?  I've done everything to eliminate all margins, padding, borders, etc, from the items themselves, but the ListView still wants to put a gap between them.

    Win[Phone] 8.1 Universal App.  Right now I'm looking at the gap being there on the WinPhone, but the VS XAML designer is implying it'll be there under Win also once I get around to looking at that.  I assume the gap is there for tapping using fat fingers, but in my case the items are big enough to use as targets without having extra gap between them.

    Thanks!


    -- kburgoyne

    Saturday, May 30, 2015 7:10 PM

Answers

  • Okay... it appears the answer to my second question (gap between items) was provided by:

    Chris Lovett at here

    Not as simple as just a property change. Requires copying the default ListViewItem style and killing/suppressing the checkbox support.


    -- kburgoyne

    • Marked as answer by kburgoyne Sunday, May 31, 2015 3:07 AM
    Sunday, May 31, 2015 2:36 AM
  • ...and my solution to my first question (item inside border) is resolved when the default ListViewItem style is copied and then the BorderBrush, BorderThickness, Margin, and Padding properties set to control the margin, border, and padding around each item.

    -- kburgoyne

    • Marked as answer by kburgoyne Sunday, May 31, 2015 3:07 AM
    Sunday, May 31, 2015 3:07 AM

All replies

  • Okay... it appears the answer to my second question (gap between items) was provided by:

    Chris Lovett at here

    Not as simple as just a property change. Requires copying the default ListViewItem style and killing/suppressing the checkbox support.


    -- kburgoyne

    • Marked as answer by kburgoyne Sunday, May 31, 2015 3:07 AM
    Sunday, May 31, 2015 2:36 AM
  • ...and my solution to my first question (item inside border) is resolved when the default ListViewItem style is copied and then the BorderBrush, BorderThickness, Margin, and Padding properties set to control the margin, border, and padding around each item.

    -- kburgoyne

    • Marked as answer by kburgoyne Sunday, May 31, 2015 3:07 AM
    Sunday, May 31, 2015 3:07 AM
Welcome to Office 365 APIs | Microsoft Docs
Skip to main content

Office 365 APIs

This site contains the documentation for Office 365 REST APIs exposed on the OneNote and Outlook endpoints. The documentation is no longer actively updated. It is here for your reference, in case you have already included any of the API in your project.

Office 365 services, such as OneNote, Outlook, Excel, OneDrive, Microsoft Teams, Planner, and SharePoint, are now exposed in Microsoft Graph. Microsoft Graph is a unified API endpoint for accessing data across Microsoft 365, which includes Office 365, Enterprise Mobility, and Security and Windows services. It provides a simplified developer experience, with one endpoint and a single authentication token that gives your app access to data across all these services.

Our recommendation:

  • If you are starting a new app, please use Microsoft Graph.
  • If you are maintaining an existing project, use this documentation set for reference. In addition, plan your move to the latest APIs in Microsoft Graph to take advantage of all the new functionality and innovation there.
  • If you are adding new functionality to an existing project, integrate that new functionality by using Microsoft Graph.

With Microsoft Graph, you can access Office 365 data and more, from solutions across mobile, web, and desktop platforms. So whether you're building web applications by using .NET, PHP, Java, Python, or Ruby on Rails, or creating apps for the Universal Windows Platform (UWP), iOS, Android, or on another device platform, it's your choice.

In this section