// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_UI_Xaml_H #define WINRT_Windows_UI_Xaml_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.UI.h" #include "winrt/impl/Windows.ApplicationModel.2.h" #include "winrt/impl/Windows.ApplicationModel.Activation.2.h" #include "winrt/impl/Windows.ApplicationModel.Core.2.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.DragDrop.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Foundation.Numerics.2.h" #include "winrt/impl/Windows.Graphics.Imaging.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Core.2.h" #include "winrt/impl/Windows.UI.Input.2.h" #include "winrt/impl/Windows.UI.Xaml.Automation.Peers.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.Primitives.2.h" #include "winrt/impl/Windows.UI.Xaml.Data.2.h" #include "winrt/impl/Windows.UI.Xaml.Input.2.h" #include "winrt/impl/Windows.UI.Xaml.Interop.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.Animation.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.Imaging.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.Media3D.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" namespace winrt::impl { template auto consume_Windows_UI_Xaml_IAdaptiveTrigger::MinWindowWidth() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTrigger)->get_MinWindowWidth(&value)); return value; } template auto consume_Windows_UI_Xaml_IAdaptiveTrigger::MinWindowWidth(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTrigger)->put_MinWindowWidth(value)); } template auto consume_Windows_UI_Xaml_IAdaptiveTrigger::MinWindowHeight() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTrigger)->get_MinWindowHeight(&value)); return value; } template auto consume_Windows_UI_Xaml_IAdaptiveTrigger::MinWindowHeight(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTrigger)->put_MinWindowHeight(value)); } template auto consume_Windows_UI_Xaml_IAdaptiveTriggerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTriggerFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::AdaptiveTrigger{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IAdaptiveTriggerStatics::MinWindowWidthProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTriggerStatics)->get_MinWindowWidthProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IAdaptiveTriggerStatics::MinWindowHeightProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IAdaptiveTriggerStatics)->get_MinWindowHeightProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IApplication::Resources() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->get_Resources(&value)); return winrt::Windows::UI::Xaml::ResourceDictionary{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IApplication::Resources(winrt::Windows::UI::Xaml::ResourceDictionary const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->put_Resources(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IApplication::DebugSettings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->get_DebugSettings(&value)); return winrt::Windows::UI::Xaml::DebugSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IApplication::RequestedTheme() const { winrt::Windows::UI::Xaml::ApplicationTheme value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->get_RequestedTheme(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IApplication::RequestedTheme(winrt::Windows::UI::Xaml::ApplicationTheme const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->put_RequestedTheme(static_cast(value))); } template auto consume_Windows_UI_Xaml_IApplication::UnhandledException(winrt::Windows::UI::Xaml::UnhandledExceptionEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->add_UnhandledException(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IApplication::UnhandledException(auto_revoke_t, winrt::Windows::UI::Xaml::UnhandledExceptionEventHandler const& handler) const { return impl::make_event_revoker(this, UnhandledException(handler)); } template auto consume_Windows_UI_Xaml_IApplication::UnhandledException(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->remove_UnhandledException(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IApplication::Suspending(winrt::Windows::UI::Xaml::SuspendingEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->add_Suspending(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IApplication::Suspending(auto_revoke_t, winrt::Windows::UI::Xaml::SuspendingEventHandler const& handler) const { return impl::make_event_revoker(this, Suspending(handler)); } template auto consume_Windows_UI_Xaml_IApplication::Suspending(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->remove_Suspending(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IApplication::Resuming(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->add_Resuming(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IApplication::Resuming(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Resuming(handler)); } template auto consume_Windows_UI_Xaml_IApplication::Resuming(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->remove_Resuming(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IApplication::Exit() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication)->Exit()); } template auto consume_Windows_UI_Xaml_IApplication2::FocusVisualKind() const { winrt::Windows::UI::Xaml::FocusVisualKind value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->get_FocusVisualKind(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IApplication2::FocusVisualKind(winrt::Windows::UI::Xaml::FocusVisualKind const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->put_FocusVisualKind(static_cast(value))); } template auto consume_Windows_UI_Xaml_IApplication2::RequiresPointerMode() const { winrt::Windows::UI::Xaml::ApplicationRequiresPointerMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->get_RequiresPointerMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IApplication2::RequiresPointerMode(winrt::Windows::UI::Xaml::ApplicationRequiresPointerMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->put_RequiresPointerMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IApplication2::LeavingBackground(winrt::Windows::UI::Xaml::LeavingBackgroundEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->add_LeavingBackground(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IApplication2::LeavingBackground(auto_revoke_t, winrt::Windows::UI::Xaml::LeavingBackgroundEventHandler const& handler) const { return impl::make_event_revoker(this, LeavingBackground(handler)); } template auto consume_Windows_UI_Xaml_IApplication2::LeavingBackground(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->remove_LeavingBackground(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IApplication2::EnteredBackground(winrt::Windows::UI::Xaml::EnteredBackgroundEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->add_EnteredBackground(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IApplication2::EnteredBackground(auto_revoke_t, winrt::Windows::UI::Xaml::EnteredBackgroundEventHandler const& handler) const { return impl::make_event_revoker(this, EnteredBackground(handler)); } template auto consume_Windows_UI_Xaml_IApplication2::EnteredBackground(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication2)->remove_EnteredBackground(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IApplication3::HighContrastAdjustment() const { winrt::Windows::UI::Xaml::ApplicationHighContrastAdjustment value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication3)->get_HighContrastAdjustment(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IApplication3::HighContrastAdjustment(winrt::Windows::UI::Xaml::ApplicationHighContrastAdjustment const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplication3)->put_HighContrastAdjustment(static_cast(value))); } template auto consume_Windows_UI_Xaml_IApplicationFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::Application{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnActivated(winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnLaunched(winrt::Windows::ApplicationModel::Activation::LaunchActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnLaunched(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnFileActivated(winrt::Windows::ApplicationModel::Activation::FileActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnFileActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnSearchActivated(winrt::Windows::ApplicationModel::Activation::SearchActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnSearchActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnShareTargetActivated(winrt::Windows::ApplicationModel::Activation::ShareTargetActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnShareTargetActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnFileOpenPickerActivated(winrt::Windows::ApplicationModel::Activation::FileOpenPickerActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnFileOpenPickerActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnFileSavePickerActivated(winrt::Windows::ApplicationModel::Activation::FileSavePickerActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnFileSavePickerActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnCachedFileUpdaterActivated(winrt::Windows::ApplicationModel::Activation::CachedFileUpdaterActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnCachedFileUpdaterActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides::OnWindowCreated(winrt::Windows::UI::Xaml::WindowCreatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides)->OnWindowCreated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationOverrides2::OnBackgroundActivated(winrt::Windows::ApplicationModel::Activation::BackgroundActivatedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationOverrides2)->OnBackgroundActivated(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IApplicationStatics::Current() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationStatics)->get_Current(&value)); return winrt::Windows::UI::Xaml::Application{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IApplicationStatics::Start(winrt::Windows::UI::Xaml::ApplicationInitializationCallback const& callback) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationStatics)->Start(*(void**)(&callback))); } template auto consume_Windows_UI_Xaml_IApplicationStatics::LoadComponent(winrt::Windows::Foundation::IInspectable const& component, winrt::Windows::Foundation::Uri const& resourceLocator) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationStatics)->LoadComponent(*(void**)(&component), *(void**)(&resourceLocator))); } template auto consume_Windows_UI_Xaml_IApplicationStatics::LoadComponent(winrt::Windows::Foundation::IInspectable const& component, winrt::Windows::Foundation::Uri const& resourceLocator, winrt::Windows::UI::Xaml::Controls::Primitives::ComponentResourceLocation const& componentResourceLocation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IApplicationStatics)->LoadComponentWithResourceLocation(*(void**)(&component), *(void**)(&resourceLocator), static_cast(componentResourceLocation))); } template auto consume_Windows_UI_Xaml_IBindingFailedEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBindingFailedEventArgs)->get_Message(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions::AnimationDesired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions)->get_AnimationDesired(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions::AnimationDesired(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions)->put_AnimationDesired(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions::TargetRect() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions)->get_TargetRect(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions::TargetRect(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions)->put_TargetRect(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::HorizontalAlignmentRatio() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->get_HorizontalAlignmentRatio(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::HorizontalAlignmentRatio(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->put_HorizontalAlignmentRatio(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::VerticalAlignmentRatio() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->get_VerticalAlignmentRatio(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::VerticalAlignmentRatio(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->put_VerticalAlignmentRatio(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::HorizontalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->get_HorizontalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::HorizontalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->put_HorizontalOffset(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::VerticalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->get_VerticalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewOptions2::VerticalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewOptions2)->put_VerticalOffset(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetElement() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_TargetElement(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetElement(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_TargetElement(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::AnimationDesired() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_AnimationDesired(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::AnimationDesired(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_AnimationDesired(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetRect() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_TargetRect(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::TargetRect(winrt::Windows::Foundation::Rect const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_TargetRect(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::HorizontalAlignmentRatio() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_HorizontalAlignmentRatio(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::VerticalAlignmentRatio() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_VerticalAlignmentRatio(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::HorizontalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_HorizontalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::HorizontalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_HorizontalOffset(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::VerticalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_VerticalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::VerticalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_VerticalOffset(value)); } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Xaml_IBringIntoViewRequestedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBringIntoViewRequestedEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Xaml_IBrushTransition::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBrushTransition)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IBrushTransition::Duration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBrushTransition)->put_Duration(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IBrushTransitionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IBrushTransitionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::BrushTransition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_AltHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_AltHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_AltLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_AltLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMedium() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_AltMedium(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMedium(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_AltMedium(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMediumHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_AltMediumHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMediumHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_AltMediumHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMediumLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_AltMediumLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::AltMediumLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_AltMediumLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_BaseHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_BaseHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_BaseLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_BaseLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMedium() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_BaseMedium(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMedium(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_BaseMedium(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMediumHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_BaseMediumHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMediumHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_BaseMediumHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMediumLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_BaseMediumLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::BaseMediumLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_BaseMediumLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeAltLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeAltLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeAltLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeAltLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeBlackHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeBlackHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeBlackLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeBlackLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackMediumLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeBlackMediumLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackMediumLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeBlackMediumLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackMedium() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeBlackMedium(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeBlackMedium(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeBlackMedium(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeDisabledHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeDisabledHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeDisabledHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeDisabledHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeDisabledLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeDisabledLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeDisabledLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeDisabledLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeHigh() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeHigh(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeHigh(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeHigh(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeMedium() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeMedium(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeMedium(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeMedium(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeMediumLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeMediumLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeMediumLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeMediumLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeWhite() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeWhite(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeWhite(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeWhite(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeGray() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ChromeGray(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ChromeGray(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ChromeGray(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ListLow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ListLow(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ListLow(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ListLow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ListMedium() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ListMedium(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ListMedium(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ListMedium(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ErrorText() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_ErrorText(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::ErrorText(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_ErrorText(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResources::Accent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->get_Accent(&value)); return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IColorPaletteResources::Accent(winrt::Windows::Foundation::IReference const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResources)->put_Accent(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IColorPaletteResourcesFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IColorPaletteResourcesFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::ColorPaletteResources{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ICornerRadiusHelperStatics::FromRadii(double topLeft, double topRight, double bottomRight, double bottomLeft) const { winrt::Windows::UI::Xaml::CornerRadius result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ICornerRadiusHelperStatics)->FromRadii(topLeft, topRight, bottomRight, bottomLeft, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_ICornerRadiusHelperStatics::FromUniformRadius(double uniformRadius) const { winrt::Windows::UI::Xaml::CornerRadius result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ICornerRadiusHelperStatics)->FromUniformRadius(uniformRadius, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IDataContextChangedEventArgs::NewValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataContextChangedEventArgs)->get_NewValue(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataContextChangedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataContextChangedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDataContextChangedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataContextChangedEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Xaml_IDataTemplate::LoadContent() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplate)->LoadContent(&result)); return winrt::Windows::UI::Xaml::DependencyObject{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateExtension::ResetTemplate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateExtension)->ResetTemplate()); } template auto consume_Windows_UI_Xaml_IDataTemplateExtension::ProcessBinding(uint32_t phase) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateExtension)->ProcessBinding(phase, &result)); return result; } template auto consume_Windows_UI_Xaml_IDataTemplateExtension::ProcessBindings(winrt::Windows::UI::Xaml::Controls::ContainerContentChangingEventArgs const& arg) const { int32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateExtension)->ProcessBindings(*(void**)(&arg), &result)); return result; } template auto consume_Windows_UI_Xaml_IDataTemplateFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateKey::DataType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateKey)->get_DataType(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateKey::DataType(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateKey)->put_DataType(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IDataTemplateKeyFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateKeyFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DataTemplateKey{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateKeyFactory::CreateInstanceWithType(winrt::Windows::Foundation::IInspectable const& dataType, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateKeyFactory)->CreateInstanceWithType(*(void**)(&dataType), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DataTemplateKey{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateStatics2::ExtensionInstanceProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateStatics2)->get_ExtensionInstanceProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateStatics2::GetExtensionInstance(winrt::Windows::UI::Xaml::FrameworkElement const& element) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateStatics2)->GetExtensionInstance(*(void**)(&element), &result)); return winrt::Windows::UI::Xaml::IDataTemplateExtension{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDataTemplateStatics2::SetExtensionInstance(winrt::Windows::UI::Xaml::FrameworkElement const& element, winrt::Windows::UI::Xaml::IDataTemplateExtension const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDataTemplateStatics2)->SetExtensionInstance(*(void**)(&element), *(void**)(&value))); } template auto consume_Windows_UI_Xaml_IDebugSettings::EnableFrameRateCounter() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->get_EnableFrameRateCounter(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings::EnableFrameRateCounter(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->put_EnableFrameRateCounter(value)); } template auto consume_Windows_UI_Xaml_IDebugSettings::IsBindingTracingEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->get_IsBindingTracingEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings::IsBindingTracingEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->put_IsBindingTracingEnabled(value)); } template auto consume_Windows_UI_Xaml_IDebugSettings::IsOverdrawHeatMapEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->get_IsOverdrawHeatMapEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings::IsOverdrawHeatMapEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->put_IsOverdrawHeatMapEnabled(value)); } template auto consume_Windows_UI_Xaml_IDebugSettings::BindingFailed(winrt::Windows::UI::Xaml::BindingFailedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->add_BindingFailed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IDebugSettings::BindingFailed(auto_revoke_t, winrt::Windows::UI::Xaml::BindingFailedEventHandler const& handler) const { return impl::make_event_revoker(this, BindingFailed(handler)); } template auto consume_Windows_UI_Xaml_IDebugSettings::BindingFailed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings)->remove_BindingFailed(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IDebugSettings2::EnableRedrawRegions() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings2)->get_EnableRedrawRegions(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings2::EnableRedrawRegions(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings2)->put_EnableRedrawRegions(value)); } template auto consume_Windows_UI_Xaml_IDebugSettings3::IsTextPerformanceVisualizationEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings3)->get_IsTextPerformanceVisualizationEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings3::IsTextPerformanceVisualizationEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings3)->put_IsTextPerformanceVisualizationEnabled(value)); } template auto consume_Windows_UI_Xaml_IDebugSettings4::FailFastOnErrors() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings4)->get_FailFastOnErrors(&value)); return value; } template auto consume_Windows_UI_Xaml_IDebugSettings4::FailFastOnErrors(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDebugSettings4)->put_FailFastOnErrors(value)); } template auto consume_Windows_UI_Xaml_IDependencyObject::GetValue(winrt::Windows::UI::Xaml::DependencyProperty const& dp) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->GetValue(*(void**)(&dp), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyObject::SetValue(winrt::Windows::UI::Xaml::DependencyProperty const& dp, winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->SetValue(*(void**)(&dp), *(void**)(&value))); } template auto consume_Windows_UI_Xaml_IDependencyObject::ClearValue(winrt::Windows::UI::Xaml::DependencyProperty const& dp) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->ClearValue(*(void**)(&dp))); } template auto consume_Windows_UI_Xaml_IDependencyObject::ReadLocalValue(winrt::Windows::UI::Xaml::DependencyProperty const& dp) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->ReadLocalValue(*(void**)(&dp), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyObject::GetAnimationBaseValue(winrt::Windows::UI::Xaml::DependencyProperty const& dp) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->GetAnimationBaseValue(*(void**)(&dp), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyObject::Dispatcher() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject)->get_Dispatcher(&value)); return winrt::Windows::UI::Core::CoreDispatcher{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyObject2::RegisterPropertyChangedCallback(winrt::Windows::UI::Xaml::DependencyProperty const& dp, winrt::Windows::UI::Xaml::DependencyPropertyChangedCallback const& callback) const { int64_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject2)->RegisterPropertyChangedCallback(*(void**)(&dp), *(void**)(&callback), &result)); return result; } template auto consume_Windows_UI_Xaml_IDependencyObject2::UnregisterPropertyChangedCallback(winrt::Windows::UI::Xaml::DependencyProperty const& dp, int64_t token) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObject2)->UnregisterPropertyChangedCallback(*(void**)(&dp), token)); } template auto consume_Windows_UI_Xaml_IDependencyObjectCollectionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObjectCollectionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DependencyObjectCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyObjectFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyObjectFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyProperty::GetMetadata(winrt::Windows::UI::Xaml::Interop::TypeName const& forType) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyProperty)->GetMetadata(impl::bind_in(forType), &result)); return winrt::Windows::UI::Xaml::PropertyMetadata{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyChangedEventArgs::Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyChangedEventArgs)->get_Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyChangedEventArgs::OldValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyChangedEventArgs)->get_OldValue(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyChangedEventArgs::NewValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyChangedEventArgs)->get_NewValue(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyStatics::UnsetValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyStatics)->get_UnsetValue(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyStatics::Register(param::hstring const& name, winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, winrt::Windows::UI::Xaml::PropertyMetadata const& typeMetadata) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyStatics)->Register(*(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), *(void**)(&typeMetadata), &result)); return winrt::Windows::UI::Xaml::DependencyProperty{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDependencyPropertyStatics::RegisterAttached(param::hstring const& name, winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, winrt::Windows::UI::Xaml::PropertyMetadata const& defaultMetadata) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDependencyPropertyStatics)->RegisterAttached(*(void**)(&name), impl::bind_in(propertyType), impl::bind_in(ownerType), *(void**)(&defaultMetadata), &result)); return winrt::Windows::UI::Xaml::DependencyProperty{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Interval() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->get_Interval(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Interval(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->put_Interval(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IDispatcherTimer::IsEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->get_IsEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Tick(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->add_Tick(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Tick(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Tick(handler)); } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Tick(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->remove_Tick(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Start() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->Start()); } template auto consume_Windows_UI_Xaml_IDispatcherTimer::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimer)->Stop()); } template auto consume_Windows_UI_Xaml_IDispatcherTimerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDispatcherTimerFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::DispatcherTimer{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Xaml_IDragEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Xaml_IDragEventArgs::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs)->get_Data(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragEventArgs::Data(winrt::Windows::ApplicationModel::DataTransfer::DataPackage const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs)->put_Data(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IDragEventArgs::GetPosition(winrt::Windows::UI::Xaml::UIElement const& relativeTo) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs)->GetPosition(*(void**)(&relativeTo), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IDragEventArgs2::DataView() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->get_DataView(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DataPackageView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragEventArgs2::DragUIOverride() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->get_DragUIOverride(&value)); return winrt::Windows::UI::Xaml::DragUIOverride{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragEventArgs2::Modifiers() const { winrt::Windows::ApplicationModel::DataTransfer::DragDrop::DragDropModifiers value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->get_Modifiers(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IDragEventArgs2::AcceptedOperation() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->get_AcceptedOperation(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IDragEventArgs2::AcceptedOperation(winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->put_AcceptedOperation(static_cast(value))); } template auto consume_Windows_UI_Xaml_IDragEventArgs2::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs2)->GetDeferral(&result)); return winrt::Windows::UI::Xaml::DragOperationDeferral{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragEventArgs3::AllowedOperations() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragEventArgs3)->get_AllowedOperations(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IDragOperationDeferral::Complete() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragOperationDeferral)->Complete()); } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::Cancel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->get_Cancel(&value)); return value; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::Cancel(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->put_Cancel(value)); } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->get_Data(&value)); return winrt::Windows::ApplicationModel::DataTransfer::DataPackage{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::DragUI() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->get_DragUI(&value)); return winrt::Windows::UI::Xaml::DragUI{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::GetDeferral() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->GetDeferral(&result)); return winrt::Windows::UI::Xaml::DragOperationDeferral{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs::GetPosition(winrt::Windows::UI::Xaml::UIElement const& relativeTo) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs)->GetPosition(*(void**)(&relativeTo), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs2::AllowedOperations() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs2)->get_AllowedOperations(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IDragStartingEventArgs2::AllowedOperations(winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragStartingEventArgs2)->put_AllowedOperations(static_cast(value))); } template auto consume_Windows_UI_Xaml_IDragUI::SetContentFromBitmapImage(winrt::Windows::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUI)->SetContentFromBitmapImage(*(void**)(&bitmapImage))); } template auto consume_Windows_UI_Xaml_IDragUI::SetContentFromBitmapImage(winrt::Windows::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUI)->SetContentFromBitmapImageWithAnchorPoint(*(void**)(&bitmapImage), impl::bind_in(anchorPoint))); } template auto consume_Windows_UI_Xaml_IDragUI::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUI)->SetContentFromSoftwareBitmap(*(void**)(&softwareBitmap))); } template auto consume_Windows_UI_Xaml_IDragUI::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUI)->SetContentFromSoftwareBitmapWithAnchorPoint(*(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); } template auto consume_Windows_UI_Xaml_IDragUI::SetContentFromDataPackage() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUI)->SetContentFromDataPackage()); } template auto consume_Windows_UI_Xaml_IDragUIOverride::Caption() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->get_Caption(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IDragUIOverride::Caption(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->put_Caption(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsContentVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->get_IsContentVisible(&value)); return value; } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsContentVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->put_IsContentVisible(value)); } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsCaptionVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->get_IsCaptionVisible(&value)); return value; } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsCaptionVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->put_IsCaptionVisible(value)); } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsGlyphVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->get_IsGlyphVisible(&value)); return value; } template auto consume_Windows_UI_Xaml_IDragUIOverride::IsGlyphVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->put_IsGlyphVisible(value)); } template auto consume_Windows_UI_Xaml_IDragUIOverride::Clear() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->Clear()); } template auto consume_Windows_UI_Xaml_IDragUIOverride::SetContentFromBitmapImage(winrt::Windows::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->SetContentFromBitmapImage(*(void**)(&bitmapImage))); } template auto consume_Windows_UI_Xaml_IDragUIOverride::SetContentFromBitmapImage(winrt::Windows::UI::Xaml::Media::Imaging::BitmapImage const& bitmapImage, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->SetContentFromBitmapImageWithAnchorPoint(*(void**)(&bitmapImage), impl::bind_in(anchorPoint))); } template auto consume_Windows_UI_Xaml_IDragUIOverride::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->SetContentFromSoftwareBitmap(*(void**)(&softwareBitmap))); } template auto consume_Windows_UI_Xaml_IDragUIOverride::SetContentFromSoftwareBitmap(winrt::Windows::Graphics::Imaging::SoftwareBitmap const& softwareBitmap, winrt::Windows::Foundation::Point const& anchorPoint) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDragUIOverride)->SetContentFromSoftwareBitmapWithAnchorPoint(*(void**)(&softwareBitmap), impl::bind_in(anchorPoint))); } template auto consume_Windows_UI_Xaml_IDropCompletedEventArgs::DropResult() const { winrt::Windows::ApplicationModel::DataTransfer::DataPackageOperation value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDropCompletedEventArgs)->get_DropResult(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Automatic() const { winrt::Windows::UI::Xaml::Duration value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->get_Automatic(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Forever() const { winrt::Windows::UI::Xaml::Duration value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->get_Forever(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Compare(winrt::Windows::UI::Xaml::Duration const& duration1, winrt::Windows::UI::Xaml::Duration const& duration2) const { int32_t result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->Compare(impl::bind_in(duration1), impl::bind_in(duration2), &result)); return result; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::FromTimeSpan(winrt::Windows::Foundation::TimeSpan const& timeSpan) const { winrt::Windows::UI::Xaml::Duration result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->FromTimeSpan(impl::bind_in(timeSpan), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::GetHasTimeSpan(winrt::Windows::UI::Xaml::Duration const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->GetHasTimeSpan(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Add(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& duration) const { winrt::Windows::UI::Xaml::Duration result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->Add(impl::bind_in(target), impl::bind_in(duration), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Equals(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->Equals(impl::bind_in(target), impl::bind_in(value), &result)); return result; } template auto consume_Windows_UI_Xaml_IDurationHelperStatics::Subtract(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& duration) const { winrt::Windows::UI::Xaml::Duration result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IDurationHelperStatics)->Subtract(impl::bind_in(target), impl::bind_in(duration), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IEffectiveViewportChangedEventArgs::EffectiveViewport() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEffectiveViewportChangedEventArgs)->get_EffectiveViewport(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IEffectiveViewportChangedEventArgs::MaxViewport() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEffectiveViewportChangedEventArgs)->get_MaxViewport(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IEffectiveViewportChangedEventArgs::BringIntoViewDistanceX() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEffectiveViewportChangedEventArgs)->get_BringIntoViewDistanceX(&value)); return value; } template auto consume_Windows_UI_Xaml_IEffectiveViewportChangedEventArgs::BringIntoViewDistanceY() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEffectiveViewportChangedEventArgs)->get_BringIntoViewDistanceY(&value)); return value; } template auto consume_Windows_UI_Xaml_IElementFactory::GetElement(winrt::Windows::UI::Xaml::ElementFactoryGetArgs const& args) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactory)->GetElement(*(void**)(&args), &result)); return winrt::Windows::UI::Xaml::UIElement{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactory::RecycleElement(winrt::Windows::UI::Xaml::ElementFactoryRecycleArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactory)->RecycleElement(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IElementFactoryGetArgs::Data() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryGetArgs)->get_Data(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactoryGetArgs::Data(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryGetArgs)->put_Data(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IElementFactoryGetArgs::Parent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryGetArgs)->get_Parent(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactoryGetArgs::Parent(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryGetArgs)->put_Parent(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IElementFactoryGetArgsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryGetArgsFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::ElementFactoryGetArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactoryRecycleArgs::Element() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryRecycleArgs)->get_Element(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactoryRecycleArgs::Element(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryRecycleArgs)->put_Element(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IElementFactoryRecycleArgs::Parent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryRecycleArgs)->get_Parent(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementFactoryRecycleArgs::Parent(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryRecycleArgs)->put_Parent(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IElementFactoryRecycleArgsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementFactoryRecycleArgsFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::ElementFactoryRecycleArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics::Volume() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics)->get_Volume(&value)); return value; } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics::Volume(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics)->put_Volume(value)); } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics::State() const { winrt::Windows::UI::Xaml::ElementSoundPlayerState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics::State(winrt::Windows::UI::Xaml::ElementSoundPlayerState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics)->put_State(static_cast(value))); } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics::Play(winrt::Windows::UI::Xaml::ElementSoundKind const& sound) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics)->Play(static_cast(sound))); } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics2::SpatialAudioMode() const { winrt::Windows::UI::Xaml::ElementSpatialAudioMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics2)->get_SpatialAudioMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IElementSoundPlayerStatics2::SpatialAudioMode(winrt::Windows::UI::Xaml::ElementSpatialAudioMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IElementSoundPlayerStatics2)->put_SpatialAudioMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IEventTrigger::RoutedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEventTrigger)->get_RoutedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IEventTrigger::RoutedEvent(winrt::Windows::UI::Xaml::RoutedEvent const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEventTrigger)->put_RoutedEvent(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IEventTrigger::Actions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IEventTrigger)->get_Actions(&value)); return winrt::Windows::UI::Xaml::TriggerActionCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IExceptionRoutedEventArgs::ErrorMessage() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IExceptionRoutedEventArgs)->get_ErrorMessage(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Triggers() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Triggers(&value)); return winrt::Windows::UI::Xaml::TriggerCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Resources() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Resources(&value)); return winrt::Windows::UI::Xaml::ResourceDictionary{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Resources(winrt::Windows::UI::Xaml::ResourceDictionary const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Resources(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Tag() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Tag(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Tag(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Tag(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Language() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Language(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Language(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Language(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::ActualWidth() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_ActualWidth(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::ActualHeight() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_ActualHeight(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Width() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Width(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Width(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Width(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Height() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Height(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Height(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Height(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::MinWidth() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_MinWidth(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::MinWidth(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_MinWidth(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::MaxWidth() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_MaxWidth(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::MaxWidth(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_MaxWidth(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::MinHeight() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_MinHeight(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::MinHeight(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_MinHeight(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::MaxHeight() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_MaxHeight(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::MaxHeight(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_MaxHeight(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::HorizontalAlignment() const { winrt::Windows::UI::Xaml::HorizontalAlignment value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_HorizontalAlignment(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::HorizontalAlignment(winrt::Windows::UI::Xaml::HorizontalAlignment const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_HorizontalAlignment(static_cast(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::VerticalAlignment() const { winrt::Windows::UI::Xaml::VerticalAlignment value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_VerticalAlignment(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::VerticalAlignment(winrt::Windows::UI::Xaml::VerticalAlignment const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_VerticalAlignment(static_cast(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Margin() const { winrt::Windows::UI::Xaml::Thickness value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Margin(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Margin(winrt::Windows::UI::Xaml::Thickness const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Margin(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Name(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Name(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::BaseUri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_BaseUri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::DataContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_DataContext(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::DataContext(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_DataContext(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Style() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Style(&value)); return winrt::Windows::UI::Xaml::Style{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Style(winrt::Windows::UI::Xaml::Style const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_Style(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Parent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_Parent(&value)); return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::FlowDirection() const { winrt::Windows::UI::Xaml::FlowDirection value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->get_FlowDirection(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement::FlowDirection(winrt::Windows::UI::Xaml::FlowDirection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->put_FlowDirection(static_cast(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Loaded(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->add_Loaded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Loaded(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Loaded(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Loaded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->remove_Loaded(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Unloaded(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->add_Unloaded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement::Unloaded(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Unloaded(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::Unloaded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->remove_Unloaded(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::SizeChanged(winrt::Windows::UI::Xaml::SizeChangedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->add_SizeChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement::SizeChanged(auto_revoke_t, winrt::Windows::UI::Xaml::SizeChangedEventHandler const& handler) const { return impl::make_event_revoker(this, SizeChanged(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::SizeChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->remove_SizeChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::LayoutUpdated(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->add_LayoutUpdated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement::LayoutUpdated(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, LayoutUpdated(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::LayoutUpdated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->remove_LayoutUpdated(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement::FindName(param::hstring const& name) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->FindName(*(void**)(&name), &result)); return winrt::Windows::Foundation::IInspectable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement::SetBinding(winrt::Windows::UI::Xaml::DependencyProperty const& dp, winrt::Windows::UI::Xaml::Data::BindingBase const& binding) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement)->SetBinding(*(void**)(&dp), *(void**)(&binding))); } template auto consume_Windows_UI_Xaml_IFrameworkElement2::RequestedTheme() const { winrt::Windows::UI::Xaml::ElementTheme value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement2)->get_RequestedTheme(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement2::RequestedTheme(winrt::Windows::UI::Xaml::ElementTheme const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement2)->put_RequestedTheme(static_cast(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement2::DataContextChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement2)->add_DataContextChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement2::DataContextChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DataContextChanged(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement2::DataContextChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement2)->remove_DataContextChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement2::GetBindingExpression(winrt::Windows::UI::Xaml::DependencyProperty const& dp) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement2)->GetBindingExpression(*(void**)(&dp), &result)); return winrt::Windows::UI::Xaml::Data::BindingExpression{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement3::Loading(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement3)->add_Loading(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement3::Loading(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Loading(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement3::Loading(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement3)->remove_Loading(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::AllowFocusOnInteraction() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_AllowFocusOnInteraction(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::AllowFocusOnInteraction(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_AllowFocusOnInteraction(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_FocusVisualMargin(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualMargin(winrt::Windows::UI::Xaml::Thickness const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_FocusVisualMargin(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualSecondaryThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_FocusVisualSecondaryThickness(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualSecondaryThickness(winrt::Windows::UI::Xaml::Thickness const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_FocusVisualSecondaryThickness(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualPrimaryThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_FocusVisualPrimaryThickness(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualPrimaryThickness(winrt::Windows::UI::Xaml::Thickness const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_FocusVisualPrimaryThickness(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualSecondaryBrush() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_FocusVisualSecondaryBrush(&value)); return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualSecondaryBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_FocusVisualSecondaryBrush(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualPrimaryBrush() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_FocusVisualPrimaryBrush(&value)); return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::FocusVisualPrimaryBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_FocusVisualPrimaryBrush(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IFrameworkElement4::AllowFocusWhenDisabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->get_AllowFocusWhenDisabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement4::AllowFocusWhenDisabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement4)->put_AllowFocusWhenDisabled(value)); } template auto consume_Windows_UI_Xaml_IFrameworkElement6::ActualTheme() const { winrt::Windows::UI::Xaml::ElementTheme value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement6)->get_ActualTheme(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement6::ActualThemeChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement6)->add_ActualThemeChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement6::ActualThemeChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ActualThemeChanged(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement6::ActualThemeChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement6)->remove_ActualThemeChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElement7::IsLoaded() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement7)->get_IsLoaded(&value)); return value; } template auto consume_Windows_UI_Xaml_IFrameworkElement7::EffectiveViewportChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement7)->add_EffectiveViewportChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IFrameworkElement7::EffectiveViewportChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, EffectiveViewportChanged(handler)); } template auto consume_Windows_UI_Xaml_IFrameworkElement7::EffectiveViewportChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElement7)->remove_EffectiveViewportChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IFrameworkElementFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::FrameworkElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementOverrides::MeasureOverride(winrt::Windows::Foundation::Size const& availableSize) const { winrt::Windows::Foundation::Size result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementOverrides)->MeasureOverride(impl::bind_in(availableSize), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IFrameworkElementOverrides::ArrangeOverride(winrt::Windows::Foundation::Size const& finalSize) const { winrt::Windows::Foundation::Size result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementOverrides)->ArrangeOverride(impl::bind_in(finalSize), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IFrameworkElementOverrides::OnApplyTemplate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementOverrides)->OnApplyTemplate()); } template auto consume_Windows_UI_Xaml_IFrameworkElementOverrides2::GoToElementStateCore(param::hstring const& stateName, bool useTransitions) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementOverrides2)->GoToElementStateCore(*(void**)(&stateName), useTransitions, &result)); return result; } template auto consume_Windows_UI_Xaml_IFrameworkElementProtected7::InvalidateViewport() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementProtected7)->InvalidateViewport()); } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::TagProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_TagProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::LanguageProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_LanguageProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::ActualWidthProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_ActualWidthProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::ActualHeightProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_ActualHeightProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::WidthProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_WidthProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::HeightProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_HeightProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::MinWidthProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_MinWidthProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::MaxWidthProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_MaxWidthProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::MinHeightProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_MinHeightProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::MaxHeightProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_MaxHeightProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::HorizontalAlignmentProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_HorizontalAlignmentProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::VerticalAlignmentProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_VerticalAlignmentProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::MarginProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_MarginProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::NameProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_NameProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::DataContextProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_DataContextProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::StyleProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_StyleProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics::FlowDirectionProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics)->get_FlowDirectionProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics2::RequestedThemeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics2)->get_RequestedThemeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::AllowFocusOnInteractionProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_AllowFocusOnInteractionProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::FocusVisualMarginProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_FocusVisualMarginProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::FocusVisualSecondaryThicknessProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_FocusVisualSecondaryThicknessProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::FocusVisualPrimaryThicknessProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_FocusVisualPrimaryThicknessProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::FocusVisualSecondaryBrushProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_FocusVisualSecondaryBrushProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::FocusVisualPrimaryBrushProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_FocusVisualPrimaryBrushProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics4::AllowFocusWhenDisabledProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics4)->get_AllowFocusWhenDisabledProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics5::DeferTree(winrt::Windows::UI::Xaml::DependencyObject const& element) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics5)->DeferTree(*(void**)(&element))); } template auto consume_Windows_UI_Xaml_IFrameworkElementStatics6::ActualThemeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkElementStatics6)->get_ActualThemeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IFrameworkTemplateFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IFrameworkTemplateFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::FrameworkTemplate{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::Auto() const { winrt::Windows::UI::Xaml::GridLength value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->get_Auto(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::FromPixels(double pixels) const { winrt::Windows::UI::Xaml::GridLength result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->FromPixels(pixels, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::FromValueAndType(double value, winrt::Windows::UI::Xaml::GridUnitType const& type) const { winrt::Windows::UI::Xaml::GridLength result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->FromValueAndType(value, static_cast(type), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::GetIsAbsolute(winrt::Windows::UI::Xaml::GridLength const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->GetIsAbsolute(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::GetIsAuto(winrt::Windows::UI::Xaml::GridLength const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->GetIsAuto(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::GetIsStar(winrt::Windows::UI::Xaml::GridLength const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->GetIsStar(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IGridLengthHelperStatics::Equals(winrt::Windows::UI::Xaml::GridLength const& target, winrt::Windows::UI::Xaml::GridLength const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IGridLengthHelperStatics)->Equals(impl::bind_in(target), impl::bind_in(value), &result)); return result; } template auto consume_Windows_UI_Xaml_IMediaFailedRoutedEventArgs::ErrorTrace() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IMediaFailedRoutedEventArgs)->get_ErrorTrace(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPointHelperStatics::FromCoordinates(float x, float y) const { winrt::Windows::Foundation::Point result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPointHelperStatics)->FromCoordinates(x, y, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IPropertyMetadata::DefaultValue() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadata)->get_DefaultValue(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadata::CreateDefaultValueCallback() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadata)->get_CreateDefaultValueCallback(&value)); return winrt::Windows::UI::Xaml::CreateDefaultValueCallback{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataFactory::CreateInstanceWithDefaultValue(winrt::Windows::Foundation::IInspectable const& defaultValue, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataFactory)->CreateInstanceWithDefaultValue(*(void**)(&defaultValue), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::PropertyMetadata{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataFactory::CreateInstanceWithDefaultValueAndCallback(winrt::Windows::Foundation::IInspectable const& defaultValue, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataFactory)->CreateInstanceWithDefaultValueAndCallback(*(void**)(&defaultValue), *(void**)(&propertyChangedCallback), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::PropertyMetadata{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataStatics::Create(winrt::Windows::Foundation::IInspectable const& defaultValue) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataStatics)->CreateWithDefaultValue(*(void**)(&defaultValue), &result)); return winrt::Windows::UI::Xaml::PropertyMetadata{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataStatics::Create(winrt::Windows::Foundation::IInspectable const& defaultValue, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataStatics)->CreateWithDefaultValueAndCallback(*(void**)(&defaultValue), *(void**)(&propertyChangedCallback), &result)); return winrt::Windows::UI::Xaml::PropertyMetadata{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataStatics::Create(winrt::Windows::UI::Xaml::CreateDefaultValueCallback const& createDefaultValueCallback) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataStatics)->CreateWithFactory(*(void**)(&createDefaultValueCallback), &result)); return winrt::Windows::UI::Xaml::PropertyMetadata{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyMetadataStatics::Create(winrt::Windows::UI::Xaml::CreateDefaultValueCallback const& createDefaultValueCallback, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyMetadataStatics)->CreateWithFactoryAndCallback(*(void**)(&createDefaultValueCallback), *(void**)(&propertyChangedCallback), &result)); return winrt::Windows::UI::Xaml::PropertyMetadata{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyPath::Path() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyPath)->get_Path(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IPropertyPathFactory::CreateInstance(param::hstring const& path) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IPropertyPathFactory)->CreateInstance(*(void**)(&path), &value)); return winrt::Windows::UI::Xaml::PropertyPath{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Empty() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->get_Empty(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::FromCoordinatesAndDimensions(float x, float y, float width, float height) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->FromCoordinatesAndDimensions(x, y, width, height, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::FromPoints(winrt::Windows::Foundation::Point const& point1, winrt::Windows::Foundation::Point const& point2) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->FromPoints(impl::bind_in(point1), impl::bind_in(point2), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::FromLocationAndSize(winrt::Windows::Foundation::Point const& location, winrt::Windows::Foundation::Size const& size) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->FromLocationAndSize(impl::bind_in(location), impl::bind_in(size), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::GetIsEmpty(winrt::Windows::Foundation::Rect const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->GetIsEmpty(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::GetBottom(winrt::Windows::Foundation::Rect const& target) const { float result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->GetBottom(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::GetLeft(winrt::Windows::Foundation::Rect const& target) const { float result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->GetLeft(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::GetRight(winrt::Windows::Foundation::Rect const& target) const { float result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->GetRight(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::GetTop(winrt::Windows::Foundation::Rect const& target) const { float result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->GetTop(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Contains(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Point const& point) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->Contains(impl::bind_in(target), impl::bind_in(point), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Equals(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->Equals(impl::bind_in(target), impl::bind_in(value), &result)); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Intersect(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& rect) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->Intersect(impl::bind_in(target), impl::bind_in(rect), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Union(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Point const& point) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->UnionWithPoint(impl::bind_in(target), impl::bind_in(point), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IRectHelperStatics::Union(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& rect) const { winrt::Windows::Foundation::Rect result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRectHelperStatics)->UnionWithRect(impl::bind_in(target), impl::bind_in(rect), put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IResourceDictionary::Source() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IResourceDictionary)->get_Source(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IResourceDictionary::Source(winrt::Windows::Foundation::Uri const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IResourceDictionary)->put_Source(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IResourceDictionary::MergedDictionaries() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IResourceDictionary)->get_MergedDictionaries(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IResourceDictionary::ThemeDictionaries() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IResourceDictionary)->get_ThemeDictionaries(&value)); return winrt::Windows::Foundation::Collections::IMap{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IResourceDictionaryFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IResourceDictionaryFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::ResourceDictionary{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IRoutedEventArgs::OriginalSource() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRoutedEventArgs)->get_OriginalSource(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IRoutedEventArgsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IRoutedEventArgsFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::RoutedEventArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IScalarTransition::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IScalarTransition)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IScalarTransition::Duration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IScalarTransition)->put_Duration(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IScalarTransitionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IScalarTransitionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::ScalarTransition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ISetter::Property() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter)->get_Property(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ISetter::Property(winrt::Windows::UI::Xaml::DependencyProperty const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter)->put_Property(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_ISetter::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter)->get_Value(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ISetter::Value(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter)->put_Value(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_ISetter2::Target() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter2)->get_Target(&value)); return winrt::Windows::UI::Xaml::TargetPropertyPath{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ISetter2::Target(winrt::Windows::UI::Xaml::TargetPropertyPath const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetter2)->put_Target(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_ISetterBase::IsSealed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetterBase)->get_IsSealed(&value)); return value; } template auto consume_Windows_UI_Xaml_ISetterBaseCollection::IsSealed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetterBaseCollection)->get_IsSealed(&value)); return value; } template auto consume_Windows_UI_Xaml_ISetterFactory::CreateInstance(winrt::Windows::UI::Xaml::DependencyProperty const& targetProperty, winrt::Windows::Foundation::IInspectable const& value) const { void* instance{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISetterFactory)->CreateInstance(*(void**)(&targetProperty), *(void**)(&value), &instance)); return winrt::Windows::UI::Xaml::Setter{ instance, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ISizeChangedEventArgs::PreviousSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeChangedEventArgs)->get_PreviousSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_ISizeChangedEventArgs::NewSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeChangedEventArgs)->get_NewSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_ISizeHelperStatics::Empty() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeHelperStatics)->get_Empty(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_ISizeHelperStatics::FromDimensions(float width, float height) const { winrt::Windows::Foundation::Size result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeHelperStatics)->FromDimensions(width, height, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_ISizeHelperStatics::GetIsEmpty(winrt::Windows::Foundation::Size const& target) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeHelperStatics)->GetIsEmpty(impl::bind_in(target), &result)); return result; } template auto consume_Windows_UI_Xaml_ISizeHelperStatics::Equals(winrt::Windows::Foundation::Size const& target, winrt::Windows::Foundation::Size const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ISizeHelperStatics)->Equals(impl::bind_in(target), impl::bind_in(value), &result)); return result; } template auto consume_Windows_UI_Xaml_IStateTrigger::IsActive() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStateTrigger)->get_IsActive(&value)); return value; } template auto consume_Windows_UI_Xaml_IStateTrigger::IsActive(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStateTrigger)->put_IsActive(value)); } template auto consume_Windows_UI_Xaml_IStateTriggerBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStateTriggerBaseFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::StateTriggerBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IStateTriggerBaseProtected::SetActive(bool IsActive) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStateTriggerBaseProtected)->SetActive(IsActive)); } template auto consume_Windows_UI_Xaml_IStateTriggerStatics::IsActiveProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStateTriggerStatics)->get_IsActiveProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IStyle::IsSealed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->get_IsSealed(&value)); return value; } template auto consume_Windows_UI_Xaml_IStyle::Setters() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->get_Setters(&value)); return winrt::Windows::UI::Xaml::SetterBaseCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IStyle::TargetType() const { winrt::Windows::UI::Xaml::Interop::TypeName value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->get_TargetType(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IStyle::TargetType(winrt::Windows::UI::Xaml::Interop::TypeName const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->put_TargetType(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IStyle::BasedOn() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->get_BasedOn(&value)); return winrt::Windows::UI::Xaml::Style{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IStyle::BasedOn(winrt::Windows::UI::Xaml::Style const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->put_BasedOn(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IStyle::Seal() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyle)->Seal()); } template auto consume_Windows_UI_Xaml_IStyleFactory::CreateInstance(winrt::Windows::UI::Xaml::Interop::TypeName const& targetType) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IStyleFactory)->CreateInstance(impl::bind_in(targetType), &value)); return winrt::Windows::UI::Xaml::Style{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ITargetPropertyPath::Path() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ITargetPropertyPath)->get_Path(&value)); return winrt::Windows::UI::Xaml::PropertyPath{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ITargetPropertyPath::Path(winrt::Windows::UI::Xaml::PropertyPath const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ITargetPropertyPath)->put_Path(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_ITargetPropertyPath::Target() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ITargetPropertyPath)->get_Target(&value)); return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_ITargetPropertyPath::Target(winrt::Windows::Foundation::IInspectable const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ITargetPropertyPath)->put_Target(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_ITargetPropertyPathFactory::CreateInstance(winrt::Windows::UI::Xaml::DependencyProperty const& targetProperty) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::ITargetPropertyPathFactory)->CreateInstance(*(void**)(&targetProperty), &value)); return winrt::Windows::UI::Xaml::TargetPropertyPath{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IThicknessHelperStatics::FromLengths(double left, double top, double right, double bottom) const { winrt::Windows::UI::Xaml::Thickness result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IThicknessHelperStatics)->FromLengths(left, top, right, bottom, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IThicknessHelperStatics::FromUniformLength(double uniformLength) const { winrt::Windows::UI::Xaml::Thickness result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IThicknessHelperStatics)->FromUniformLength(uniformLength, put_abi(result))); return result; } template auto consume_Windows_UI_Xaml_IUIElement::DesiredSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_DesiredSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement::AllowDrop() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_AllowDrop(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::AllowDrop(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_AllowDrop(value)); } template auto consume_Windows_UI_Xaml_IUIElement::Opacity() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_Opacity(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::Opacity(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_Opacity(value)); } template auto consume_Windows_UI_Xaml_IUIElement::Clip() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_Clip(&value)); return winrt::Windows::UI::Xaml::Media::RectangleGeometry{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::Clip(winrt::Windows::UI::Xaml::Media::RectangleGeometry const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_Clip(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::RenderTransform() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_RenderTransform(&value)); return winrt::Windows::UI::Xaml::Media::Transform{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::RenderTransform(winrt::Windows::UI::Xaml::Media::Transform const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_RenderTransform(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::Projection() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_Projection(&value)); return winrt::Windows::UI::Xaml::Media::Projection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::Projection(winrt::Windows::UI::Xaml::Media::Projection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_Projection(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::RenderTransformOrigin() const { winrt::Windows::Foundation::Point value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_RenderTransformOrigin(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement::RenderTransformOrigin(winrt::Windows::Foundation::Point const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_RenderTransformOrigin(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement::IsHitTestVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_IsHitTestVisible(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::IsHitTestVisible(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_IsHitTestVisible(value)); } template auto consume_Windows_UI_Xaml_IUIElement::Visibility() const { winrt::Windows::UI::Xaml::Visibility value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_Visibility(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement::Visibility(winrt::Windows::UI::Xaml::Visibility const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_Visibility(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement::RenderSize() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_RenderSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement::UseLayoutRounding() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_UseLayoutRounding(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::UseLayoutRounding(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_UseLayoutRounding(value)); } template auto consume_Windows_UI_Xaml_IUIElement::Transitions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_Transitions(&value)); return winrt::Windows::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::Transitions(winrt::Windows::UI::Xaml::Media::Animation::TransitionCollection const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_Transitions(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::CacheMode() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_CacheMode(&value)); return winrt::Windows::UI::Xaml::Media::CacheMode{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::CacheMode(winrt::Windows::UI::Xaml::Media::CacheMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_CacheMode(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::IsTapEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_IsTapEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::IsTapEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_IsTapEnabled(value)); } template auto consume_Windows_UI_Xaml_IUIElement::IsDoubleTapEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_IsDoubleTapEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::IsDoubleTapEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_IsDoubleTapEnabled(value)); } template auto consume_Windows_UI_Xaml_IUIElement::IsRightTapEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_IsRightTapEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::IsRightTapEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_IsRightTapEnabled(value)); } template auto consume_Windows_UI_Xaml_IUIElement::IsHoldingEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_IsHoldingEnabled(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement::IsHoldingEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_IsHoldingEnabled(value)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationMode() const { winrt::Windows::UI::Xaml::Input::ManipulationModes value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_ManipulationMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationMode(winrt::Windows::UI::Xaml::Input::ManipulationModes const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->put_ManipulationMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement::PointerCaptures() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->get_PointerCaptures(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::KeyUp(winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_KeyUp(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::KeyUp(auto_revoke_t, winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { return impl::make_event_revoker(this, KeyUp(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::KeyUp(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_KeyUp(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::KeyDown(winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_KeyDown(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::KeyDown(auto_revoke_t, winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { return impl::make_event_revoker(this, KeyDown(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::KeyDown(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_KeyDown(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::GotFocus(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_GotFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::GotFocus(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, GotFocus(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::GotFocus(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_GotFocus(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::LostFocus(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_LostFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::LostFocus(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, LostFocus(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::LostFocus(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_LostFocus(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::DragEnter(winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_DragEnter(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::DragEnter(auto_revoke_t, winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { return impl::make_event_revoker(this, DragEnter(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::DragEnter(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_DragEnter(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::DragLeave(winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_DragLeave(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::DragLeave(auto_revoke_t, winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { return impl::make_event_revoker(this, DragLeave(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::DragLeave(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_DragLeave(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::DragOver(winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_DragOver(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::DragOver(auto_revoke_t, winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { return impl::make_event_revoker(this, DragOver(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::DragOver(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_DragOver(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::Drop(winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_Drop(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::Drop(auto_revoke_t, winrt::Windows::UI::Xaml::DragEventHandler const& handler) const { return impl::make_event_revoker(this, Drop(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::Drop(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_Drop(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerPressed(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerPressed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerPressed(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerPressed(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerPressed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerPressed(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerMoved(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerMoved(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerMoved(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerMoved(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerMoved(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerMoved(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerReleased(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerReleased(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerReleased(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerReleased(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerReleased(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerReleased(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerEntered(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerEntered(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerEntered(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerEntered(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerEntered(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerEntered(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerExited(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerExited(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerExited(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerExited(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerExited(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerExited(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerCaptureLost(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerCaptureLost(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerCaptureLost(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerCaptureLost(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerCaptureLost(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerCaptureLost(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerCanceled(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerCanceled(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerCanceled(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerCanceled(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerCanceled(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerCanceled(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerWheelChanged(winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_PointerWheelChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::PointerWheelChanged(auto_revoke_t, winrt::Windows::UI::Xaml::Input::PointerEventHandler const& handler) const { return impl::make_event_revoker(this, PointerWheelChanged(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::PointerWheelChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_PointerWheelChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::Tapped(winrt::Windows::UI::Xaml::Input::TappedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_Tapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::Tapped(auto_revoke_t, winrt::Windows::UI::Xaml::Input::TappedEventHandler const& handler) const { return impl::make_event_revoker(this, Tapped(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::Tapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_Tapped(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::DoubleTapped(winrt::Windows::UI::Xaml::Input::DoubleTappedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_DoubleTapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::DoubleTapped(auto_revoke_t, winrt::Windows::UI::Xaml::Input::DoubleTappedEventHandler const& handler) const { return impl::make_event_revoker(this, DoubleTapped(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::DoubleTapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_DoubleTapped(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::Holding(winrt::Windows::UI::Xaml::Input::HoldingEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_Holding(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::Holding(auto_revoke_t, winrt::Windows::UI::Xaml::Input::HoldingEventHandler const& handler) const { return impl::make_event_revoker(this, Holding(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::Holding(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_Holding(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::RightTapped(winrt::Windows::UI::Xaml::Input::RightTappedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_RightTapped(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::RightTapped(auto_revoke_t, winrt::Windows::UI::Xaml::Input::RightTappedEventHandler const& handler) const { return impl::make_event_revoker(this, RightTapped(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::RightTapped(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_RightTapped(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarting(winrt::Windows::UI::Xaml::Input::ManipulationStartingEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_ManipulationStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarting(auto_revoke_t, winrt::Windows::UI::Xaml::Input::ManipulationStartingEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationStarting(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_ManipulationStarting(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationInertiaStarting(winrt::Windows::UI::Xaml::Input::ManipulationInertiaStartingEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_ManipulationInertiaStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationInertiaStarting(auto_revoke_t, winrt::Windows::UI::Xaml::Input::ManipulationInertiaStartingEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationInertiaStarting(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationInertiaStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_ManipulationInertiaStarting(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarted(winrt::Windows::UI::Xaml::Input::ManipulationStartedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_ManipulationStarted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarted(auto_revoke_t, winrt::Windows::UI::Xaml::Input::ManipulationStartedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationStarted(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationStarted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_ManipulationStarted(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationDelta(winrt::Windows::UI::Xaml::Input::ManipulationDeltaEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_ManipulationDelta(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationDelta(auto_revoke_t, winrt::Windows::UI::Xaml::Input::ManipulationDeltaEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationDelta(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationDelta(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_ManipulationDelta(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationCompleted(winrt::Windows::UI::Xaml::Input::ManipulationCompletedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->add_ManipulationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationCompleted(auto_revoke_t, winrt::Windows::UI::Xaml::Input::ManipulationCompletedEventHandler const& handler) const { return impl::make_event_revoker(this, ManipulationCompleted(handler)); } template auto consume_Windows_UI_Xaml_IUIElement::ManipulationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->remove_ManipulationCompleted(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement::Measure(winrt::Windows::Foundation::Size const& availableSize) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->Measure(impl::bind_in(availableSize))); } template auto consume_Windows_UI_Xaml_IUIElement::Arrange(winrt::Windows::Foundation::Rect const& finalRect) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->Arrange(impl::bind_in(finalRect))); } template auto consume_Windows_UI_Xaml_IUIElement::CapturePointer(winrt::Windows::UI::Xaml::Input::Pointer const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->CapturePointer(*(void**)(&value), &result)); return result; } template auto consume_Windows_UI_Xaml_IUIElement::ReleasePointerCapture(winrt::Windows::UI::Xaml::Input::Pointer const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->ReleasePointerCapture(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement::ReleasePointerCaptures() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->ReleasePointerCaptures()); } template auto consume_Windows_UI_Xaml_IUIElement::AddHandler(winrt::Windows::UI::Xaml::RoutedEvent const& routedEvent, winrt::Windows::Foundation::IInspectable const& handler, bool handledEventsToo) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->AddHandler(*(void**)(&routedEvent), *(void**)(&handler), handledEventsToo)); } template auto consume_Windows_UI_Xaml_IUIElement::RemoveHandler(winrt::Windows::UI::Xaml::RoutedEvent const& routedEvent, winrt::Windows::Foundation::IInspectable const& handler) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->RemoveHandler(*(void**)(&routedEvent), *(void**)(&handler))); } template auto consume_Windows_UI_Xaml_IUIElement::TransformToVisual(winrt::Windows::UI::Xaml::UIElement const& visual) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->TransformToVisual(*(void**)(&visual), &result)); return winrt::Windows::UI::Xaml::Media::GeneralTransform{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement::InvalidateMeasure() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->InvalidateMeasure()); } template auto consume_Windows_UI_Xaml_IUIElement::InvalidateArrange() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->InvalidateArrange()); } template auto consume_Windows_UI_Xaml_IUIElement::UpdateLayout() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement)->UpdateLayout()); } template auto consume_Windows_UI_Xaml_IUIElement10::ActualOffset() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->get_ActualOffset(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement10::ActualSize() const { winrt::Windows::Foundation::Numerics::float2 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->get_ActualSize(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement10::XamlRoot() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->get_XamlRoot(&value)); return winrt::Windows::UI::Xaml::XamlRoot{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement10::XamlRoot(winrt::Windows::UI::Xaml::XamlRoot const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->put_XamlRoot(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement10::UIContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->get_UIContext(&value)); return winrt::Windows::UI::UIContext{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement10::Shadow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->get_Shadow(&value)); return winrt::Windows::UI::Xaml::Media::Shadow{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement10::Shadow(winrt::Windows::UI::Xaml::Media::Shadow const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement10)->put_Shadow(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement2::CompositeMode() const { winrt::Windows::UI::Xaml::Media::ElementCompositeMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement2)->get_CompositeMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement2::CompositeMode(winrt::Windows::UI::Xaml::Media::ElementCompositeMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement2)->put_CompositeMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement2::CancelDirectManipulations() const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement2)->CancelDirectManipulations(&result)); return result; } template auto consume_Windows_UI_Xaml_IUIElement3::Transform3D() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->get_Transform3D(&value)); return winrt::Windows::UI::Xaml::Media::Media3D::Transform3D{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement3::Transform3D(winrt::Windows::UI::Xaml::Media::Media3D::Transform3D const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->put_Transform3D(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement3::CanDrag() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->get_CanDrag(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement3::CanDrag(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->put_CanDrag(value)); } template auto consume_Windows_UI_Xaml_IUIElement3::DragStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->add_DragStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement3::DragStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DragStarting(handler)); } template auto consume_Windows_UI_Xaml_IUIElement3::DragStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->remove_DragStarting(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement3::DropCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->add_DropCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement3::DropCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DropCompleted(handler)); } template auto consume_Windows_UI_Xaml_IUIElement3::DropCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->remove_DropCompleted(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement3::StartDragAsync(winrt::Windows::UI::Input::PointerPoint const& pointerPoint) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement3)->StartDragAsync(*(void**)(&pointerPoint), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement4::ContextFlyout() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->get_ContextFlyout(&value)); return winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement4::ContextFlyout(winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->put_ContextFlyout(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement4::ExitDisplayModeOnAccessKeyInvoked() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->get_ExitDisplayModeOnAccessKeyInvoked(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement4::ExitDisplayModeOnAccessKeyInvoked(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->put_ExitDisplayModeOnAccessKeyInvoked(value)); } template auto consume_Windows_UI_Xaml_IUIElement4::IsAccessKeyScope() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->get_IsAccessKeyScope(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement4::IsAccessKeyScope(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->put_IsAccessKeyScope(value)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyScopeOwner() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->get_AccessKeyScopeOwner(&value)); return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyScopeOwner(winrt::Windows::UI::Xaml::DependencyObject const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->put_AccessKeyScopeOwner(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKey() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->get_AccessKey(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKey(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->put_AccessKey(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement4::ContextRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->add_ContextRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement4::ContextRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ContextRequested(handler)); } template auto consume_Windows_UI_Xaml_IUIElement4::ContextRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->remove_ContextRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement4::ContextCanceled(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->add_ContextCanceled(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement4::ContextCanceled(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ContextCanceled(handler)); } template auto consume_Windows_UI_Xaml_IUIElement4::ContextCanceled(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->remove_ContextCanceled(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->add_AccessKeyDisplayRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AccessKeyDisplayRequested(handler)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->remove_AccessKeyDisplayRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayDismissed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->add_AccessKeyDisplayDismissed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayDismissed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AccessKeyDisplayDismissed(handler)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyDisplayDismissed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->remove_AccessKeyDisplayDismissed(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyInvoked(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->add_AccessKeyInvoked(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyInvoked(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, AccessKeyInvoked(handler)); } template auto consume_Windows_UI_Xaml_IUIElement4::AccessKeyInvoked(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement4)->remove_AccessKeyInvoked(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement5::Lights() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_Lights(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipPlacementMode() const { winrt::Windows::UI::Xaml::Input::KeyTipPlacementMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_KeyTipPlacementMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipPlacementMode(winrt::Windows::UI::Xaml::Input::KeyTipPlacementMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_KeyTipPlacementMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipHorizontalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_KeyTipHorizontalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipHorizontalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_KeyTipHorizontalOffset(value)); } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipVerticalOffset() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_KeyTipVerticalOffset(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::KeyTipVerticalOffset(double value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_KeyTipVerticalOffset(value)); } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusKeyboardNavigation() const { winrt::Windows::UI::Xaml::Input::XYFocusKeyboardNavigationMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_XYFocusKeyboardNavigation(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusKeyboardNavigation(winrt::Windows::UI::Xaml::Input::XYFocusKeyboardNavigationMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_XYFocusKeyboardNavigation(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusUpNavigationStrategy() const { winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_XYFocusUpNavigationStrategy(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusUpNavigationStrategy(winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_XYFocusUpNavigationStrategy(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusDownNavigationStrategy() const { winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_XYFocusDownNavigationStrategy(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusDownNavigationStrategy(winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_XYFocusDownNavigationStrategy(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusLeftNavigationStrategy() const { winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_XYFocusLeftNavigationStrategy(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusLeftNavigationStrategy(winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_XYFocusLeftNavigationStrategy(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusRightNavigationStrategy() const { winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_XYFocusRightNavigationStrategy(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::XYFocusRightNavigationStrategy(winrt::Windows::UI::Xaml::Input::XYFocusNavigationStrategy const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_XYFocusRightNavigationStrategy(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::HighContrastAdjustment() const { winrt::Windows::UI::Xaml::ElementHighContrastAdjustment value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_HighContrastAdjustment(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::HighContrastAdjustment(winrt::Windows::UI::Xaml::ElementHighContrastAdjustment const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_HighContrastAdjustment(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::TabFocusNavigation() const { winrt::Windows::UI::Xaml::Input::KeyboardNavigationMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->get_TabFocusNavigation(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement5::TabFocusNavigation(winrt::Windows::UI::Xaml::Input::KeyboardNavigationMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->put_TabFocusNavigation(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement5::GettingFocus(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->add_GettingFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement5::GettingFocus(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, GettingFocus(handler)); } template auto consume_Windows_UI_Xaml_IUIElement5::GettingFocus(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->remove_GettingFocus(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement5::LosingFocus(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->add_LosingFocus(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement5::LosingFocus(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LosingFocus(handler)); } template auto consume_Windows_UI_Xaml_IUIElement5::LosingFocus(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->remove_LosingFocus(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement5::NoFocusCandidateFound(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->add_NoFocusCandidateFound(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement5::NoFocusCandidateFound(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NoFocusCandidateFound(handler)); } template auto consume_Windows_UI_Xaml_IUIElement5::NoFocusCandidateFound(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->remove_NoFocusCandidateFound(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement5::StartBringIntoView() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->StartBringIntoView()); } template auto consume_Windows_UI_Xaml_IUIElement5::StartBringIntoView(winrt::Windows::UI::Xaml::BringIntoViewOptions const& options) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement5)->StartBringIntoViewWithOptions(*(void**)(&options))); } template auto consume_Windows_UI_Xaml_IUIElement7::KeyboardAccelerators() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->get_KeyboardAccelerators(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement7::CharacterReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->add_CharacterReceived(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement7::CharacterReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, CharacterReceived(handler)); } template auto consume_Windows_UI_Xaml_IUIElement7::CharacterReceived(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->remove_CharacterReceived(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement7::ProcessKeyboardAccelerators(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->add_ProcessKeyboardAccelerators(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement7::ProcessKeyboardAccelerators(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ProcessKeyboardAccelerators(handler)); } template auto consume_Windows_UI_Xaml_IUIElement7::ProcessKeyboardAccelerators(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->remove_ProcessKeyboardAccelerators(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyDown(winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->add_PreviewKeyDown(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyDown(auto_revoke_t, winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { return impl::make_event_revoker(this, PreviewKeyDown(handler)); } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyDown(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->remove_PreviewKeyDown(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyUp(winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->add_PreviewKeyUp(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyUp(auto_revoke_t, winrt::Windows::UI::Xaml::Input::KeyEventHandler const& handler) const { return impl::make_event_revoker(this, PreviewKeyUp(handler)); } template auto consume_Windows_UI_Xaml_IUIElement7::PreviewKeyUp(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->remove_PreviewKeyUp(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement7::TryInvokeKeyboardAccelerator(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement7)->TryInvokeKeyboardAccelerator(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IUIElement8::KeyTipTarget() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->get_KeyTipTarget(&value)); return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement8::KeyTipTarget(winrt::Windows::UI::Xaml::DependencyObject const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->put_KeyTipTarget(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement8::KeyboardAcceleratorPlacementTarget() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->get_KeyboardAcceleratorPlacementTarget(&value)); return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement8::KeyboardAcceleratorPlacementTarget(winrt::Windows::UI::Xaml::DependencyObject const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->put_KeyboardAcceleratorPlacementTarget(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement8::KeyboardAcceleratorPlacementMode() const { winrt::Windows::UI::Xaml::Input::KeyboardAcceleratorPlacementMode value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->get_KeyboardAcceleratorPlacementMode(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement8::KeyboardAcceleratorPlacementMode(winrt::Windows::UI::Xaml::Input::KeyboardAcceleratorPlacementMode const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->put_KeyboardAcceleratorPlacementMode(static_cast(value))); } template auto consume_Windows_UI_Xaml_IUIElement8::BringIntoViewRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->add_BringIntoViewRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IUIElement8::BringIntoViewRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, BringIntoViewRequested(handler)); } template auto consume_Windows_UI_Xaml_IUIElement8::BringIntoViewRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement8)->remove_BringIntoViewRequested(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IUIElement9::CanBeScrollAnchor() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_CanBeScrollAnchor(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::CanBeScrollAnchor(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_CanBeScrollAnchor(value)); } template auto consume_Windows_UI_Xaml_IUIElement9::OpacityTransition() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_OpacityTransition(&value)); return winrt::Windows::UI::Xaml::ScalarTransition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement9::OpacityTransition(winrt::Windows::UI::Xaml::ScalarTransition const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_OpacityTransition(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement9::Translation() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_Translation(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::Translation(winrt::Windows::Foundation::Numerics::float3 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_Translation(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement9::TranslationTransition() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_TranslationTransition(&value)); return winrt::Windows::UI::Xaml::Vector3Transition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement9::TranslationTransition(winrt::Windows::UI::Xaml::Vector3Transition const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_TranslationTransition(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement9::Rotation() const { float value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_Rotation(&value)); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::Rotation(float value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_Rotation(value)); } template auto consume_Windows_UI_Xaml_IUIElement9::RotationTransition() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_RotationTransition(&value)); return winrt::Windows::UI::Xaml::ScalarTransition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement9::RotationTransition(winrt::Windows::UI::Xaml::ScalarTransition const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_RotationTransition(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement9::Scale() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_Scale(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::Scale(winrt::Windows::Foundation::Numerics::float3 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_Scale(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement9::ScaleTransition() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_ScaleTransition(&value)); return winrt::Windows::UI::Xaml::Vector3Transition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElement9::ScaleTransition(winrt::Windows::UI::Xaml::Vector3Transition const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_ScaleTransition(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IUIElement9::TransformMatrix() const { winrt::Windows::Foundation::Numerics::float4x4 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_TransformMatrix(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::TransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_TransformMatrix(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement9::CenterPoint() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_CenterPoint(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::CenterPoint(winrt::Windows::Foundation::Numerics::float3 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_CenterPoint(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement9::RotationAxis() const { winrt::Windows::Foundation::Numerics::float3 value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->get_RotationAxis(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUIElement9::RotationAxis(winrt::Windows::Foundation::Numerics::float3 const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->put_RotationAxis(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IUIElement9::StartAnimation(winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->StartAnimation(*(void**)(&animation))); } template auto consume_Windows_UI_Xaml_IUIElement9::StopAnimation(winrt::Windows::UI::Composition::ICompositionAnimationBase const& animation) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElement9)->StopAnimation(*(void**)(&animation))); } template auto consume_Windows_UI_Xaml_IUIElementOverrides::OnCreateAutomationPeer() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides)->OnCreateAutomationPeer(&result)); return winrt::Windows::UI::Xaml::Automation::Peers::AutomationPeer{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementOverrides::OnDisconnectVisualChildren() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides)->OnDisconnectVisualChildren()); } template auto consume_Windows_UI_Xaml_IUIElementOverrides::FindSubElementsForTouchTargeting(winrt::Windows::Foundation::Point const& point, winrt::Windows::Foundation::Rect const& boundingRect) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides)->FindSubElementsForTouchTargeting(impl::bind_in(point), impl::bind_in(boundingRect), &result)); return winrt::Windows::Foundation::Collections::IIterable>{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementOverrides7::GetChildrenInTabFocusOrder() const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides7)->GetChildrenInTabFocusOrder(&result)); return winrt::Windows::Foundation::Collections::IIterable{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementOverrides7::OnProcessKeyboardAccelerators(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides7)->OnProcessKeyboardAccelerators(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IUIElementOverrides8::OnKeyboardAcceleratorInvoked(winrt::Windows::UI::Xaml::Input::KeyboardAcceleratorInvokedEventArgs const& args) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides8)->OnKeyboardAcceleratorInvoked(*(void**)(&args))); } template auto consume_Windows_UI_Xaml_IUIElementOverrides8::OnBringIntoViewRequested(winrt::Windows::UI::Xaml::BringIntoViewRequestedEventArgs const& e) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides8)->OnBringIntoViewRequested(*(void**)(&e))); } template auto consume_Windows_UI_Xaml_IUIElementOverrides9::PopulatePropertyInfoOverride(param::hstring const& propertyName, winrt::Windows::UI::Composition::AnimationPropertyInfo const& animationPropertyInfo) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementOverrides9)->PopulatePropertyInfoOverride(*(void**)(&propertyName), *(void**)(&animationPropertyInfo))); } template auto consume_Windows_UI_Xaml_IUIElementStatics::KeyDownEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_KeyDownEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::KeyUpEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_KeyUpEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerEnteredEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerEnteredEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerPressedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerPressedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerMovedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerMovedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerReleasedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerReleasedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerExitedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerExitedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerCaptureLostEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerCaptureLostEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerCanceledEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerCanceledEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerWheelChangedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerWheelChangedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::TappedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_TappedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::DoubleTappedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_DoubleTappedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::HoldingEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_HoldingEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::RightTappedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_RightTappedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationStartingEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationStartingEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationInertiaStartingEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationInertiaStartingEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationStartedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationStartedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationDeltaEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationDeltaEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationCompletedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationCompletedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::DragEnterEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_DragEnterEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::DragLeaveEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_DragLeaveEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::DragOverEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_DragOverEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::DropEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_DropEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::AllowDropProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_AllowDropProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::OpacityProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_OpacityProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ClipProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ClipProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::RenderTransformProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_RenderTransformProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ProjectionProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ProjectionProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::RenderTransformOriginProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_RenderTransformOriginProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::IsHitTestVisibleProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_IsHitTestVisibleProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::VisibilityProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_VisibilityProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::UseLayoutRoundingProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_UseLayoutRoundingProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::TransitionsProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_TransitionsProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::CacheModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_CacheModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::IsTapEnabledProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_IsTapEnabledProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::IsDoubleTapEnabledProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_IsDoubleTapEnabledProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::IsRightTapEnabledProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_IsRightTapEnabledProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::IsHoldingEnabledProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_IsHoldingEnabledProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::ManipulationModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_ManipulationModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics::PointerCapturesProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics)->get_PointerCapturesProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics10::ShadowProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics10)->get_ShadowProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics2::CompositeModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics2)->get_CompositeModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics3::Transform3DProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics3)->get_Transform3DProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics3::CanDragProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics3)->get_CanDragProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics3::TryStartDirectManipulation(winrt::Windows::UI::Xaml::Input::Pointer const& value) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics3)->TryStartDirectManipulation(*(void**)(&value), &result)); return result; } template auto consume_Windows_UI_Xaml_IUIElementStatics4::ContextFlyoutProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics4)->get_ContextFlyoutProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics4::ExitDisplayModeOnAccessKeyInvokedProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics4)->get_ExitDisplayModeOnAccessKeyInvokedProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics4::IsAccessKeyScopeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics4)->get_IsAccessKeyScopeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics4::AccessKeyScopeOwnerProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics4)->get_AccessKeyScopeOwnerProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics4::AccessKeyProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics4)->get_AccessKeyProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::LightsProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_LightsProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::KeyTipPlacementModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_KeyTipPlacementModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::KeyTipHorizontalOffsetProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_KeyTipHorizontalOffsetProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::KeyTipVerticalOffsetProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_KeyTipVerticalOffsetProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::XYFocusKeyboardNavigationProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_XYFocusKeyboardNavigationProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::XYFocusUpNavigationStrategyProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_XYFocusUpNavigationStrategyProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::XYFocusDownNavigationStrategyProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_XYFocusDownNavigationStrategyProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::XYFocusLeftNavigationStrategyProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_XYFocusLeftNavigationStrategyProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::XYFocusRightNavigationStrategyProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_XYFocusRightNavigationStrategyProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::HighContrastAdjustmentProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_HighContrastAdjustmentProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics5::TabFocusNavigationProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics5)->get_TabFocusNavigationProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics6::GettingFocusEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics6)->get_GettingFocusEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics6::LosingFocusEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics6)->get_LosingFocusEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics6::NoFocusCandidateFoundEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics6)->get_NoFocusCandidateFoundEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics7::PreviewKeyDownEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics7)->get_PreviewKeyDownEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics7::CharacterReceivedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics7)->get_CharacterReceivedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics7::PreviewKeyUpEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics7)->get_PreviewKeyUpEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::BringIntoViewRequestedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->get_BringIntoViewRequestedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::ContextRequestedEvent() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->get_ContextRequestedEvent(&value)); return winrt::Windows::UI::Xaml::RoutedEvent{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::KeyTipTargetProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->get_KeyTipTargetProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::KeyboardAcceleratorPlacementTargetProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->get_KeyboardAcceleratorPlacementTargetProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::KeyboardAcceleratorPlacementModeProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->get_KeyboardAcceleratorPlacementModeProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementStatics8::RegisterAsScrollPort(winrt::Windows::UI::Xaml::UIElement const& element) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics8)->RegisterAsScrollPort(*(void**)(&element))); } template auto consume_Windows_UI_Xaml_IUIElementStatics9::CanBeScrollAnchorProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementStatics9)->get_CanBeScrollAnchorProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUIElementWeakCollectionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUIElementWeakCollectionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::UIElementWeakCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUnhandledExceptionEventArgs::Exception() const { winrt::hresult value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUnhandledExceptionEventArgs)->get_Exception(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IUnhandledExceptionEventArgs::Message() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUnhandledExceptionEventArgs)->get_Message(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IUnhandledExceptionEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUnhandledExceptionEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_UI_Xaml_IUnhandledExceptionEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IUnhandledExceptionEventArgs)->put_Handled(value)); } template auto consume_Windows_UI_Xaml_IVector3Transition::Duration() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVector3Transition)->get_Duration(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IVector3Transition::Duration(winrt::Windows::Foundation::TimeSpan const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVector3Transition)->put_Duration(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IVector3Transition::Components() const { winrt::Windows::UI::Xaml::Vector3TransitionComponents value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVector3Transition)->get_Components(reinterpret_cast(&value))); return value; } template auto consume_Windows_UI_Xaml_IVector3Transition::Components(winrt::Windows::UI::Xaml::Vector3TransitionComponents const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVector3Transition)->put_Components(static_cast(value))); } template auto consume_Windows_UI_Xaml_IVector3TransitionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVector3TransitionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::Vector3Transition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualState::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualState)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualState::Storyboard() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualState)->get_Storyboard(&value)); return winrt::Windows::UI::Xaml::Media::Animation::Storyboard{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualState::Storyboard(winrt::Windows::UI::Xaml::Media::Animation::Storyboard const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualState)->put_Storyboard(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualState2::Setters() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualState2)->get_Setters(&value)); return winrt::Windows::UI::Xaml::SetterBaseCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualState2::StateTriggers() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualState2)->get_StateTriggers(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::OldState() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->get_OldState(&value)); return winrt::Windows::UI::Xaml::VisualState{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::OldState(winrt::Windows::UI::Xaml::VisualState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->put_OldState(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::NewState() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->get_NewState(&value)); return winrt::Windows::UI::Xaml::VisualState{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::NewState(winrt::Windows::UI::Xaml::VisualState const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->put_NewState(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::Control() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->get_Control(&value)); return winrt::Windows::UI::Xaml::Controls::Control{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateChangedEventArgs::Control(winrt::Windows::UI::Xaml::Controls::Control const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateChangedEventArgs)->put_Control(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualStateGroup::Name() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->get_Name(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::Transitions() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->get_Transitions(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::States() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->get_States(&value)); return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentState() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->get_CurrentState(&value)); return winrt::Windows::UI::Xaml::VisualState{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanged(winrt::Windows::UI::Xaml::VisualStateChangedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->add_CurrentStateChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanged(auto_revoke_t, winrt::Windows::UI::Xaml::VisualStateChangedEventHandler const& handler) const { return impl::make_event_revoker(this, CurrentStateChanged(handler)); } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->remove_CurrentStateChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanging(winrt::Windows::UI::Xaml::VisualStateChangedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->add_CurrentStateChanging(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanging(auto_revoke_t, winrt::Windows::UI::Xaml::VisualStateChangedEventHandler const& handler) const { return impl::make_event_revoker(this, CurrentStateChanging(handler)); } template auto consume_Windows_UI_Xaml_IVisualStateGroup::CurrentStateChanging(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateGroup)->remove_CurrentStateChanging(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IVisualStateManagerFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::VisualStateManager{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateManagerOverrides::GoToStateCore(winrt::Windows::UI::Xaml::Controls::Control const& control, winrt::Windows::UI::Xaml::FrameworkElement const& templateRoot, param::hstring const& stateName, winrt::Windows::UI::Xaml::VisualStateGroup const& group, winrt::Windows::UI::Xaml::VisualState const& state, bool useTransitions) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerOverrides)->GoToStateCore(*(void**)(&control), *(void**)(&templateRoot), *(void**)(&stateName), *(void**)(&group), *(void**)(&state), useTransitions, &result)); return result; } template auto consume_Windows_UI_Xaml_IVisualStateManagerProtected::RaiseCurrentStateChanging(winrt::Windows::UI::Xaml::VisualStateGroup const& stateGroup, winrt::Windows::UI::Xaml::VisualState const& oldState, winrt::Windows::UI::Xaml::VisualState const& newState, winrt::Windows::UI::Xaml::Controls::Control const& control) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerProtected)->RaiseCurrentStateChanging(*(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), *(void**)(&control))); } template auto consume_Windows_UI_Xaml_IVisualStateManagerProtected::RaiseCurrentStateChanged(winrt::Windows::UI::Xaml::VisualStateGroup const& stateGroup, winrt::Windows::UI::Xaml::VisualState const& oldState, winrt::Windows::UI::Xaml::VisualState const& newState, winrt::Windows::UI::Xaml::Controls::Control const& control) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerProtected)->RaiseCurrentStateChanged(*(void**)(&stateGroup), *(void**)(&oldState), *(void**)(&newState), *(void**)(&control))); } template auto consume_Windows_UI_Xaml_IVisualStateManagerStatics::GetVisualStateGroups(winrt::Windows::UI::Xaml::FrameworkElement const& obj) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerStatics)->GetVisualStateGroups(*(void**)(&obj), &result)); return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateManagerStatics::CustomVisualStateManagerProperty() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerStatics)->get_CustomVisualStateManagerProperty(&value)); return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateManagerStatics::GetCustomVisualStateManager(winrt::Windows::UI::Xaml::FrameworkElement const& obj) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerStatics)->GetCustomVisualStateManager(*(void**)(&obj), &result)); return winrt::Windows::UI::Xaml::VisualStateManager{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualStateManagerStatics::SetCustomVisualStateManager(winrt::Windows::UI::Xaml::FrameworkElement const& obj, winrt::Windows::UI::Xaml::VisualStateManager const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerStatics)->SetCustomVisualStateManager(*(void**)(&obj), *(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualStateManagerStatics::GoToState(winrt::Windows::UI::Xaml::Controls::Control const& control, param::hstring const& stateName, bool useTransitions) const { bool result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualStateManagerStatics)->GoToState(*(void**)(&control), *(void**)(&stateName), useTransitions, &result)); return result; } template auto consume_Windows_UI_Xaml_IVisualTransition::GeneratedDuration() const { winrt::Windows::UI::Xaml::Duration value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->get_GeneratedDuration(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IVisualTransition::GeneratedDuration(winrt::Windows::UI::Xaml::Duration const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->put_GeneratedDuration(impl::bind_in(value))); } template auto consume_Windows_UI_Xaml_IVisualTransition::GeneratedEasingFunction() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->get_GeneratedEasingFunction(&value)); return winrt::Windows::UI::Xaml::Media::Animation::EasingFunctionBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualTransition::GeneratedEasingFunction(winrt::Windows::UI::Xaml::Media::Animation::EasingFunctionBase const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->put_GeneratedEasingFunction(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualTransition::To() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->get_To(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualTransition::To(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->put_To(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualTransition::From() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->get_From(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualTransition::From(param::hstring const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->put_From(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualTransition::Storyboard() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->get_Storyboard(&value)); return winrt::Windows::UI::Xaml::Media::Animation::Storyboard{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IVisualTransition::Storyboard(winrt::Windows::UI::Xaml::Media::Animation::Storyboard const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransition)->put_Storyboard(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IVisualTransitionFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IVisualTransitionFactory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); return winrt::Windows::UI::Xaml::VisualTransition{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindow::Bounds() const { winrt::Windows::Foundation::Rect value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->get_Bounds(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IWindow::Visible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->get_Visible(&value)); return value; } template auto consume_Windows_UI_Xaml_IWindow::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->get_Content(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindow::Content(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->put_Content(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IWindow::CoreWindow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->get_CoreWindow(&value)); return winrt::Windows::UI::Core::CoreWindow{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindow::Dispatcher() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->get_Dispatcher(&value)); return winrt::Windows::UI::Core::CoreDispatcher{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindow::Activated(winrt::Windows::UI::Xaml::WindowActivatedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->add_Activated(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IWindow::Activated(auto_revoke_t, winrt::Windows::UI::Xaml::WindowActivatedEventHandler const& handler) const { return impl::make_event_revoker(this, Activated(handler)); } template auto consume_Windows_UI_Xaml_IWindow::Activated(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->remove_Activated(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IWindow::Closed(winrt::Windows::UI::Xaml::WindowClosedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->add_Closed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IWindow::Closed(auto_revoke_t, winrt::Windows::UI::Xaml::WindowClosedEventHandler const& handler) const { return impl::make_event_revoker(this, Closed(handler)); } template auto consume_Windows_UI_Xaml_IWindow::Closed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->remove_Closed(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IWindow::SizeChanged(winrt::Windows::UI::Xaml::WindowSizeChangedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->add_SizeChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IWindow::SizeChanged(auto_revoke_t, winrt::Windows::UI::Xaml::WindowSizeChangedEventHandler const& handler) const { return impl::make_event_revoker(this, SizeChanged(handler)); } template auto consume_Windows_UI_Xaml_IWindow::SizeChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->remove_SizeChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IWindow::VisibilityChanged(winrt::Windows::UI::Xaml::WindowVisibilityChangedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->add_VisibilityChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IWindow::VisibilityChanged(auto_revoke_t, winrt::Windows::UI::Xaml::WindowVisibilityChangedEventHandler const& handler) const { return impl::make_event_revoker(this, VisibilityChanged(handler)); } template auto consume_Windows_UI_Xaml_IWindow::VisibilityChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->remove_VisibilityChanged(impl::bind_in(token)); } template auto consume_Windows_UI_Xaml_IWindow::Activate() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->Activate()); } template auto consume_Windows_UI_Xaml_IWindow::Close() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow)->Close()); } template auto consume_Windows_UI_Xaml_IWindow2::SetTitleBar(winrt::Windows::UI::Xaml::UIElement const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow2)->SetTitleBar(*(void**)(&value))); } template auto consume_Windows_UI_Xaml_IWindow3::Compositor() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow3)->get_Compositor(&value)); return winrt::Windows::UI::Composition::Compositor{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindow4::UIContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindow4)->get_UIContext(&value)); return winrt::Windows::UI::UIContext{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindowCreatedEventArgs::Window() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindowCreatedEventArgs)->get_Window(&value)); return winrt::Windows::UI::Xaml::Window{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IWindowStatics::Current() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IWindowStatics)->get_Current(&value)); return winrt::Windows::UI::Xaml::Window{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IXamlRoot::Content() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->get_Content(&value)); return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IXamlRoot::Size() const { winrt::Windows::Foundation::Size value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->get_Size(put_abi(value))); return value; } template auto consume_Windows_UI_Xaml_IXamlRoot::RasterizationScale() const { double value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->get_RasterizationScale(&value)); return value; } template auto consume_Windows_UI_Xaml_IXamlRoot::IsHostVisible() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->get_IsHostVisible(&value)); return value; } template auto consume_Windows_UI_Xaml_IXamlRoot::UIContext() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->get_UIContext(&value)); return winrt::Windows::UI::UIContext{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_IXamlRoot::Changed(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->add_Changed(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_UI_Xaml_IXamlRoot::Changed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Changed(handler)); } template auto consume_Windows_UI_Xaml_IXamlRoot::Changed(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::UI::Xaml::IXamlRoot)->remove_Changed(impl::bind_in(token)); } template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* p) noexcept final try { (*this)(*reinterpret_cast(&p)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void** result) noexcept final try { clear_abi(result); *result = detach_from((*this)()); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* dp) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&dp)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* d, void* e) noexcept final try { (*this)(*reinterpret_cast(&d), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct delegate final : implements_delegate { delegate(H&& handler) : implements_delegate(std::forward(handler)) {} int32_t __stdcall Invoke(void* sender, void* e) noexcept final try { (*this)(*reinterpret_cast(&sender), *reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MinWindowWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWindowWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinWindowWidth(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinWindowWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinWindowHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWindowHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinWindowHeight(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinWindowHeight(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MinWindowWidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWindowWidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinWindowHeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWindowHeightProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Resources(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Resources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Resources(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Resources(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DebugSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DebugSettings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequestedTheme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedTheme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequestedTheme(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequestedTheme(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_UnhandledException(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UnhandledException(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UnhandledException(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UnhandledException(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Suspending(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Suspending(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Suspending(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Suspending(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Resuming(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Resuming(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Resuming(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Resuming(*reinterpret_cast(&token)); return 0; } int32_t __stdcall Exit() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Exit(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FocusVisualKind(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualKind()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualKind(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualKind(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RequiresPointerMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequiresPointerMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequiresPointerMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequiresPointerMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_LeavingBackground(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LeavingBackground(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LeavingBackground(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LeavingBackground(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_EnteredBackground(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EnteredBackground(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EnteredBackground(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EnteredBackground(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HighContrastAdjustment(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighContrastAdjustment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HighContrastAdjustment(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HighContrastAdjustment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct produce : produce_base { int32_t __stdcall OnActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnLaunched(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnLaunched(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnFileActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnFileActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnSearchActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnSearchActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnShareTargetActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnShareTargetActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnFileOpenPickerActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnFileOpenPickerActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnFileSavePickerActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnFileSavePickerActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnCachedFileUpdaterActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnCachedFileUpdaterActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnWindowCreated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnWindowCreated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall OnBackgroundActivated(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnBackgroundActivated(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Current(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Current()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Start(void* callback) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(*reinterpret_cast(&callback)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadComponent(void* component, void* resourceLocator) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LoadComponent(*reinterpret_cast(&component), *reinterpret_cast(&resourceLocator)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LoadComponentWithResourceLocation(void* component, void* resourceLocator, int32_t componentResourceLocation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LoadComponent(*reinterpret_cast(&component), *reinterpret_cast(&resourceLocator), *reinterpret_cast(&componentResourceLocation)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AnimationDesired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnimationDesired()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AnimationDesired(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AnimationDesired(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetRect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().TargetRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetRect(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetRect(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HorizontalAlignmentRatio(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalAlignmentRatio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HorizontalAlignmentRatio(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HorizontalAlignmentRatio(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalAlignmentRatio(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalAlignmentRatio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VerticalAlignmentRatio(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VerticalAlignmentRatio(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HorizontalOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VerticalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VerticalOffset(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TargetElement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetElement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetElement(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetElement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AnimationDesired(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AnimationDesired()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AnimationDesired(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AnimationDesired(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetRect(winrt::Windows::Foundation::Rect value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetRect(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalAlignmentRatio(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalAlignmentRatio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalAlignmentRatio(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalAlignmentRatio()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HorizontalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HorizontalOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VerticalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VerticalOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Duration(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Duration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AltHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AltHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AltHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AltHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AltLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AltLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AltLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AltLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AltMedium(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AltMedium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AltMedium(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AltMedium(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AltMediumHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AltMediumHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AltMediumHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AltMediumHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AltMediumLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().AltMediumLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AltMediumLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AltMediumLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseMedium(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseMedium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseMedium(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseMedium(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseMediumHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseMediumHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseMediumHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseMediumHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseMediumLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().BaseMediumLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BaseMediumLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BaseMediumLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeAltLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeAltLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeAltLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeAltLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeBlackHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeBlackHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeBlackHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeBlackHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeBlackLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeBlackLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeBlackLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeBlackLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeBlackMediumLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeBlackMediumLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeBlackMediumLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeBlackMediumLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeBlackMedium(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeBlackMedium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeBlackMedium(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeBlackMedium(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeDisabledHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeDisabledHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeDisabledHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeDisabledHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeDisabledLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeDisabledLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeDisabledLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeDisabledLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeHigh(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeHigh()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeHigh(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeHigh(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeMedium(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeMedium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeMedium(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeMedium(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeMediumLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeMediumLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeMediumLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeMediumLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeWhite(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeWhite()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeWhite(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeWhite(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChromeGray(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ChromeGray()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChromeGray(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChromeGray(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListLow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ListLow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListLow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListLow(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListMedium(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ListMedium()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListMedium(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListMedium(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ErrorText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ErrorText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ErrorText(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ErrorText(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Accent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Accent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Accent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Accent(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromRadii(double topLeft, double topRight, double bottomRight, double bottomLeft, struct struct_Windows_UI_Xaml_CornerRadius* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromRadii(topLeft, topRight, bottomRight, bottomLeft)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromUniformRadius(double uniformRadius, struct struct_Windows_UI_Xaml_CornerRadius* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromUniformRadius(uniformRadius)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NewValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall LoadContent(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().LoadContent()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall ResetTemplate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ResetTemplate(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessBinding(uint32_t phase, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ProcessBinding(phase)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ProcessBindings(void* arg, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ProcessBindings(*reinterpret_cast(&arg))); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DataType(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DataType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInstanceWithType(void* dataType, void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstanceWithType(*reinterpret_cast(&dataType), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExtensionInstanceProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtensionInstanceProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetExtensionInstance(void* element, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetExtensionInstance(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetExtensionInstance(void* element, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetExtensionInstance(*reinterpret_cast(&element), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EnableFrameRateCounter(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnableFrameRateCounter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EnableFrameRateCounter(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableFrameRateCounter(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsBindingTracingEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsBindingTracingEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsBindingTracingEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsBindingTracingEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOverdrawHeatMapEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOverdrawHeatMapEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsOverdrawHeatMapEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsOverdrawHeatMapEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_BindingFailed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().BindingFailed(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_BindingFailed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().BindingFailed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EnableRedrawRegions(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnableRedrawRegions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_EnableRedrawRegions(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().EnableRedrawRegions(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsTextPerformanceVisualizationEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTextPerformanceVisualizationEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsTextPerformanceVisualizationEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsTextPerformanceVisualizationEnabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FailFastOnErrors(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FailFastOnErrors()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FailFastOnErrors(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FailFastOnErrors(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetValue(void* dp, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetValue(*reinterpret_cast(&dp))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetValue(void* dp, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetValue(*reinterpret_cast(&dp), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ClearValue(void* dp) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClearValue(*reinterpret_cast(&dp)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReadLocalValue(void* dp, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ReadLocalValue(*reinterpret_cast(&dp))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAnimationBaseValue(void* dp, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAnimationBaseValue(*reinterpret_cast(&dp))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Dispatcher(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Dispatcher()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RegisterPropertyChangedCallback(void* dp, void* callback, int64_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RegisterPropertyChangedCallback(*reinterpret_cast(&dp), *reinterpret_cast(&callback))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnregisterPropertyChangedCallback(void* dp, int64_t token) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UnregisterPropertyChangedCallback(*reinterpret_cast(&dp), token); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetMetadata(struct struct_Windows_UI_Xaml_Interop_TypeName forType, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetMetadata(*reinterpret_cast(&forType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Property()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OldValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OldValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewValue()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UnsetValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UnsetValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Register(void* name, struct struct_Windows_UI_Xaml_Interop_TypeName propertyType, struct struct_Windows_UI_Xaml_Interop_TypeName ownerType, void* typeMetadata, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Register(*reinterpret_cast(&name), *reinterpret_cast(&propertyType), *reinterpret_cast(&ownerType), *reinterpret_cast(&typeMetadata))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterAttached(void* name, struct struct_Windows_UI_Xaml_Interop_TypeName propertyType, struct struct_Windows_UI_Xaml_Interop_TypeName ownerType, void* defaultMetadata, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().RegisterAttached(*reinterpret_cast(&name), *reinterpret_cast(&propertyType), *reinterpret_cast(&ownerType), *reinterpret_cast(&defaultMetadata))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Interval(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Interval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Interval(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Interval(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Tick(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Tick(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Tick(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Tick(*reinterpret_cast(&token)); return 0; } int32_t __stdcall Start() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Start(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPosition(void* relativeTo, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPosition(*reinterpret_cast(&relativeTo))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DataView(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataView()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragUIOverride(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragUIOverride()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Modifiers(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Modifiers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AcceptedOperation(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AcceptedOperation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AcceptedOperation(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AcceptedOperation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowedOperations()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall Complete() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Complete(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Cancel(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cancel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Cancel(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cancel(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragUI(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragUI()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetPosition(void* relativeTo, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetPosition(*reinterpret_cast(&relativeTo))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowedOperations(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowedOperations()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowedOperations(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowedOperations(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetContentFromBitmapImage(void* bitmapImage) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromBitmapImage(*reinterpret_cast(&bitmapImage)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromBitmapImageWithAnchorPoint(void* bitmapImage, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromBitmapImage(*reinterpret_cast(&bitmapImage), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromSoftwareBitmap(void* softwareBitmap) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromSoftwareBitmapWithAnchorPoint(void* softwareBitmap, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromDataPackage() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromDataPackage(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Caption(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Caption()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Caption(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Caption(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsContentVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsContentVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsContentVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsContentVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsCaptionVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCaptionVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsCaptionVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsCaptionVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsGlyphVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsGlyphVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsGlyphVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsGlyphVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Clear() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clear(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromBitmapImage(void* bitmapImage) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromBitmapImage(*reinterpret_cast(&bitmapImage)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromBitmapImageWithAnchorPoint(void* bitmapImage, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromBitmapImage(*reinterpret_cast(&bitmapImage), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromSoftwareBitmap(void* softwareBitmap) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetContentFromSoftwareBitmapWithAnchorPoint(void* softwareBitmap, winrt::Windows::Foundation::Point anchorPoint) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetContentFromSoftwareBitmap(*reinterpret_cast(&softwareBitmap), *reinterpret_cast(&anchorPoint)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DropResult(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropResult()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Automatic(struct struct_Windows_UI_Xaml_Duration* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Automatic()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Forever(struct struct_Windows_UI_Xaml_Duration* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Forever()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Compare(struct struct_Windows_UI_Xaml_Duration duration1, struct struct_Windows_UI_Xaml_Duration duration2, int32_t* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Compare(*reinterpret_cast(&duration1), *reinterpret_cast(&duration2))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromTimeSpan(int64_t timeSpan, struct struct_Windows_UI_Xaml_Duration* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromTimeSpan(*reinterpret_cast(&timeSpan))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetHasTimeSpan(struct struct_Windows_UI_Xaml_Duration target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetHasTimeSpan(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Add(struct struct_Windows_UI_Xaml_Duration target, struct struct_Windows_UI_Xaml_Duration duration, struct struct_Windows_UI_Xaml_Duration* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Add(*reinterpret_cast(&target), *reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Equals(struct struct_Windows_UI_Xaml_Duration target, struct struct_Windows_UI_Xaml_Duration value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Equals(*reinterpret_cast(&target), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Subtract(struct struct_Windows_UI_Xaml_Duration target, struct struct_Windows_UI_Xaml_Duration duration, struct struct_Windows_UI_Xaml_Duration* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Subtract(*reinterpret_cast(&target), *reinterpret_cast(&duration))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EffectiveViewport(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectiveViewport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxViewport(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxViewport()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BringIntoViewDistanceX(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BringIntoViewDistanceX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BringIntoViewDistanceY(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BringIntoViewDistanceY()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall GetElement(void* args, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetElement(*reinterpret_cast(&args))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RecycleElement(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RecycleElement(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Data(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Data()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Data(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Data(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Parent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Parent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Parent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Parent(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Element(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Element()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Element(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Element(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Parent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Parent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Parent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Parent(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Volume(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Volume()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Volume(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Volume(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_State(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().State(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Play(int32_t sound) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Play(*reinterpret_cast(&sound)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SpatialAudioMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SpatialAudioMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SpatialAudioMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SpatialAudioMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RoutedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RoutedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RoutedEvent(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RoutedEvent(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Actions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Actions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ErrorMessage(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorMessage()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Triggers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Triggers()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Resources(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Resources()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Resources(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Resources(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Tag(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Tag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Tag(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Tag(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Language(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Language()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Language(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Language(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Width(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Width()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Width(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Width(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Height(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Height()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Height(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Height(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinWidth(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxWidth(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinHeight(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinHeight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxHeight(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxHeight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HorizontalAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HorizontalAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_VerticalAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().VerticalAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Margin(struct struct_Windows_UI_Xaml_Thickness* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Margin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Margin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Margin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Name(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Name(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BaseUri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BaseUri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DataContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DataContext(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DataContext(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Style(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Style()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Style(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Style(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Parent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Parent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FlowDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlowDirection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FlowDirection(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FlowDirection(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Loaded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Loaded(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Loaded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Loaded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Unloaded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Unloaded(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Unloaded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Unloaded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SizeChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SizeChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SizeChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SizeChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LayoutUpdated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LayoutUpdated(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LayoutUpdated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LayoutUpdated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall FindName(void* name, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FindName(*reinterpret_cast(&name))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetBinding(void* dp, void* binding) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetBinding(*reinterpret_cast(&dp), *reinterpret_cast(&binding)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RequestedTheme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedTheme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RequestedTheme(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RequestedTheme(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_DataContextChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DataContextChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DataContextChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DataContextChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall GetBindingExpression(void* dp, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetBindingExpression(*reinterpret_cast(&dp))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall add_Loading(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Loading(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Loading(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Loading(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowFocusOnInteraction(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowFocusOnInteraction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowFocusOnInteraction(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowFocusOnInteraction(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualMargin(struct struct_Windows_UI_Xaml_Thickness* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualMargin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualMargin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualSecondaryThickness(struct struct_Windows_UI_Xaml_Thickness* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualSecondaryThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualSecondaryThickness(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualSecondaryThickness(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualPrimaryThickness(struct struct_Windows_UI_Xaml_Thickness* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualPrimaryThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualPrimaryThickness(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualPrimaryThickness(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualSecondaryBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualSecondaryBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualSecondaryBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualSecondaryBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualPrimaryBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualPrimaryBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusVisualPrimaryBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusVisualPrimaryBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowFocusWhenDisabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowFocusWhenDisabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowFocusWhenDisabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowFocusWhenDisabled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualTheme(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualTheme()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ActualThemeChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ActualThemeChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ActualThemeChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ActualThemeChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsLoaded(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsLoaded()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_EffectiveViewportChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().EffectiveViewportChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_EffectiveViewportChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().EffectiveViewportChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall MeasureOverride(winrt::Windows::Foundation::Size availableSize, winrt::Windows::Foundation::Size* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MeasureOverride(*reinterpret_cast(&availableSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ArrangeOverride(winrt::Windows::Foundation::Size finalSize, winrt::Windows::Foundation::Size* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ArrangeOverride(*reinterpret_cast(&finalSize))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnApplyTemplate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnApplyTemplate(); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GoToElementStateCore(void* stateName, bool useTransitions, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GoToElementStateCore(*reinterpret_cast(&stateName), useTransitions)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall InvalidateViewport() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InvalidateViewport(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TagProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TagProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LanguageProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LanguageProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualWidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualWidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualHeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualHeightProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeightProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinWidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinWidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxWidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxWidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinHeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinHeightProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxHeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxHeightProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MarginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NameProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NameProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DataContextProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DataContextProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StyleProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StyleProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FlowDirectionProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlowDirectionProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RequestedThemeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RequestedThemeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_AllowFocusOnInteractionProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowFocusOnInteractionProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualMarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualMarginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualSecondaryThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualSecondaryThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualPrimaryThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualPrimaryThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualSecondaryBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualSecondaryBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusVisualPrimaryBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusVisualPrimaryBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowFocusWhenDisabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowFocusWhenDisabledProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall DeferTree(void* element) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DeferTree(*reinterpret_cast(&element)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualThemeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualThemeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Auto(struct struct_Windows_UI_Xaml_GridLength* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Auto()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromPixels(double pixels, struct struct_Windows_UI_Xaml_GridLength* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromPixels(pixels)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromValueAndType(double value, int32_t type, struct struct_Windows_UI_Xaml_GridLength* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromValueAndType(value, *reinterpret_cast(&type))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsAbsolute(struct struct_Windows_UI_Xaml_GridLength target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsAbsolute(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsAuto(struct struct_Windows_UI_Xaml_GridLength target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsAuto(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsStar(struct struct_Windows_UI_Xaml_GridLength target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsStar(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Equals(struct struct_Windows_UI_Xaml_GridLength target, struct struct_Windows_UI_Xaml_GridLength value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Equals(*reinterpret_cast(&target), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ErrorTrace(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ErrorTrace()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromCoordinates(float x, float y, winrt::Windows::Foundation::Point* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromCoordinates(x, y)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DefaultValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CreateDefaultValueCallback(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateDefaultValueCallback()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstanceWithDefaultValue(void* defaultValue, void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstanceWithDefaultValue(*reinterpret_cast(&defaultValue), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateInstanceWithDefaultValueAndCallback(void* defaultValue, void* propertyChangedCallback, void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstanceWithDefaultValueAndCallback(*reinterpret_cast(&defaultValue), *reinterpret_cast(&propertyChangedCallback), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateWithDefaultValue(void* defaultValue, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&defaultValue))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithDefaultValueAndCallback(void* defaultValue, void* propertyChangedCallback, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&defaultValue), *reinterpret_cast(&propertyChangedCallback))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithFactory(void* createDefaultValueCallback, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&createDefaultValueCallback))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CreateWithFactoryAndCallback(void* createDefaultValueCallback, void* propertyChangedCallback, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Create(*reinterpret_cast(&createDefaultValueCallback), *reinterpret_cast(&propertyChangedCallback))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Path(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Path()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* path, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&path))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Empty(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Empty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromCoordinatesAndDimensions(float x, float y, float width, float height, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromCoordinatesAndDimensions(x, y, width, height)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromPoints(winrt::Windows::Foundation::Point point1, winrt::Windows::Foundation::Point point2, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromPoints(*reinterpret_cast(&point1), *reinterpret_cast(&point2))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromLocationAndSize(winrt::Windows::Foundation::Point location, winrt::Windows::Foundation::Size size, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromLocationAndSize(*reinterpret_cast(&location), *reinterpret_cast(&size))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsEmpty(winrt::Windows::Foundation::Rect target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsEmpty(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetBottom(winrt::Windows::Foundation::Rect target, float* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetBottom(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetLeft(winrt::Windows::Foundation::Rect target, float* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetLeft(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRight(winrt::Windows::Foundation::Rect target, float* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetRight(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTop(winrt::Windows::Foundation::Rect target, float* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTop(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Contains(winrt::Windows::Foundation::Rect target, winrt::Windows::Foundation::Point point, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Contains(*reinterpret_cast(&target), *reinterpret_cast(&point))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Equals(winrt::Windows::Foundation::Rect target, winrt::Windows::Foundation::Rect value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Equals(*reinterpret_cast(&target), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Intersect(winrt::Windows::Foundation::Rect target, winrt::Windows::Foundation::Rect rect, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Intersect(*reinterpret_cast(&target), *reinterpret_cast(&rect))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnionWithPoint(winrt::Windows::Foundation::Rect target, winrt::Windows::Foundation::Point point, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Union(*reinterpret_cast(&target), *reinterpret_cast(&point))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UnionWithRect(winrt::Windows::Foundation::Rect target, winrt::Windows::Foundation::Rect rect, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Union(*reinterpret_cast(&target), *reinterpret_cast(&rect))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Source(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Source()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Source(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Source(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MergedDictionaries(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().MergedDictionaries()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ThemeDictionaries(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ThemeDictionaries()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OriginalSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OriginalSource()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Duration(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Duration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Property(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Property()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Property(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Property(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Target(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Target()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Target(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Target(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSealed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSealed()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSealed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSealed()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* targetProperty, void* value, void** instance) noexcept final try { clear_abi(instance); typename D::abi_guard guard(this->shim()); *instance = detach_from(this->shim().CreateInstance(*reinterpret_cast(&targetProperty), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreviousSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviousSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewSize()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Empty(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Empty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromDimensions(float width, float height, winrt::Windows::Foundation::Size* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromDimensions(width, height)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsEmpty(winrt::Windows::Foundation::Size target, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsEmpty(*reinterpret_cast(&target))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Equals(winrt::Windows::Foundation::Size target, winrt::Windows::Foundation::Size value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().Equals(*reinterpret_cast(&target), *reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsActive(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActive()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsActive(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsActive(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetActive(bool IsActive) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetActive(IsActive); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsActiveProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsActiveProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsSealed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSealed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Setters(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Setters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TargetType(struct struct_Windows_UI_Xaml_Interop_TypeName* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TargetType(struct struct_Windows_UI_Xaml_Interop_TypeName value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TargetType(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BasedOn(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BasedOn()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_BasedOn(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().BasedOn(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Seal() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Seal(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(struct struct_Windows_UI_Xaml_Interop_TypeName targetType, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&targetType))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Path(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Path()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Path(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Path(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Target(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Target()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Target(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Target(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* targetProperty, void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&targetProperty))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall FromLengths(double left, double top, double right, double bottom, struct struct_Windows_UI_Xaml_Thickness* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromLengths(left, top, right, bottom)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FromUniformLength(double uniformLength, struct struct_Windows_UI_Xaml_Thickness* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromUniformLength(uniformLength)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DesiredSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowDrop(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowDrop()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AllowDrop(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AllowDrop(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Opacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Opacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Opacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Opacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Clip(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Clip()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Clip(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Clip(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderTransform(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTransform()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RenderTransform(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RenderTransform(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Projection(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Projection()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Projection(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Projection(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderTransformOrigin(winrt::Windows::Foundation::Point* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTransformOrigin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RenderTransformOrigin(winrt::Windows::Foundation::Point value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RenderTransformOrigin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHitTestVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHitTestVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHitTestVisible(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHitTestVisible(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Visibility(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Visibility()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Visibility(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Visibility(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderSize(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseLayoutRounding(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseLayoutRounding()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_UseLayoutRounding(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UseLayoutRounding(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Transitions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transitions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Transitions(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Transitions(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CacheMode(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CacheMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CacheMode(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CacheMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsTapEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTapEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsTapEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsTapEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDoubleTapEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDoubleTapEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsDoubleTapEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsDoubleTapEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRightTapEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRightTapEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsRightTapEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsRightTapEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHoldingEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHoldingEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsHoldingEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsHoldingEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationMode(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ManipulationMode(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ManipulationMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerCaptures(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().PointerCaptures()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_KeyUp(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().KeyUp(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_KeyUp(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().KeyUp(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_KeyDown(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().KeyDown(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_KeyDown(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().KeyDown(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_GotFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GotFocus(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GotFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GotFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LostFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LostFocus(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LostFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LostFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DragEnter(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragEnter(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragEnter(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragEnter(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DragLeave(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragLeave(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragLeave(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragLeave(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DragOver(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragOver(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragOver(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragOver(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Drop(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Drop(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Drop(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Drop(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerPressed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerPressed(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerPressed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerPressed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerMoved(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerMoved(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerMoved(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerMoved(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerReleased(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerReleased(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerReleased(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerReleased(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerEntered(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerEntered(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerEntered(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerEntered(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerExited(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerExited(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerExited(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerExited(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerCaptureLost(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerCaptureLost(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerCaptureLost(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerCaptureLost(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerCanceled(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerCanceled(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerCanceled(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerCanceled(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PointerWheelChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PointerWheelChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PointerWheelChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PointerWheelChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Tapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Tapped(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Tapped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Tapped(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DoubleTapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DoubleTapped(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DoubleTapped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DoubleTapped(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Holding(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Holding(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Holding(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Holding(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_RightTapped(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().RightTapped(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_RightTapped(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().RightTapped(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationStarting(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationInertiaStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationInertiaStarting(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationInertiaStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationInertiaStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationStarted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationStarted(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationStarted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationStarted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationDelta(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationDelta(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationDelta(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationDelta(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ManipulationCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ManipulationCompleted(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ManipulationCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ManipulationCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall Measure(winrt::Windows::Foundation::Size availableSize) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Measure(*reinterpret_cast(&availableSize)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Arrange(winrt::Windows::Foundation::Rect finalRect) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Arrange(*reinterpret_cast(&finalRect)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CapturePointer(void* value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CapturePointer(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReleasePointerCapture(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReleasePointerCapture(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ReleasePointerCaptures() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReleasePointerCaptures(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall AddHandler(void* routedEvent, void* handler, bool handledEventsToo) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddHandler(*reinterpret_cast(&routedEvent), *reinterpret_cast(&handler), handledEventsToo); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RemoveHandler(void* routedEvent, void* handler) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RemoveHandler(*reinterpret_cast(&routedEvent), *reinterpret_cast(&handler)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TransformToVisual(void* visual, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TransformToVisual(*reinterpret_cast(&visual))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InvalidateMeasure() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InvalidateMeasure(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InvalidateArrange() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().InvalidateArrange(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall UpdateLayout() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().UpdateLayout(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ActualOffset(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualSize(winrt::Windows::Foundation::Numerics::float2* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XamlRoot(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XamlRoot()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XamlRoot(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XamlRoot(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UIContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UIContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Shadow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Shadow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Shadow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Shadow(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CompositeMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompositeMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CompositeMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CompositeMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CancelDirectManipulations(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CancelDirectManipulations()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Transform3D(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transform3D()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Transform3D(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Transform3D(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanDrag(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanDrag()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanDrag(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanDrag(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_DragStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DropCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DropCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DropCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DropCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall StartDragAsync(void* pointerPoint, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().StartDragAsync(*reinterpret_cast(&pointerPoint))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContextFlyout(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContextFlyout()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContextFlyout(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContextFlyout(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvoked(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExitDisplayModeOnAccessKeyInvoked()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExitDisplayModeOnAccessKeyInvoked(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExitDisplayModeOnAccessKeyInvoked(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAccessKeyScope(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAccessKeyScope()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsAccessKeyScope(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsAccessKeyScope(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AccessKeyScopeOwner(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AccessKeyScopeOwner()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AccessKeyScopeOwner(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AccessKeyScopeOwner(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AccessKey(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AccessKey()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AccessKey(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AccessKey(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ContextRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ContextRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ContextRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ContextRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ContextCanceled(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ContextCanceled(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ContextCanceled(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ContextCanceled(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AccessKeyDisplayRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AccessKeyDisplayRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AccessKeyDisplayRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AccessKeyDisplayRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AccessKeyDisplayDismissed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AccessKeyDisplayDismissed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AccessKeyDisplayDismissed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AccessKeyDisplayDismissed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_AccessKeyInvoked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().AccessKeyInvoked(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_AccessKeyInvoked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().AccessKeyInvoked(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Lights(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Lights()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipPlacementMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipPlacementMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyTipPlacementMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyTipPlacementMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipHorizontalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipHorizontalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyTipHorizontalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyTipHorizontalOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipVerticalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipVerticalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyTipVerticalOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyTipVerticalOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusKeyboardNavigation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusKeyboardNavigation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XYFocusKeyboardNavigation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XYFocusKeyboardNavigation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusUpNavigationStrategy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusUpNavigationStrategy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XYFocusUpNavigationStrategy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XYFocusUpNavigationStrategy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusDownNavigationStrategy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusDownNavigationStrategy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XYFocusDownNavigationStrategy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XYFocusDownNavigationStrategy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusLeftNavigationStrategy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusLeftNavigationStrategy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XYFocusLeftNavigationStrategy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XYFocusLeftNavigationStrategy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusRightNavigationStrategy(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusRightNavigationStrategy()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_XYFocusRightNavigationStrategy(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().XYFocusRightNavigationStrategy(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HighContrastAdjustment(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighContrastAdjustment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HighContrastAdjustment(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HighContrastAdjustment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TabFocusNavigation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TabFocusNavigation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TabFocusNavigation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TabFocusNavigation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_GettingFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().GettingFocus(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_GettingFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().GettingFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LosingFocus(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LosingFocus(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LosingFocus(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LosingFocus(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_NoFocusCandidateFound(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NoFocusCandidateFound(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NoFocusCandidateFound(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NoFocusCandidateFound(*reinterpret_cast(&token)); return 0; } int32_t __stdcall StartBringIntoView() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartBringIntoView(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartBringIntoViewWithOptions(void* options) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartBringIntoView(*reinterpret_cast(&options)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KeyboardAccelerators(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().KeyboardAccelerators()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CharacterReceived(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CharacterReceived(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CharacterReceived(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CharacterReceived(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ProcessKeyboardAccelerators(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ProcessKeyboardAccelerators(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ProcessKeyboardAccelerators(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ProcessKeyboardAccelerators(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PreviewKeyDown(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PreviewKeyDown(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PreviewKeyDown(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PreviewKeyDown(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PreviewKeyUp(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PreviewKeyUp(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PreviewKeyUp(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PreviewKeyUp(*reinterpret_cast(&token)); return 0; } int32_t __stdcall TryInvokeKeyboardAccelerator(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TryInvokeKeyboardAccelerator(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KeyTipTarget(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipTarget()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyTipTarget(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyTipTarget(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyboardAcceleratorPlacementTarget(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorPlacementTarget()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyboardAcceleratorPlacementTarget(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyboardAcceleratorPlacementTarget(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyboardAcceleratorPlacementMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorPlacementMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_KeyboardAcceleratorPlacementMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().KeyboardAcceleratorPlacementMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_BringIntoViewRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().BringIntoViewRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_BringIntoViewRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().BringIntoViewRequested(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanBeScrollAnchor(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanBeScrollAnchor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanBeScrollAnchor(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanBeScrollAnchor(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OpacityTransition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpacityTransition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OpacityTransition(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OpacityTransition(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Translation(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Translation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Translation(winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Translation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TranslationTransition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TranslationTransition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TranslationTransition(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TranslationTransition(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Rotation(float* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Rotation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Rotation(float value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Rotation(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RotationTransition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RotationTransition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RotationTransition(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RotationTransition(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Scale(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Scale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Scale(winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Scale(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScaleTransition(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScaleTransition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScaleTransition(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScaleTransition(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransformMatrix(winrt::Windows::Foundation::Numerics::float4x4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TransformMatrix()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_TransformMatrix(winrt::Windows::Foundation::Numerics::float4x4 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().TransformMatrix(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CenterPoint(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CenterPoint()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CenterPoint(winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CenterPoint(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RotationAxis(winrt::Windows::Foundation::Numerics::float3* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RotationAxis()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RotationAxis(winrt::Windows::Foundation::Numerics::float3 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RotationAxis(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StartAnimation(void* animation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StartAnimation(*reinterpret_cast(&animation)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall StopAnimation(void* animation) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopAnimation(*reinterpret_cast(&animation)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct produce : produce_base { int32_t __stdcall OnCreateAutomationPeer(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().OnCreateAutomationPeer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnDisconnectVisualChildren() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnDisconnectVisualChildren(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall FindSubElementsForTouchTargeting(winrt::Windows::Foundation::Point point, winrt::Windows::Foundation::Rect boundingRect, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>>(this->shim().FindSubElementsForTouchTargeting(*reinterpret_cast(&point), *reinterpret_cast(&boundingRect))); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall GetChildrenInTabFocusOrder(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetChildrenInTabFocusOrder()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnProcessKeyboardAccelerators(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnProcessKeyboardAccelerators(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall OnKeyboardAcceleratorInvoked(void* args) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnKeyboardAcceleratorInvoked(*reinterpret_cast(&args)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnBringIntoViewRequested(void* e) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnBringIntoViewRequested(*reinterpret_cast(&e)); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { int32_t __stdcall PopulatePropertyInfoOverride(void* propertyName, void* animationPropertyInfo) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PopulatePropertyInfoOverride(*reinterpret_cast(&propertyName), *reinterpret_cast(&animationPropertyInfo)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KeyDownEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyDownEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyUpEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyUpEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerEnteredEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerEnteredEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerPressedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerPressedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerMovedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerMovedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerReleasedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerReleasedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerExitedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerExitedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerCaptureLostEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerCaptureLostEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerCanceledEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerCanceledEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerWheelChangedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerWheelChangedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TappedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TappedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DoubleTappedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DoubleTappedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HoldingEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HoldingEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RightTappedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RightTappedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationStartingEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationStartingEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationInertiaStartingEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationInertiaStartingEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationStartedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationStartedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationDeltaEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationDeltaEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationCompletedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationCompletedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragEnterEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragEnterEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragLeaveEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragLeaveEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragOverEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragOverEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AllowDropProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AllowDropProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ClipProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClipProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderTransformProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTransformProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ProjectionProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ProjectionProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RenderTransformOriginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RenderTransformOriginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHitTestVisibleProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHitTestVisibleProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VisibilityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VisibilityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UseLayoutRoundingProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UseLayoutRoundingProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TransitionsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TransitionsProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CacheModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CacheModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsTapEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsTapEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsDoubleTapEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDoubleTapEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsRightTapEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsRightTapEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHoldingEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHoldingEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ManipulationModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ManipulationModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerCapturesProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerCapturesProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShadowProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShadowProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CompositeModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompositeModeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Transform3DProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Transform3DProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanDragProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanDragProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall TryStartDirectManipulation(void* value, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().TryStartDirectManipulation(*reinterpret_cast(&value))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContextFlyoutProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContextFlyoutProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExitDisplayModeOnAccessKeyInvokedProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExitDisplayModeOnAccessKeyInvokedProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsAccessKeyScopeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsAccessKeyScopeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AccessKeyScopeOwnerProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AccessKeyScopeOwnerProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AccessKeyProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AccessKeyProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LightsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightsProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipPlacementModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipPlacementModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipHorizontalOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipHorizontalOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipVerticalOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipVerticalOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusKeyboardNavigationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusKeyboardNavigationProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusUpNavigationStrategyProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusUpNavigationStrategyProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusDownNavigationStrategyProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusDownNavigationStrategyProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusLeftNavigationStrategyProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusLeftNavigationStrategyProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_XYFocusRightNavigationStrategyProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().XYFocusRightNavigationStrategyProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HighContrastAdjustmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HighContrastAdjustmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_TabFocusNavigationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TabFocusNavigationProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_GettingFocusEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GettingFocusEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LosingFocusEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LosingFocusEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NoFocusCandidateFoundEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NoFocusCandidateFoundEvent()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PreviewKeyDownEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewKeyDownEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CharacterReceivedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CharacterReceivedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PreviewKeyUpEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PreviewKeyUpEvent()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_BringIntoViewRequestedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BringIntoViewRequestedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContextRequestedEvent(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContextRequestedEvent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyTipTargetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyTipTargetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyboardAcceleratorPlacementTargetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorPlacementTargetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KeyboardAcceleratorPlacementModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorPlacementModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RegisterAsScrollPort(void* element) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RegisterAsScrollPort(*reinterpret_cast(&element)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanBeScrollAnchorProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanBeScrollAnchorProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Exception(winrt::hresult* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Exception()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Message(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Message()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Duration(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Duration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Duration(int64_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Duration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Components(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Components()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Components(uint32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Components(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Storyboard(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Storyboard()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Storyboard(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Storyboard(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Setters(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Setters()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StateTriggers(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().StateTriggers()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OldState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OldState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OldState(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OldState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NewState(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NewState(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Control(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Control()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Control(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Control(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Name(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Name()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Transitions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Transitions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_States(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().States()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentState(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_CurrentStateChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CurrentStateChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CurrentStateChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CurrentStateChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_CurrentStateChanging(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().CurrentStateChanging(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_CurrentStateChanging(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().CurrentStateChanging(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall GoToStateCore(void* control, void* templateRoot, void* stateName, void* group, void* state, bool useTransitions, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GoToStateCore(*reinterpret_cast(&control), *reinterpret_cast(&templateRoot), *reinterpret_cast(&stateName), *reinterpret_cast(&group), *reinterpret_cast(&state), useTransitions)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall RaiseCurrentStateChanging(void* stateGroup, void* oldState, void* newState, void* control) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RaiseCurrentStateChanging(*reinterpret_cast(&stateGroup), *reinterpret_cast(&oldState), *reinterpret_cast(&newState), *reinterpret_cast(&control)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall RaiseCurrentStateChanged(void* stateGroup, void* oldState, void* newState, void* control) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RaiseCurrentStateChanged(*reinterpret_cast(&stateGroup), *reinterpret_cast(&oldState), *reinterpret_cast(&newState), *reinterpret_cast(&control)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetVisualStateGroups(void* obj, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetVisualStateGroups(*reinterpret_cast(&obj))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CustomVisualStateManagerProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CustomVisualStateManagerProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetCustomVisualStateManager(void* obj, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetCustomVisualStateManager(*reinterpret_cast(&obj))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetCustomVisualStateManager(void* obj, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetCustomVisualStateManager(*reinterpret_cast(&obj), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GoToState(void* control, void* stateName, bool useTransitions, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GoToState(*reinterpret_cast(&control), *reinterpret_cast(&stateName), useTransitions)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_GeneratedDuration(struct struct_Windows_UI_Xaml_Duration* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GeneratedDuration()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GeneratedDuration(struct struct_Windows_UI_Xaml_Duration value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GeneratedDuration(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GeneratedEasingFunction(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GeneratedEasingFunction()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GeneratedEasingFunction(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GeneratedEasingFunction(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_To(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().To()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_To(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().To(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_From(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().From()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_From(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().From(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Storyboard(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Storyboard()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Storyboard(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Storyboard(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try { if (innerInterface) *innerInterface = nullptr; winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Bounds(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Bounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Visible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Visible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Content(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Content(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Content(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CoreWindow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CoreWindow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Dispatcher(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Dispatcher()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Activated(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Activated(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Activated(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Activated(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Closed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Closed(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Closed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Closed(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_SizeChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SizeChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SizeChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SizeChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VisibilityChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VisibilityChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VisibilityChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VisibilityChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall Activate() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Activate(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Close() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Close(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall SetTitleBar(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTitleBar(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Compositor(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Compositor()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_UIContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UIContext()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Window(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Window()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Current(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Current()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Content(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Content()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Size(winrt::Windows::Foundation::Size* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Size()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RasterizationScale(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RasterizationScale()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsHostVisible(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsHostVisible()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_UIContext(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().UIContext()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Changed(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Changed(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Changed(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Changed(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { }; #endif template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnActivated(winrt::Windows::ApplicationModel::Activation::IActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnActivated(args); } return this->shim().OnActivated(args); } auto OnLaunched(winrt::Windows::ApplicationModel::Activation::LaunchActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnLaunched(args); } return this->shim().OnLaunched(args); } auto OnFileActivated(winrt::Windows::ApplicationModel::Activation::FileActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnFileActivated(args); } return this->shim().OnFileActivated(args); } auto OnSearchActivated(winrt::Windows::ApplicationModel::Activation::SearchActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnSearchActivated(args); } return this->shim().OnSearchActivated(args); } auto OnShareTargetActivated(winrt::Windows::ApplicationModel::Activation::ShareTargetActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnShareTargetActivated(args); } return this->shim().OnShareTargetActivated(args); } auto OnFileOpenPickerActivated(winrt::Windows::ApplicationModel::Activation::FileOpenPickerActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnFileOpenPickerActivated(args); } return this->shim().OnFileOpenPickerActivated(args); } auto OnFileSavePickerActivated(winrt::Windows::ApplicationModel::Activation::FileSavePickerActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnFileSavePickerActivated(args); } return this->shim().OnFileSavePickerActivated(args); } auto OnCachedFileUpdaterActivated(winrt::Windows::ApplicationModel::Activation::CachedFileUpdaterActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnCachedFileUpdaterActivated(args); } return this->shim().OnCachedFileUpdaterActivated(args); } auto OnWindowCreated(winrt::Windows::UI::Xaml::WindowCreatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnWindowCreated(args); } return this->shim().OnWindowCreated(args); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnBackgroundActivated(winrt::Windows::ApplicationModel::Activation::BackgroundActivatedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnBackgroundActivated(args); } return this->shim().OnBackgroundActivated(args); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto MeasureOverride(winrt::Windows::Foundation::Size const& availableSize) { if (auto overridable = this->shim_overridable()) { return overridable.MeasureOverride(availableSize); } return this->shim().MeasureOverride(availableSize); } auto ArrangeOverride(winrt::Windows::Foundation::Size const& finalSize) { if (auto overridable = this->shim_overridable()) { return overridable.ArrangeOverride(finalSize); } return this->shim().ArrangeOverride(finalSize); } auto OnApplyTemplate() { if (auto overridable = this->shim_overridable()) { return overridable.OnApplyTemplate(); } return this->shim().OnApplyTemplate(); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto GoToElementStateCore(hstring const& stateName, bool useTransitions) { if (auto overridable = this->shim_overridable()) { return overridable.GoToElementStateCore(stateName, useTransitions); } return this->shim().GoToElementStateCore(stateName, useTransitions); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnCreateAutomationPeer() { if (auto overridable = this->shim_overridable()) { return overridable.OnCreateAutomationPeer(); } return this->shim().OnCreateAutomationPeer(); } auto OnDisconnectVisualChildren() { if (auto overridable = this->shim_overridable()) { return overridable.OnDisconnectVisualChildren(); } return this->shim().OnDisconnectVisualChildren(); } auto FindSubElementsForTouchTargeting(winrt::Windows::Foundation::Point const& point, winrt::Windows::Foundation::Rect const& boundingRect) { if (auto overridable = this->shim_overridable()) { return overridable.FindSubElementsForTouchTargeting(point, boundingRect); } return this->shim().FindSubElementsForTouchTargeting(point, boundingRect); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto GetChildrenInTabFocusOrder() { if (auto overridable = this->shim_overridable()) { return overridable.GetChildrenInTabFocusOrder(); } return this->shim().GetChildrenInTabFocusOrder(); } auto OnProcessKeyboardAccelerators(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnProcessKeyboardAccelerators(args); } return this->shim().OnProcessKeyboardAccelerators(args); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnKeyboardAcceleratorInvoked(winrt::Windows::UI::Xaml::Input::KeyboardAcceleratorInvokedEventArgs const& args) { if (auto overridable = this->shim_overridable()) { return overridable.OnKeyboardAcceleratorInvoked(args); } return this->shim().OnKeyboardAcceleratorInvoked(args); } auto OnBringIntoViewRequested(winrt::Windows::UI::Xaml::BringIntoViewRequestedEventArgs const& e) { if (auto overridable = this->shim_overridable()) { return overridable.OnBringIntoViewRequested(e); } return this->shim().OnBringIntoViewRequested(e); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto PopulatePropertyInfoOverride(hstring const& propertyName, winrt::Windows::UI::Composition::AnimationPropertyInfo const& animationPropertyInfo) { if (auto overridable = this->shim_overridable()) { return overridable.PopulatePropertyInfoOverride(propertyName, animationPropertyInfo); } return this->shim().PopulatePropertyInfoOverride(propertyName, animationPropertyInfo); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto GoToStateCore(winrt::Windows::UI::Xaml::Controls::Control const& control, winrt::Windows::UI::Xaml::FrameworkElement const& templateRoot, hstring const& stateName, winrt::Windows::UI::Xaml::VisualStateGroup const& group, winrt::Windows::UI::Xaml::VisualState const& state, bool useTransitions) { if (auto overridable = this->shim_overridable()) { return overridable.GoToStateCore(control, templateRoot, stateName, group, state, useTransitions); } return this->shim().GoToStateCore(control, templateRoot, stateName, group, state, useTransitions); } }; } WINRT_EXPORT namespace winrt::Windows::UI::Xaml { constexpr auto operator|(ApplicationHighContrastAdjustment const left, ApplicationHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(ApplicationHighContrastAdjustment& left, ApplicationHighContrastAdjustment const right) noexcept { left = left | right; return left; } constexpr auto operator&(ApplicationHighContrastAdjustment const left, ApplicationHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(ApplicationHighContrastAdjustment& left, ApplicationHighContrastAdjustment const right) noexcept { left = left & right; return left; } constexpr auto operator~(ApplicationHighContrastAdjustment const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(ApplicationHighContrastAdjustment const left, ApplicationHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(ApplicationHighContrastAdjustment& left, ApplicationHighContrastAdjustment const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(ElementHighContrastAdjustment const left, ElementHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(ElementHighContrastAdjustment& left, ElementHighContrastAdjustment const right) noexcept { left = left | right; return left; } constexpr auto operator&(ElementHighContrastAdjustment const left, ElementHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(ElementHighContrastAdjustment& left, ElementHighContrastAdjustment const right) noexcept { left = left & right; return left; } constexpr auto operator~(ElementHighContrastAdjustment const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(ElementHighContrastAdjustment const left, ElementHighContrastAdjustment const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(ElementHighContrastAdjustment& left, ElementHighContrastAdjustment const right) noexcept { left = left ^ right; return left; } constexpr auto operator|(Vector3TransitionComponents const left, Vector3TransitionComponents const right) noexcept { return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); } constexpr auto operator|=(Vector3TransitionComponents& left, Vector3TransitionComponents const right) noexcept { left = left | right; return left; } constexpr auto operator&(Vector3TransitionComponents const left, Vector3TransitionComponents const right) noexcept { return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); } constexpr auto operator&=(Vector3TransitionComponents& left, Vector3TransitionComponents const right) noexcept { left = left & right; return left; } constexpr auto operator~(Vector3TransitionComponents const value) noexcept { return static_cast(~impl::to_underlying_type(value)); } constexpr auto operator^(Vector3TransitionComponents const left, Vector3TransitionComponents const right) noexcept { return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); } constexpr auto operator^=(Vector3TransitionComponents& left, Vector3TransitionComponents const right) noexcept { left = left ^ right; return left; } inline AdaptiveTrigger::AdaptiveTrigger() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IAdaptiveTriggerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto AdaptiveTrigger::MinWindowWidthProperty() { return impl::call_factory_cast([](IAdaptiveTriggerStatics const& f) { return f.MinWindowWidthProperty(); }); } inline auto AdaptiveTrigger::MinWindowHeightProperty() { return impl::call_factory_cast([](IAdaptiveTriggerStatics const& f) { return f.MinWindowHeightProperty(); }); } inline Application::Application() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IApplicationFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto Application::Current() { return impl::call_factory_cast([](IApplicationStatics const& f) { return f.Current(); }); } inline auto Application::Start(winrt::Windows::UI::Xaml::ApplicationInitializationCallback const& callback) { impl::call_factory([&](IApplicationStatics const& f) { return f.Start(callback); }); } inline auto Application::LoadComponent(winrt::Windows::Foundation::IInspectable const& component, winrt::Windows::Foundation::Uri const& resourceLocator) { impl::call_factory([&](IApplicationStatics const& f) { return f.LoadComponent(component, resourceLocator); }); } inline auto Application::LoadComponent(winrt::Windows::Foundation::IInspectable const& component, winrt::Windows::Foundation::Uri const& resourceLocator, winrt::Windows::UI::Xaml::Controls::Primitives::ComponentResourceLocation const& componentResourceLocation) { impl::call_factory([&](IApplicationStatics const& f) { return f.LoadComponent(component, resourceLocator, componentResourceLocation); }); } inline BringIntoViewOptions::BringIntoViewOptions() : BringIntoViewOptions(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline BrushTransition::BrushTransition() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IBrushTransitionFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline ColorPaletteResources::ColorPaletteResources() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IColorPaletteResourcesFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto CornerRadiusHelper::FromRadii(double topLeft, double topRight, double bottomRight, double bottomLeft) { return impl::call_factory([&](ICornerRadiusHelperStatics const& f) { return f.FromRadii(topLeft, topRight, bottomRight, bottomLeft); }); } inline auto CornerRadiusHelper::FromUniformRadius(double uniformRadius) { return impl::call_factory([&](ICornerRadiusHelperStatics const& f) { return f.FromUniformRadius(uniformRadius); }); } inline DataTemplate::DataTemplate() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDataTemplateFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto DataTemplate::ExtensionInstanceProperty() { return impl::call_factory_cast([](IDataTemplateStatics2 const& f) { return f.ExtensionInstanceProperty(); }); } inline auto DataTemplate::GetExtensionInstance(winrt::Windows::UI::Xaml::FrameworkElement const& element) { return impl::call_factory([&](IDataTemplateStatics2 const& f) { return f.GetExtensionInstance(element); }); } inline auto DataTemplate::SetExtensionInstance(winrt::Windows::UI::Xaml::FrameworkElement const& element, winrt::Windows::UI::Xaml::IDataTemplateExtension const& value) { impl::call_factory([&](IDataTemplateStatics2 const& f) { return f.SetExtensionInstance(element, value); }); } inline DataTemplateKey::DataTemplateKey() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDataTemplateKeyFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline DataTemplateKey::DataTemplateKey(winrt::Windows::Foundation::IInspectable const& dataType) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDataTemplateKeyFactory const& f) { return f.CreateInstanceWithType(dataType, baseInterface, innerInterface); }); } inline DependencyObjectCollection::DependencyObjectCollection() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDependencyObjectCollectionFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto DependencyProperty::UnsetValue() { return impl::call_factory_cast([](IDependencyPropertyStatics const& f) { return f.UnsetValue(); }); } inline auto DependencyProperty::Register(param::hstring const& name, winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, winrt::Windows::UI::Xaml::PropertyMetadata const& typeMetadata) { return impl::call_factory([&](IDependencyPropertyStatics const& f) { return f.Register(name, propertyType, ownerType, typeMetadata); }); } inline auto DependencyProperty::RegisterAttached(param::hstring const& name, winrt::Windows::UI::Xaml::Interop::TypeName const& propertyType, winrt::Windows::UI::Xaml::Interop::TypeName const& ownerType, winrt::Windows::UI::Xaml::PropertyMetadata const& defaultMetadata) { return impl::call_factory([&](IDependencyPropertyStatics const& f) { return f.RegisterAttached(name, propertyType, ownerType, defaultMetadata); }); } inline DispatcherTimer::DispatcherTimer() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDispatcherTimerFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto DurationHelper::Automatic() { return impl::call_factory_cast([](IDurationHelperStatics const& f) { return f.Automatic(); }); } inline auto DurationHelper::Forever() { return impl::call_factory_cast([](IDurationHelperStatics const& f) { return f.Forever(); }); } inline auto DurationHelper::Compare(winrt::Windows::UI::Xaml::Duration const& duration1, winrt::Windows::UI::Xaml::Duration const& duration2) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.Compare(duration1, duration2); }); } inline auto DurationHelper::FromTimeSpan(winrt::Windows::Foundation::TimeSpan const& timeSpan) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.FromTimeSpan(timeSpan); }); } inline auto DurationHelper::GetHasTimeSpan(winrt::Windows::UI::Xaml::Duration const& target) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.GetHasTimeSpan(target); }); } inline auto DurationHelper::Add(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& duration) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.Add(target, duration); }); } inline auto DurationHelper::Equals(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& value) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.Equals(target, value); }); } inline auto DurationHelper::Subtract(winrt::Windows::UI::Xaml::Duration const& target, winrt::Windows::UI::Xaml::Duration const& duration) { return impl::call_factory([&](IDurationHelperStatics const& f) { return f.Subtract(target, duration); }); } inline ElementFactoryGetArgs::ElementFactoryGetArgs() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IElementFactoryGetArgsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline ElementFactoryRecycleArgs::ElementFactoryRecycleArgs() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IElementFactoryRecycleArgsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ElementSoundPlayer::Volume() { return impl::call_factory_cast([](IElementSoundPlayerStatics const& f) { return f.Volume(); }); } inline auto ElementSoundPlayer::Volume(double value) { impl::call_factory([&](IElementSoundPlayerStatics const& f) { return f.Volume(value); }); } inline auto ElementSoundPlayer::State() { return impl::call_factory_cast([](IElementSoundPlayerStatics const& f) { return f.State(); }); } inline auto ElementSoundPlayer::State(winrt::Windows::UI::Xaml::ElementSoundPlayerState const& value) { impl::call_factory([&](IElementSoundPlayerStatics const& f) { return f.State(value); }); } inline auto ElementSoundPlayer::Play(winrt::Windows::UI::Xaml::ElementSoundKind const& sound) { impl::call_factory([&](IElementSoundPlayerStatics const& f) { return f.Play(sound); }); } inline auto ElementSoundPlayer::SpatialAudioMode() { return impl::call_factory_cast([](IElementSoundPlayerStatics2 const& f) { return f.SpatialAudioMode(); }); } inline auto ElementSoundPlayer::SpatialAudioMode(winrt::Windows::UI::Xaml::ElementSpatialAudioMode const& value) { impl::call_factory([&](IElementSoundPlayerStatics2 const& f) { return f.SpatialAudioMode(value); }); } inline EventTrigger::EventTrigger() : EventTrigger(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto FrameworkElement::TagProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.TagProperty(); }); } inline auto FrameworkElement::LanguageProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.LanguageProperty(); }); } inline auto FrameworkElement::ActualWidthProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.ActualWidthProperty(); }); } inline auto FrameworkElement::ActualHeightProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.ActualHeightProperty(); }); } inline auto FrameworkElement::WidthProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.WidthProperty(); }); } inline auto FrameworkElement::HeightProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.HeightProperty(); }); } inline auto FrameworkElement::MinWidthProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.MinWidthProperty(); }); } inline auto FrameworkElement::MaxWidthProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.MaxWidthProperty(); }); } inline auto FrameworkElement::MinHeightProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.MinHeightProperty(); }); } inline auto FrameworkElement::MaxHeightProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.MaxHeightProperty(); }); } inline auto FrameworkElement::HorizontalAlignmentProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.HorizontalAlignmentProperty(); }); } inline auto FrameworkElement::VerticalAlignmentProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.VerticalAlignmentProperty(); }); } inline auto FrameworkElement::MarginProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.MarginProperty(); }); } inline auto FrameworkElement::NameProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.NameProperty(); }); } inline auto FrameworkElement::DataContextProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.DataContextProperty(); }); } inline auto FrameworkElement::StyleProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.StyleProperty(); }); } inline auto FrameworkElement::FlowDirectionProperty() { return impl::call_factory_cast([](IFrameworkElementStatics const& f) { return f.FlowDirectionProperty(); }); } inline auto FrameworkElement::RequestedThemeProperty() { return impl::call_factory_cast([](IFrameworkElementStatics2 const& f) { return f.RequestedThemeProperty(); }); } inline auto FrameworkElement::AllowFocusOnInteractionProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.AllowFocusOnInteractionProperty(); }); } inline auto FrameworkElement::FocusVisualMarginProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.FocusVisualMarginProperty(); }); } inline auto FrameworkElement::FocusVisualSecondaryThicknessProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.FocusVisualSecondaryThicknessProperty(); }); } inline auto FrameworkElement::FocusVisualPrimaryThicknessProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.FocusVisualPrimaryThicknessProperty(); }); } inline auto FrameworkElement::FocusVisualSecondaryBrushProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.FocusVisualSecondaryBrushProperty(); }); } inline auto FrameworkElement::FocusVisualPrimaryBrushProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.FocusVisualPrimaryBrushProperty(); }); } inline auto FrameworkElement::AllowFocusWhenDisabledProperty() { return impl::call_factory_cast([](IFrameworkElementStatics4 const& f) { return f.AllowFocusWhenDisabledProperty(); }); } inline auto FrameworkElement::DeferTree(winrt::Windows::UI::Xaml::DependencyObject const& element) { impl::call_factory([&](IFrameworkElementStatics5 const& f) { return f.DeferTree(element); }); } inline auto FrameworkElement::ActualThemeProperty() { return impl::call_factory_cast([](IFrameworkElementStatics6 const& f) { return f.ActualThemeProperty(); }); } inline FrameworkView::FrameworkView() : FrameworkView(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline FrameworkViewSource::FrameworkViewSource() : FrameworkViewSource(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto GridLengthHelper::Auto() { return impl::call_factory_cast([](IGridLengthHelperStatics const& f) { return f.Auto(); }); } inline auto GridLengthHelper::FromPixels(double pixels) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.FromPixels(pixels); }); } inline auto GridLengthHelper::FromValueAndType(double value, winrt::Windows::UI::Xaml::GridUnitType const& type) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.FromValueAndType(value, type); }); } inline auto GridLengthHelper::GetIsAbsolute(winrt::Windows::UI::Xaml::GridLength const& target) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.GetIsAbsolute(target); }); } inline auto GridLengthHelper::GetIsAuto(winrt::Windows::UI::Xaml::GridLength const& target) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.GetIsAuto(target); }); } inline auto GridLengthHelper::GetIsStar(winrt::Windows::UI::Xaml::GridLength const& target) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.GetIsStar(target); }); } inline auto GridLengthHelper::Equals(winrt::Windows::UI::Xaml::GridLength const& target, winrt::Windows::UI::Xaml::GridLength const& value) { return impl::call_factory([&](IGridLengthHelperStatics const& f) { return f.Equals(target, value); }); } inline auto PointHelper::FromCoordinates(float x, float y) { return impl::call_factory([&](IPointHelperStatics const& f) { return f.FromCoordinates(x, y); }); } inline PropertyMetadata::PropertyMetadata(winrt::Windows::Foundation::IInspectable const& defaultValue) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IPropertyMetadataFactory const& f) { return f.CreateInstanceWithDefaultValue(defaultValue, baseInterface, innerInterface); }); } inline PropertyMetadata::PropertyMetadata(winrt::Windows::Foundation::IInspectable const& defaultValue, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IPropertyMetadataFactory const& f) { return f.CreateInstanceWithDefaultValueAndCallback(defaultValue, propertyChangedCallback, baseInterface, innerInterface); }); } inline auto PropertyMetadata::Create(winrt::Windows::Foundation::IInspectable const& defaultValue) { return impl::call_factory([&](IPropertyMetadataStatics const& f) { return f.Create(defaultValue); }); } inline auto PropertyMetadata::Create(winrt::Windows::Foundation::IInspectable const& defaultValue, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback) { return impl::call_factory([&](IPropertyMetadataStatics const& f) { return f.Create(defaultValue, propertyChangedCallback); }); } inline auto PropertyMetadata::Create(winrt::Windows::UI::Xaml::CreateDefaultValueCallback const& createDefaultValueCallback) { return impl::call_factory([&](IPropertyMetadataStatics const& f) { return f.Create(createDefaultValueCallback); }); } inline auto PropertyMetadata::Create(winrt::Windows::UI::Xaml::CreateDefaultValueCallback const& createDefaultValueCallback, winrt::Windows::UI::Xaml::PropertyChangedCallback const& propertyChangedCallback) { return impl::call_factory([&](IPropertyMetadataStatics const& f) { return f.Create(createDefaultValueCallback, propertyChangedCallback); }); } inline PropertyPath::PropertyPath(param::hstring const& path) : PropertyPath(impl::call_factory([&](IPropertyPathFactory const& f) { return f.CreateInstance(path); })) { } inline auto RectHelper::Empty() { return impl::call_factory_cast([](IRectHelperStatics const& f) { return f.Empty(); }); } inline auto RectHelper::FromCoordinatesAndDimensions(float x, float y, float width, float height) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.FromCoordinatesAndDimensions(x, y, width, height); }); } inline auto RectHelper::FromPoints(winrt::Windows::Foundation::Point const& point1, winrt::Windows::Foundation::Point const& point2) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.FromPoints(point1, point2); }); } inline auto RectHelper::FromLocationAndSize(winrt::Windows::Foundation::Point const& location, winrt::Windows::Foundation::Size const& size) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.FromLocationAndSize(location, size); }); } inline auto RectHelper::GetIsEmpty(winrt::Windows::Foundation::Rect const& target) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.GetIsEmpty(target); }); } inline auto RectHelper::GetBottom(winrt::Windows::Foundation::Rect const& target) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.GetBottom(target); }); } inline auto RectHelper::GetLeft(winrt::Windows::Foundation::Rect const& target) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.GetLeft(target); }); } inline auto RectHelper::GetRight(winrt::Windows::Foundation::Rect const& target) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.GetRight(target); }); } inline auto RectHelper::GetTop(winrt::Windows::Foundation::Rect const& target) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.GetTop(target); }); } inline auto RectHelper::Contains(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Point const& point) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.Contains(target, point); }); } inline auto RectHelper::Equals(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& value) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.Equals(target, value); }); } inline auto RectHelper::Intersect(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& rect) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.Intersect(target, rect); }); } inline auto RectHelper::Union(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Point const& point) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.Union(target, point); }); } inline auto RectHelper::Union(winrt::Windows::Foundation::Rect const& target, winrt::Windows::Foundation::Rect const& rect) { return impl::call_factory([&](IRectHelperStatics const& f) { return f.Union(target, rect); }); } inline ResourceDictionary::ResourceDictionary() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IResourceDictionaryFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline RoutedEventArgs::RoutedEventArgs() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IRoutedEventArgsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline ScalarTransition::ScalarTransition() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IScalarTransitionFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline Setter::Setter() : Setter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Setter::Setter(winrt::Windows::UI::Xaml::DependencyProperty const& targetProperty, winrt::Windows::Foundation::IInspectable const& value) : Setter(impl::call_factory([&](ISetterFactory const& f) { return f.CreateInstance(targetProperty, value); })) { } inline SetterBaseCollection::SetterBaseCollection() : SetterBaseCollection(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto SizeHelper::Empty() { return impl::call_factory_cast([](ISizeHelperStatics const& f) { return f.Empty(); }); } inline auto SizeHelper::FromDimensions(float width, float height) { return impl::call_factory([&](ISizeHelperStatics const& f) { return f.FromDimensions(width, height); }); } inline auto SizeHelper::GetIsEmpty(winrt::Windows::Foundation::Size const& target) { return impl::call_factory([&](ISizeHelperStatics const& f) { return f.GetIsEmpty(target); }); } inline auto SizeHelper::Equals(winrt::Windows::Foundation::Size const& target, winrt::Windows::Foundation::Size const& value) { return impl::call_factory([&](ISizeHelperStatics const& f) { return f.Equals(target, value); }); } inline StateTrigger::StateTrigger() : StateTrigger(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto StateTrigger::IsActiveProperty() { return impl::call_factory_cast([](IStateTriggerStatics const& f) { return f.IsActiveProperty(); }); } inline Style::Style() : Style(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance