| 6 | namespace winrt::TranslucentTB::Xaml::implementation { |
| 7 | template<typename D, typename... I> |
| 8 | struct App_baseWithProvider : public App_base<D, wux::Markup::IXamlMetadataProvider> { |
| 9 | using IXamlType = wux::Markup::IXamlType; |
| 10 | |
| 11 | IXamlType GetXamlType(const wux::Interop::TypeName &type) |
| 12 | { |
| 13 | return AppProvider()->GetXamlType(type); |
| 14 | } |
| 15 | |
| 16 | IXamlType GetXamlType(const hstring &fullName) |
| 17 | { |
| 18 | return AppProvider()->GetXamlType(fullName); |
| 19 | } |
| 20 | |
| 21 | com_array<wux::Markup::XmlnsDefinition> GetXmlnsDefinitions() |
| 22 | { |
| 23 | return AppProvider()->GetXmlnsDefinitions(); |
| 24 | } |
| 25 | |
| 26 | private: |
| 27 | bool _contentLoaded { false }; |
| 28 | com_ptr<XamlMetaDataProvider> _appProvider; |
| 29 | com_ptr<XamlMetaDataProvider> AppProvider() |
| 30 | { |
| 31 | if (!_appProvider) |
| 32 | { |
| 33 | _appProvider = make_self<XamlMetaDataProvider>(); |
| 34 | } |
| 35 | return _appProvider; |
| 36 | } |
| 37 | }; |
| 38 | |
| 39 | template<typename D, typename... I> |
| 40 | using AppT2 = App_baseWithProvider<D, I...>; |
nothing calls this directly
no outgoing calls
no test coverage detected