microsoft / microsoft-ui-xaml-specs

API spec repository for the Windows UI Library (WinUI)
https://github.com/Microsoft/microsoft-ui-xaml
Creative Commons Attribution 4.0 International
119 stars 40 forks source link

XamlServiceProvider API for markup extensions #84

Closed MikeHillberg closed 4 years ago

StephaneDelcroix commented 4 years ago

I'm wondering why you choose to name this IXamlServiceProvider instead of already existing IServiceProvider

MikeHillberg commented 4 years ago

I'm wondering why you choose to name this IXamlServiceProvider instead of already existing IServiceProvider

IServiceProvider is specific to .NET. But we should project it to IServiceProvider in the cs/winrt projection: https://github.com/microsoft/CsWinRT/issues/358

oldnewthing commented 4 years ago

I'm wondering why you choose to name this IXamlServiceProvider instead of already existing IServiceProvider

IServiceProvider is specific to .NET. But we should project it to IServiceProvider in the cs/winrt projection: microsoft/CsWinRT#358

There is already a classic COM interface called IServiceProvider, so C++ code may encounter name conflicts if we called it IServiceProvider.