// C++/WinRT v2.0.250303.1 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_UI_Xaml_Controls_Primitives_H #define WINRT_Windows_UI_Xaml_Controls_Primitives_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.250303.1" #include "winrt/Windows.UI.Xaml.Controls.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.UI.2.h" #include "winrt/impl/Windows.UI.Composition.2.h" #include "winrt/impl/Windows.UI.Xaml.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.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.Media.2.h" #include "winrt/impl/Windows.UI.Xaml.Media.Animation.2.h" #include "winrt/impl/Windows.UI.Xaml.Controls.Primitives.2.h" namespace winrt::impl { template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarButtonTemplateSettings::KeyboardAcceleratorTextMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::ClipRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::CompactVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CompactVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CompactVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::CompactRootMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CompactRootMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CompactRootMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::MinimalVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinimalVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinimalVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::MinimalRootMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinimalRootMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinimalRootMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::HiddenVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HiddenVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HiddenVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings::HiddenRootMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HiddenRootMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HiddenRootMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings2::NegativeCompactVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeCompactVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeCompactVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings2::NegativeMinimalVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeMinimalVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeMinimalVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarTemplateSettings2::NegativeHiddenVerticalDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeHiddenVerticalDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeHiddenVerticalDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IAppBarToggleButtonTemplateSettings::KeyboardAcceleratorTextMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::ClickMode() const { winrt::Windows::UI::Xaml::Controls::ClickMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ClickMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ClickMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::ClickMode(winrt::Windows::UI::Xaml::Controls::ClickMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ClickMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ClickMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::IsPointerOver() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPointerOver(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPointerOver(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::IsPressed() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPressed(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPressed(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::Command() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Command(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Command(&value)); } return winrt::Windows::UI::Xaml::Input::ICommand{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::Command(winrt::Windows::UI::Xaml::Input::ICommand const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Command(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::CommandParameter() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CommandParameter(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CommandParameter(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::CommandParameter(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CommandParameter(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::Click(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Click(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::Click(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Click(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBase::Click(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Click(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Click(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::ButtonBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseStatics::ClickModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ClickModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ClickModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseStatics::IsPointerOverProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPointerOverProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPointerOverProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseStatics::IsPressedProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsPressedProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsPressedProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseStatics::CommandProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CommandProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CommandProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IButtonBaseStatics::CommandParameterProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CommandParameterProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::MinViewWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinViewWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinViewWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::HeaderText() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HeaderText(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HeaderText(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay1() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay1(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay1(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay2() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay2(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay2(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay3() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay3(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay3(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay4() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay4(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay4(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay5() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay5(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay5(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay6() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay6(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay6(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::WeekDay7() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WeekDay7(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WeekDay7(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::HasMoreContentAfter() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasMoreContentAfter(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasMoreContentAfter(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::HasMoreContentBefore() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasMoreContentBefore(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasMoreContentBefore(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::HasMoreViews() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HasMoreViews(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HasMoreViews(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::ClipRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ClipRect(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::CenterX() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CenterX(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CenterX(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICalendarViewTemplateSettings::CenterY() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CenterY(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CenterY(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::CanVerticallyScroll() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::CanVerticallyScroll(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::CanHorizontallyScroll() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::CanHorizontallyScroll(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ExtentWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ExtentHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ViewportWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ViewportHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::HorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::VerticalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ScrollOwner() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::ScrollOwner(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::LineUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::LineDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::LineLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::LineRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::PageUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::PageDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::PageLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::PageRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::MouseWheelUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::MouseWheelDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::MouseWheelLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::MouseWheelRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::SetHorizontalOffset(double offset) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::SetVerticalOffset(double offset) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanel::MakeVisible(winrt::Windows::UI::Xaml::UIElement const& visual, winrt::Windows::Foundation::Rect const& rectangle) const { winrt::Windows::Foundation::Rect result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICarouselPanelFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::CarouselPanel{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorPickerSlider::ColorChannel() const { winrt::Windows::UI::Xaml::Controls::ColorPickerHsvChannel value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ColorChannel(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ColorChannel(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorPickerSlider::ColorChannel(winrt::Windows::UI::Xaml::Controls::ColorPickerHsvChannel const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ColorChannel(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ColorChannel(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorPickerSliderFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::ColorPickerSlider{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorPickerSliderStatics::ColorChannelProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ColorChannelProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ColorChannelProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Color() const { winrt::Windows::UI::Color value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Color(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Color(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Color(winrt::Windows::UI::Color const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Color(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::HsvColor() const { winrt::Windows::Foundation::Numerics::float4 value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HsvColor(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HsvColor(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::HsvColor(winrt::Windows::Foundation::Numerics::float4 const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_HsvColor(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_HsvColor(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinHue() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinHue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinHue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinHue(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MinHue(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MinHue(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxHue() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxHue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxHue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxHue(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MaxHue(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MaxHue(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinSaturation() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinSaturation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinSaturation(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinSaturation(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MinSaturation(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MinSaturation(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxSaturation() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxSaturation(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxSaturation(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MaxSaturation(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MaxSaturation(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinValue() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinValue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MinValue(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MinValue(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MinValue(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxValue() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxValue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::MaxValue(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_MaxValue(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_MaxValue(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Shape() const { winrt::Windows::UI::Xaml::Controls::ColorSpectrumShape value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Shape(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Shape(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Shape(winrt::Windows::UI::Xaml::Controls::ColorSpectrumShape const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Shape(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Shape(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Components() const { winrt::Windows::UI::Xaml::Controls::ColorSpectrumComponents value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Components(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Components(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::Components(winrt::Windows::UI::Xaml::Controls::ColorSpectrumComponents const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Components(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Components(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::ColorChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ColorChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::ColorChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ColorChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrum::ColorChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ColorChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::ColorSpectrum{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::ColorProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ColorProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ColorProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::HsvColorProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HsvColorProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HsvColorProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MinHueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinHueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MaxHueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxHueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MinSaturationProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinSaturationProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MaxSaturationProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxSaturationProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MinValueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinValueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::MaxValueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxValueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::ShapeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShapeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IColorSpectrumStatics::ComponentsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ComponentsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ComponentsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings::DropDownOpenedHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DropDownOpenedHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DropDownOpenedHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings::DropDownClosedHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DropDownClosedHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DropDownClosedHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings::DropDownOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DropDownOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DropDownOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings::SelectedItemDirection() const { winrt::Windows::UI::Xaml::Controls::Primitives::AnimationDirection value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedItemDirection(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedItemDirection(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IComboBoxTemplateSettings2::DropDownContentMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DropDownContentMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DropDownContentMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBar::FlyoutTemplateSettings() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FlyoutTemplateSettings(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FlyoutTemplateSettings(&value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::CommandBarFlyoutCommandBarTemplateSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::CommandBarFlyoutCommandBar{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::OpenAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OpenAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OpenAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::OpenAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OpenAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OpenAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::CloseAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CloseAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CloseAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::CurrentWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurrentWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurrentWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandedWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandedWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandedWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::WidthExpansionDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidthExpansionDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidthExpansionDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::WidthExpansionAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidthExpansionAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidthExpansionAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::WidthExpansionAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidthExpansionAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidthExpansionAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::WidthExpansionMoreButtonAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidthExpansionMoreButtonAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidthExpansionMoreButtonAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::WidthExpansionMoreButtonAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_WidthExpansionMoreButtonAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_WidthExpansionMoreButtonAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandUpOverflowVerticalPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandUpOverflowVerticalPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandUpOverflowVerticalPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandDownOverflowVerticalPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandDownOverflowVerticalPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandDownOverflowVerticalPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandUpAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandUpAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandUpAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandUpAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandUpAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandUpAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandUpAnimationHoldPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandUpAnimationHoldPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandUpAnimationHoldPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandDownAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandDownAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandDownAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandDownAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandDownAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandDownAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ExpandDownAnimationHoldPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExpandDownAnimationHoldPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExpandDownAnimationHoldPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::ContentClipRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentClipRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentClipRect(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarFlyoutCommandBarTemplateSettings::OverflowContentClipRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::ContentHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::OverflowContentClipRect() const { winrt::Windows::Foundation::Rect value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentClipRect(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::OverflowContentMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::OverflowContentMaxHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentMaxHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentMaxHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::OverflowContentHorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentHorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentHorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::OverflowContentHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings::NegativeOverflowContentHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeOverflowContentHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeOverflowContentHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings2::OverflowContentMaxWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentMaxWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentMaxWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings3::EffectiveOverflowButtonVisibility() const { winrt::Windows::UI::Xaml::Visibility value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EffectiveOverflowButtonVisibility(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EffectiveOverflowButtonVisibility(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings4::OverflowContentCompactYTranslation() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentCompactYTranslation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentCompactYTranslation(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings4::OverflowContentMinimalYTranslation() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentMinimalYTranslation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentMinimalYTranslation(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ICommandBarTemplateSettings4::OverflowContentHiddenYTranslation() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverflowContentHiddenYTranslation(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverflowContentHiddenYTranslation(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs::HorizontalChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs::VerticalChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragCompletedEventArgs::Canceled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Canceled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Canceled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragCompletedEventArgsFactory::CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(double horizontalChange, double verticalChange, bool canceled, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::DragCompletedEventArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragDeltaEventArgs::HorizontalChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragDeltaEventArgs::VerticalChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragDeltaEventArgsFactory::CreateInstanceWithHorizontalChangeAndVerticalChange(double horizontalChange, double verticalChange, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::DragDeltaEventArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragStartedEventArgs::HorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragStartedEventArgs::VerticalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IDragStartedEventArgsFactory::CreateInstanceWithHorizontalOffsetAndVerticalOffset(double horizontalOffset, double verticalOffset, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::DragStartedEventArgs{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Placement() const { winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Placement(winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Opened(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opened(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Opened(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Opened(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Closed(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Closed(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Closed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Closed(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Opening(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Opening(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Opening(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Opening(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Opening(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::ShowAt(winrt::Windows::UI::Xaml::FrameworkElement const& placementTarget) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase::Hide() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->Hide()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->Hide()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::Target() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Target(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Target(&value)); } return winrt::Windows::UI::Xaml::FrameworkElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::AllowFocusOnInteraction() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowFocusOnInteraction(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::AllowFocusOnInteraction(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllowFocusOnInteraction(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::LightDismissOverlayMode() const { winrt::Windows::UI::Xaml::Controls::LightDismissOverlayMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::LightDismissOverlayMode(winrt::Windows::UI::Xaml::Controls::LightDismissOverlayMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::AllowFocusWhenDisabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::AllowFocusWhenDisabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AllowFocusWhenDisabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::ElementSoundMode() const { winrt::Windows::UI::Xaml::ElementSoundMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ElementSoundMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ElementSoundMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::ElementSoundMode(winrt::Windows::UI::Xaml::ElementSoundMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ElementSoundMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ElementSoundMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::Closing(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Closing(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::Closing(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, Closing(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase2::Closing(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Closing(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Closing(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase3::OverlayInputPassThroughElement() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElement(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElement(&value)); } return winrt::Windows::UI::Xaml::DependencyObject{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase3::OverlayInputPassThroughElement(winrt::Windows::UI::Xaml::DependencyObject const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_OverlayInputPassThroughElement(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_OverlayInputPassThroughElement(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase4::TryInvokeKeyboardAccelerator(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->TryInvokeKeyboardAccelerator(*(void**)(&args))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::ShowMode() const { winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::ShowMode(winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::InputDevicePrefersPrimaryCommands() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InputDevicePrefersPrimaryCommands(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InputDevicePrefersPrimaryCommands(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::AreOpenCloseAnimationsEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::AreOpenCloseAnimationsEnabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_AreOpenCloseAnimationsEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_AreOpenCloseAnimationsEnabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::IsOpen() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsOpen(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOpen(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase5::ShowAt(winrt::Windows::UI::Xaml::DependencyObject const& placementTarget, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowOptions const& showOptions) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget), *(void**)(&showOptions))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ShowAt(*(void**)(&placementTarget), *(void**)(&showOptions))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase6::ShouldConstrainToRootBounds() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase6::ShouldConstrainToRootBounds(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase6::IsConstrainedToRootBounds() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase6::XamlRoot() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_XamlRoot(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_XamlRoot(&value)); } return winrt::Windows::UI::Xaml::XamlRoot{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBase6::XamlRoot(winrt::Windows::UI::Xaml::XamlRoot const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_XamlRoot(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseClosingEventArgs::Cancel() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Cancel(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Cancel(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseClosingEventArgs::Cancel(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Cancel(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Cancel(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseOverrides::CreatePresenter() const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreatePresenter(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreatePresenter(&result)); } return winrt::Windows::UI::Xaml::Controls::Control{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseOverrides4::OnProcessKeyboardAccelerators(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnProcessKeyboardAccelerators(*(void**)(&args))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics::PlacementProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlacementProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics::AttachedFlyoutProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AttachedFlyoutProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AttachedFlyoutProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics::GetAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& element) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetAttachedFlyout(*(void**)(&element), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetAttachedFlyout(*(void**)(&element), &result)); } return winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics::SetAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& element, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetAttachedFlyout(*(void**)(&element), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetAttachedFlyout(*(void**)(&element), *(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics::ShowAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& flyoutOwner) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ShowAttachedFlyout(*(void**)(&flyoutOwner))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ShowAttachedFlyout(*(void**)(&flyoutOwner))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics2::AllowFocusOnInteractionProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowFocusOnInteractionProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics2::LightDismissOverlayModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics2::AllowFocusWhenDisabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AllowFocusWhenDisabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics2::ElementSoundModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ElementSoundModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics3::OverlayInputPassThroughElementProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElementProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OverlayInputPassThroughElementProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics5::TargetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TargetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TargetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics5::ShowModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShowModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShowModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics5::InputDevicePrefersPrimaryCommandsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_InputDevicePrefersPrimaryCommandsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_InputDevicePrefersPrimaryCommandsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics5::AreOpenCloseAnimationsEnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AreOpenCloseAnimationsEnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics5::IsOpenProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutBaseStatics6::ShouldConstrainToRootBoundsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::Position() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::Position(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Position(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Position(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::ExclusionRect() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExclusionRect(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExclusionRect(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::ExclusionRect(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ExclusionRect(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ExclusionRect(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::ShowMode() const { winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShowMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::ShowMode(winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShowMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::Placement() const { winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Placement(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptions::Placement(winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutPlacementMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Placement(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IFlyoutShowOptionsFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutShowOptions{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGeneratorPositionHelperStatics::FromIndexAndOffset(int32_t index, int32_t offset) const { winrt::Windows::UI::Xaml::Controls::Primitives::GeneratorPosition result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->FromIndexAndOffset(index, offset, put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->FromIndexAndOffset(index, offset, put_abi(result))); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectionCheckMarkVisualEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectionCheckMarkVisualEnabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckHintBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckHintBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckSelectingBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckSelectingBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::CheckBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragForeground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::FocusBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::FocusBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PlaceholderBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PlaceholderBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PointerOverBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PointerOverBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedForeground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedPointerOverBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedPointerOverBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedPointerOverBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedPointerOverBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedBorderThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::SelectedBorderThickness(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DisabledOpacity() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DisabledOpacity(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragOpacity() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragOpacity(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::DragOpacity(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragOpacity(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::ReorderHintOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::ReorderHintOffset(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignment() const { winrt::Windows::UI::Xaml::HorizontalAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignment(winrt::Windows::UI::Xaml::HorizontalAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_GridViewItemPresenterHorizontalContentAlignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_GridViewItemPresenterHorizontalContentAlignment(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterVerticalContentAlignment() const { winrt::Windows::UI::Xaml::VerticalAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterVerticalContentAlignment(winrt::Windows::UI::Xaml::VerticalAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_GridViewItemPresenterVerticalContentAlignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_GridViewItemPresenterVerticalContentAlignment(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterPadding() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterPadding(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterPadding(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::GridViewItemPresenterPadding(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_GridViewItemPresenterPadding(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_GridViewItemPresenterPadding(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PointerOverBackgroundMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::PointerOverBackgroundMargin(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::ContentMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenter::ContentMargin(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::GridViewItemPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectionCheckMarkVisualEnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::CheckHintBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::CheckSelectingBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::CheckBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::DragBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::DragForegroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::FocusBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::PlaceholderBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::PointerOverBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectedBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectedForegroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectedPointerOverBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectedPointerOverBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::SelectedBorderThicknessProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::DisabledOpacityProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::DragOpacityProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::ReorderHintOffsetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::GridViewItemPresenterHorizontalContentAlignmentProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignmentProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterHorizontalContentAlignmentProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::GridViewItemPresenterVerticalContentAlignmentProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignmentProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterVerticalContentAlignmentProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::GridViewItemPresenterPaddingProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_GridViewItemPresenterPaddingProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_GridViewItemPresenterPaddingProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::PointerOverBackgroundMarginProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemPresenterStatics::ContentMarginProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IGridViewItemTemplateSettings::DragItemsCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs::Action() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Action(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Action(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs::Position() const { winrt::Windows::UI::Xaml::Controls::Primitives::GeneratorPosition value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Position(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs::OldPosition() const { winrt::Windows::UI::Xaml::Controls::Primitives::GeneratorPosition value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OldPosition(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OldPosition(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs::ItemCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemCount(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IItemsChangedEventArgs::ItemUICount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemUICount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemUICount(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter::Enabled() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Enabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Enabled(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter::Enabled(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter::Disabled() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Disabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Disabled(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverter::Disabled(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverterStatics::EnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemBackgroundConverterStatics::DisabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter::Enabled() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Enabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Enabled(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter::Enabled(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Enabled(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter::Disabled() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Disabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Disabled(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverter::Disabled(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Disabled(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverterStatics::EnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IJumpListItemForegroundConverterStatics::DisabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILayoutInformationStatics::GetLayoutExceptionElement(winrt::Windows::Foundation::IInspectable const& dispatcher) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetLayoutExceptionElement(*(void**)(&dispatcher), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetLayoutExceptionElement(*(void**)(&dispatcher), &result)); } return winrt::Windows::UI::Xaml::UIElement{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILayoutInformationStatics::GetLayoutSlot(winrt::Windows::UI::Xaml::FrameworkElement const& element) const { winrt::Windows::Foundation::Rect result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetLayoutSlot(*(void**)(&element), put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetLayoutSlot(*(void**)(&element), put_abi(result))); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILayoutInformationStatics2::GetAvailableSize(winrt::Windows::UI::Xaml::UIElement const& element) const { winrt::Windows::Foundation::Size result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetAvailableSize(*(void**)(&element), put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetAvailableSize(*(void**)(&element), put_abi(result))); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectionCheckMarkVisualEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectionCheckMarkVisualEnabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionCheckMarkVisualEnabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckHintBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckHintBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckHintBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckHintBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckSelectingBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckSelectingBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckSelectingBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckSelectingBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::CheckBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragForeground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragForeground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::FocusBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::FocusBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FocusBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PlaceholderBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlaceholderBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PlaceholderBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PlaceholderBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PointerOverBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PointerOverBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedForeground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedForeground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedPointerOverBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedPointerOverBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPointerOverBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedPointerOverBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedPointerOverBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPointerOverBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedBorderThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderThickness(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::SelectedBorderThickness(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedBorderThickness(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DisabledOpacity() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledOpacity(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DisabledOpacity(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DisabledOpacity(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragOpacity() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragOpacity(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragOpacity(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::DragOpacity(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DragOpacity(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DragOpacity(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ReorderHintOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ReorderHintOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ReorderHintOffset(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ReorderHintOffset(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignment() const { winrt::Windows::UI::Xaml::HorizontalAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignment(winrt::Windows::UI::Xaml::HorizontalAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListViewItemPresenterHorizontalContentAlignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListViewItemPresenterHorizontalContentAlignment(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterVerticalContentAlignment() const { winrt::Windows::UI::Xaml::VerticalAlignment value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignment(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignment(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterVerticalContentAlignment(winrt::Windows::UI::Xaml::VerticalAlignment const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListViewItemPresenterVerticalContentAlignment(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListViewItemPresenterVerticalContentAlignment(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterPadding() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterPadding(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterPadding(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ListViewItemPresenterPadding(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ListViewItemPresenterPadding(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ListViewItemPresenterPadding(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PointerOverBackgroundMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::PointerOverBackgroundMargin(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverBackgroundMargin(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ContentMargin() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentMargin(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter::ContentMargin(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ContentMargin(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::SelectedPressedBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPressedBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPressedBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::SelectedPressedBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPressedBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPressedBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::PressedBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PressedBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PressedBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::PressedBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PressedBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PressedBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::CheckBoxBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::CheckBoxBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::FocusSecondaryBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::FocusSecondaryBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_FocusSecondaryBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_FocusSecondaryBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::CheckMode() const { winrt::Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::CheckMode(winrt::Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterCheckMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::PointerOverForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter2::PointerOverForeground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverForeground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverForeground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RevealBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RevealBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RevealBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RevealBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBorderThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBorderThickness(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBorderThickness(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBorderThickness(winrt::Windows::UI::Xaml::Thickness const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RevealBorderThickness(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RevealBorderThickness(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBackgroundShowsAboveContent() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBackgroundShowsAboveContent(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBackgroundShowsAboveContent(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter3::RevealBackgroundShowsAboveContent(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_RevealBackgroundShowsAboveContent(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_RevealBackgroundShowsAboveContent(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedDisabledBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedDisabledBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedDisabledBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedDisabledBackground(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedDisabledBackground(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedDisabledBackground(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckPressedBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckPressedBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckPressedBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckPressedBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckPressedBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckPressedBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckDisabledBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckDisabledBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckDisabledBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckDisabledBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckDisabledBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckDisabledBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPointerOverBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPointerOverBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxPointerOverBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxPointerOverBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPressedBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPressedBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPressedBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPressedBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxPressedBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxPressedBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxDisabledBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxDisabledBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxDisabledBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxDisabledBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxSelectedBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxSelectedBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedPointerOverBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPointerOverBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPointerOverBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedPointerOverBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxSelectedPointerOverBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxSelectedPointerOverBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedPressedBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedPressedBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxSelectedPressedBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxSelectedPressedBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedDisabledBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxSelectedDisabledBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxSelectedDisabledBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxSelectedDisabledBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPointerOverBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPointerOverBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxPointerOverBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxPointerOverBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPressedBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxPressedBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxPressedBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxPressedBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxDisabledBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxDisabledBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxDisabledBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxDisabledBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxCornerRadius() const { winrt::Windows::UI::Xaml::CornerRadius value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxCornerRadius(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxCornerRadius(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::CheckBoxCornerRadius(winrt::Windows::UI::Xaml::CornerRadius const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CheckBoxCornerRadius(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CheckBoxCornerRadius(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorCornerRadius() const { winrt::Windows::UI::Xaml::CornerRadius value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorCornerRadius(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorCornerRadius(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorCornerRadius(winrt::Windows::UI::Xaml::CornerRadius const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorCornerRadius(impl::bind_in(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorCornerRadius(impl::bind_in(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorVisualEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorVisualEnabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorVisualEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorVisualEnabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorMode() const { winrt::Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterSelectionIndicatorMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorMode(winrt::Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenterSelectionIndicatorMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorPointerOverBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorPointerOverBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorPointerOverBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorPointerOverBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorPointerOverBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorPointerOverBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorPressedBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorPressedBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorPressedBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorPressedBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorDisabledBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectionIndicatorDisabledBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectionIndicatorDisabledBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectionIndicatorDisabledBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedPressedBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedPressedBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedPressedBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedDisabledBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedDisabledBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedDisabledBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedInnerBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::SelectedInnerBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedInnerBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedInnerBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::PointerOverBorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenter4::PointerOverBorderBrush(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PointerOverBorderBrush(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PointerOverBorderBrush(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::ListViewItemPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectionCheckMarkVisualEnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionCheckMarkVisualEnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::CheckHintBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckHintBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::CheckSelectingBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckSelectingBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::CheckBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::DragBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::DragForegroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragForegroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::FocusBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::PlaceholderBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlaceholderBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::PointerOverBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectedBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectedForegroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedForegroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectedPointerOverBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectedPointerOverBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPointerOverBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::SelectedBorderThicknessProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderThicknessProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::DisabledOpacityProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DisabledOpacityProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::DragOpacityProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragOpacityProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::ReorderHintOffsetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ReorderHintOffsetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::ListViewItemPresenterHorizontalContentAlignmentProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignmentProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterHorizontalContentAlignmentProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::ListViewItemPresenterVerticalContentAlignmentProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignmentProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterVerticalContentAlignmentProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::ListViewItemPresenterPaddingProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ListViewItemPresenterPaddingProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ListViewItemPresenterPaddingProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::PointerOverBackgroundMarginProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBackgroundMarginProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics::ContentMarginProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentMarginProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::SelectedPressedBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPressedBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPressedBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::PressedBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PressedBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PressedBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::CheckBoxBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::FocusSecondaryBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FocusSecondaryBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::CheckModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics2::PointerOverForegroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverForegroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverForegroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics3::RevealBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics3::RevealBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics3::RevealBorderThicknessProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBorderThicknessProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBorderThicknessProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics3::RevealBackgroundShowsAboveContentProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_RevealBackgroundShowsAboveContentProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_RevealBackgroundShowsAboveContentProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectedDisabledBackgroundProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedDisabledBackgroundProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedDisabledBackgroundProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckPressedBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckPressedBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckPressedBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckDisabledBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckDisabledBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckDisabledBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxPointerOverBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxPressedBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPressedBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPressedBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxDisabledBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxSelectedBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxSelectedPointerOverBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPointerOverBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPointerOverBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxSelectedPressedBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedPressedBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxSelectedDisabledBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxSelectedDisabledBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxPointerOverBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPointerOverBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxPressedBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxPressedBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxDisabledBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxDisabledBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::CheckBoxCornerRadiusProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CheckBoxCornerRadiusProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CheckBoxCornerRadiusProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorCornerRadiusProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorCornerRadiusProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorCornerRadiusProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorVisualEnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorVisualEnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorPointerOverBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorPointerOverBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorPointerOverBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorPressedBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorPressedBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectionIndicatorDisabledBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectionIndicatorDisabledBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectedBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectedPressedBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedPressedBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectedDisabledBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedDisabledBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::SelectedInnerBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedInnerBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemPresenterStatics4::PointerOverBorderBrushProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PointerOverBorderBrushProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PointerOverBorderBrushProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IListViewItemTemplateSettings::DragItemsCount() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DragItemsCount(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ShouldLoop() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldLoop(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldLoop(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ShouldLoop(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShouldLoop(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShouldLoop(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::Items() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Items(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Items(&value)); } return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::Items(param::vector const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Items(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Items(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectedIndex() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectedIndex(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedIndex(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedIndex(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectedItem() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedItem(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedItem(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemWidth() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemWidth(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ItemWidth(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ItemWidth(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemHeight() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemHeight(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ItemHeight(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ItemHeight(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemTemplate() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemTemplate(&value)); } return winrt::Windows::UI::Xaml::DataTemplate{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::ItemTemplate(winrt::Windows::UI::Xaml::DataTemplate const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ItemTemplate(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectionChanged(winrt::Windows::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectionChanged(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const { return impl::make_event_revoker(this, SelectionChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelector::SelectionChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::ShouldLoopProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldLoopProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldLoopProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::ItemsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::SelectedIndexProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::SelectedItemProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::ItemWidthProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemWidthProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::ItemHeightProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemHeightProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ILoopingSelectorStatics::ItemTemplateProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ItemTemplateProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IMenuFlyoutItemTemplateSettings::KeyboardAcceleratorTextMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KeyboardAcceleratorTextMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IMenuFlyoutPresenterTemplateSettings::FlyoutContentMinWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FlyoutContentMinWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FlyoutContentMinWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter::Icon() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Icon(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Icon(&value)); } return winrt::Windows::UI::Xaml::Controls::IconElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_INavigationViewItemPresenter::Icon(winrt::Windows::UI::Xaml::Controls::IconElement const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Icon(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::NavigationViewItemPresenter{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_INavigationViewItemPresenterStatics::IconProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IconProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IconProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::CanVerticallyScroll() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CanVerticallyScroll(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::CanVerticallyScroll(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CanVerticallyScroll(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::CanHorizontallyScroll() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CanHorizontallyScroll(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::CanHorizontallyScroll(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_CanHorizontallyScroll(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ExtentWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtentWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ExtentHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ExtentHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ViewportWidth() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportWidth(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ViewportHeight() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportHeight(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::HorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::VerticalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ScrollOwner() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ScrollOwner(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::ScrollOwner(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ScrollOwner(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::LineUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::LineDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::LineLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::LineRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->LineRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->LineRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::PageUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::PageDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::PageLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::PageRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->PageRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->PageRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::MouseWheelUp() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelUp()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelUp()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::MouseWheelDown() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelDown()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelDown()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::MouseWheelLeft() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelLeft()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelLeft()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::MouseWheelRight() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MouseWheelRight()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MouseWheelRight()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::SetHorizontalOffset(double offset) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetHorizontalOffset(offset)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::SetVerticalOffset(double offset) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetVerticalOffset(offset)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IOrientedVirtualizingPanel::MakeVisible(winrt::Windows::UI::Xaml::UIElement const& visual, winrt::Windows::Foundation::Rect const& rectangle) const { winrt::Windows::Foundation::Rect result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->MakeVisible(*(void**)(&visual), impl::bind_in(rectangle), put_abi(result))); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::PickerFlyoutBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseOverrides::OnConfirmed() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnConfirmed()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnConfirmed()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseOverrides::ShouldShowConfirmationButtons() const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->ShouldShowConfirmationButtons(&result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->ShouldShowConfirmationButtons(&result)); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics::TitleProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_TitleProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_TitleProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics::GetTitle(winrt::Windows::UI::Xaml::DependencyObject const& element) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetTitle(*(void**)(&element), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetTitle(*(void**)(&element), &result)); } return hstring{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPickerFlyoutBaseStatics::SetTitle(winrt::Windows::UI::Xaml::DependencyObject const& element, param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->SetTitle(*(void**)(&element), *(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->SetTitle(*(void**)(&element), *(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPivotHeaderItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::PivotHeaderItem{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Child() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Child(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Child(&value)); } return winrt::Windows::UI::Xaml::UIElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Child(winrt::Windows::UI::Xaml::UIElement const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Child(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::IsOpen() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsOpen(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOpen(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::IsOpen(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsOpen(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsOpen(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::HorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::HorizontalOffset(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_HorizontalOffset(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::VerticalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::VerticalOffset(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_VerticalOffset(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_VerticalOffset(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::ChildTransitions() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ChildTransitions(&value)); } return winrt::Windows::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::ChildTransitions(winrt::Windows::UI::Xaml::Media::Animation::TransitionCollection const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ChildTransitions(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::IsLightDismissEnabled() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsLightDismissEnabled(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::IsLightDismissEnabled(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsLightDismissEnabled(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Opened(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Opened(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Opened(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Opened(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Opened(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Opened(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Opened(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Closed(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Closed(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Closed(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, Closed(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup::Closed(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Closed(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Closed(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup2::LightDismissOverlayMode() const { winrt::Windows::UI::Xaml::Controls::LightDismissOverlayMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightDismissOverlayMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup2::LightDismissOverlayMode(winrt::Windows::UI::Xaml::Controls::LightDismissOverlayMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LightDismissOverlayMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup3::ShouldConstrainToRootBounds() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBounds(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup3::ShouldConstrainToRootBounds(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ShouldConstrainToRootBounds(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup3::IsConstrainedToRootBounds() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsConstrainedToRootBounds(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::PlacementTarget() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlacementTarget(&value)); } return winrt::Windows::UI::Xaml::FrameworkElement{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::PlacementTarget(winrt::Windows::UI::Xaml::FrameworkElement const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_PlacementTarget(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::DesiredPlacement() const { winrt::Windows::UI::Xaml::Controls::Primitives::PopupPlacementMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DesiredPlacement(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DesiredPlacement(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::DesiredPlacement(winrt::Windows::UI::Xaml::Controls::Primitives::PopupPlacementMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_DesiredPlacement(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_DesiredPlacement(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::ActualPlacement() const { winrt::Windows::UI::Xaml::Controls::Primitives::PopupPlacementMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ActualPlacement(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ActualPlacement(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::ActualPlacementChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ActualPlacementChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ActualPlacementChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::ActualPlacementChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, ActualPlacementChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopup4::ActualPlacementChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ActualPlacementChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ActualPlacementChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::ChildProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ChildProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ChildProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::IsOpenProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsOpenProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::HorizontalOffsetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HorizontalOffsetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::VerticalOffsetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_VerticalOffsetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::ChildTransitionsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ChildTransitionsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics::IsLightDismissEnabledProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsLightDismissEnabledProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics2::LightDismissOverlayModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LightDismissOverlayModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics3::ShouldConstrainToRootBoundsProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ShouldConstrainToRootBoundsProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics4::PlacementTargetProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_PlacementTargetProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IPopupStatics4::DesiredPlacementProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DesiredPlacementProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DesiredPlacementProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::EllipseDiameter() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::EllipseOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::EllipseAnimationWellPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseAnimationWellPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseAnimationWellPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::EllipseAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::ContainerAnimationStartPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContainerAnimationStartPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContainerAnimationStartPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::ContainerAnimationEndPosition() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContainerAnimationEndPosition(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContainerAnimationEndPosition(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressBarTemplateSettings::IndicatorLengthDelta() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IndicatorLengthDelta(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IndicatorLengthDelta(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressRingTemplateSettings::EllipseDiameter() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseDiameter(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressRingTemplateSettings::EllipseOffset() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_EllipseOffset(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_EllipseOffset(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IProgressRingTemplateSettings::MaxSideLength() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaxSideLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaxSideLength(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Minimum() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Minimum(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Minimum(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Minimum(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Minimum(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Minimum(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Maximum() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Maximum(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Maximum(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Maximum(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Maximum(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Maximum(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::SmallChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SmallChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SmallChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::SmallChange(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SmallChange(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SmallChange(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::LargeChange() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LargeChange(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LargeChange(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::LargeChange(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_LargeChange(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_LargeChange(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Value() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Value(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Value(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::Value(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Value(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Value(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged(winrt::Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_ValueChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventHandler const& handler) const { return impl::make_event_revoker(this, ValueChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBase::ValueChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_ValueChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::RangeBase{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseOverrides::OnMinimumChanged(double oldMinimum, double newMinimum) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnMinimumChanged(oldMinimum, newMinimum)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnMinimumChanged(oldMinimum, newMinimum)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseOverrides::OnMaximumChanged(double oldMaximum, double newMaximum) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnMaximumChanged(oldMaximum, newMaximum)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnMaximumChanged(oldMaximum, newMaximum)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseOverrides::OnValueChanged(double oldValue, double newValue) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnValueChanged(oldValue, newValue)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnValueChanged(oldValue, newValue)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseStatics::MinimumProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MinimumProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseStatics::MaximumProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_MaximumProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseStatics::SmallChangeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SmallChangeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseStatics::LargeChangeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_LargeChangeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseStatics::ValueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ValueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ValueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseValueChangedEventArgs::OldValue() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OldValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OldValue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRangeBaseValueChangedEventArgs::NewValue() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NewValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NewValue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButton::Delay() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Delay(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Delay(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButton::Delay(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Delay(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Delay(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButton::Interval() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Interval(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Interval(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButton::Interval(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Interval(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Interval(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButtonStatics::DelayProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_DelayProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_DelayProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IRepeatButtonStatics::IntervalProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IntervalProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IntervalProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::Orientation() const { winrt::Windows::UI::Xaml::Controls::Orientation value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Orientation(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::Orientation(winrt::Windows::UI::Xaml::Controls::Orientation const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Orientation(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::ViewportSize() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportSize(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportSize(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::ViewportSize(double value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_ViewportSize(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_ViewportSize(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::IndicatorMode() const { winrt::Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IndicatorMode(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IndicatorMode(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::IndicatorMode(winrt::Windows::UI::Xaml::Controls::Primitives::ScrollingIndicatorMode const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IndicatorMode(static_cast(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IndicatorMode(static_cast(value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::Scroll(winrt::Windows::UI::Xaml::Controls::Primitives::ScrollEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Scroll(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Scroll(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::Scroll(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::Primitives::ScrollEventHandler const& handler) const { return impl::make_event_revoker(this, Scroll(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBar::Scroll(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Scroll(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Scroll(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBarStatics::OrientationProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OrientationProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBarStatics::ViewportSizeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ViewportSizeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ViewportSizeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollBarStatics::IndicatorModeProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IndicatorModeProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IndicatorModeProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollEventArgs::NewValue() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NewValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NewValue(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollEventArgs::ScrollEventType() const { winrt::Windows::UI::Xaml::Controls::Primitives::ScrollEventType value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ScrollEventType(reinterpret_cast(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ScrollEventType(reinterpret_cast(&value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::AreHorizontalSnapPointsRegular() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AreHorizontalSnapPointsRegular(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AreHorizontalSnapPointsRegular(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::AreVerticalSnapPointsRegular() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_AreVerticalSnapPointsRegular(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_AreVerticalSnapPointsRegular(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_HorizontalSnapPointsChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_HorizontalSnapPointsChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, HorizontalSnapPointsChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::HorizontalSnapPointsChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_HorizontalSnapPointsChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_HorizontalSnapPointsChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::VerticalSnapPointsChanged(winrt::Windows::Foundation::EventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_VerticalSnapPointsChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_VerticalSnapPointsChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::VerticalSnapPointsChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler const& handler) const { return impl::make_event_revoker(this, VerticalSnapPointsChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::VerticalSnapPointsChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_VerticalSnapPointsChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_VerticalSnapPointsChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::GetIrregularSnapPoints(winrt::Windows::UI::Xaml::Controls::Orientation const& orientation, winrt::Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment const& alignment) const { void* result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetIrregularSnapPoints(static_cast(orientation), static_cast(alignment), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetIrregularSnapPoints(static_cast(orientation), static_cast(alignment), &result)); } return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IScrollSnapPointsInfo::GetRegularSnapPoints(winrt::Windows::UI::Xaml::Controls::Orientation const& orientation, winrt::Windows::UI::Xaml::Controls::Primitives::SnapPointsAlignment const& alignment, float& offset) const { float returnValue{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetRegularSnapPoints(static_cast(orientation), static_cast(alignment), &offset, &returnValue)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetRegularSnapPoints(static_cast(orientation), static_cast(alignment), &offset, &returnValue)); } return returnValue; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedIndex() const { int32_t value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedIndex(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedIndex(int32_t value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedIndex(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedIndex(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedItem() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedItem(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedItem(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedItem(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedItem(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedValue() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedValue(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedValue(&value)); } return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedValue(winrt::Windows::Foundation::IInspectable const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedValue(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedValuePath() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedValuePath(&value)); } return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectedValuePath(param::hstring const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_SelectedValuePath(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::IsSynchronizedWithCurrentItem() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItem(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItem(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::IsSynchronizedWithCurrentItem(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsSynchronizedWithCurrentItem(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsSynchronizedWithCurrentItem(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectionChanged(winrt::Windows::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_SelectionChanged(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectionChanged(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::SelectionChangedEventHandler const& handler) const { return impl::make_event_revoker(this, SelectionChanged(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelector::SelectionChanged(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_SelectionChanged(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorItem::IsSelected() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsSelected(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsSelected(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorItem::IsSelected(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsSelected(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsSelected(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorItemFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::SelectorItem{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorItemStatics::IsSelectedProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsSelectedProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::SelectedIndexProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedIndexProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::SelectedItemProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedItemProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::SelectedValueProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedValueProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::SelectedValuePathProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_SelectedValuePathProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::IsSynchronizedWithCurrentItemProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItemProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsSynchronizedWithCurrentItemProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISelectorStatics::GetIsSelectionActive(winrt::Windows::UI::Xaml::DependencyObject const& element) const { bool result{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->GetIsSelectionActive(*(void**)(&element), &result)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->GetIsSelectionActive(*(void**)(&element), &result)); } return result; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::HeaderBackground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HeaderBackground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HeaderBackground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::HeaderForeground() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_HeaderForeground(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_HeaderForeground(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::BorderBrush() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_BorderBrush(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BorderBrush(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::BorderThickness() const { winrt::Windows::UI::Xaml::Thickness value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_BorderThickness(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::IconSource() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IconSource(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IconSource(&value)); } return winrt::Windows::UI::Xaml::Media::ImageSource{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISettingsFlyoutTemplateSettings::ContentTransitions() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_ContentTransitions(&value)); } return winrt::Windows::UI::Xaml::Media::Animation::TransitionCollection{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::OpenPaneLength() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OpenPaneLength(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::NegativeOpenPaneLength() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeOpenPaneLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeOpenPaneLength(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::OpenPaneLengthMinusCompactLength() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OpenPaneLengthMinusCompactLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OpenPaneLengthMinusCompactLength(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::NegativeOpenPaneLengthMinusCompactLength() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_NegativeOpenPaneLengthMinusCompactLength(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_NegativeOpenPaneLengthMinusCompactLength(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::OpenPaneGridLength() const { winrt::Windows::UI::Xaml::GridLength value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_OpenPaneGridLength(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_OpenPaneGridLength(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ISplitViewTemplateSettings::CompactPaneGridLength() const { winrt::Windows::UI::Xaml::GridLength value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CompactPaneGridLength(put_abi(value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CompactPaneGridLength(put_abi(value))); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::IsDragging() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDragging(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDragging(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragStarted(winrt::Windows::UI::Xaml::Controls::Primitives::DragStartedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_DragStarted(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_DragStarted(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragStarted(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::Primitives::DragStartedEventHandler const& handler) const { return impl::make_event_revoker(this, DragStarted(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragStarted(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_DragStarted(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_DragStarted(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragDelta(winrt::Windows::UI::Xaml::Controls::Primitives::DragDeltaEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_DragDelta(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_DragDelta(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragDelta(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::Primitives::DragDeltaEventHandler const& handler) const { return impl::make_event_revoker(this, DragDelta(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragDelta(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_DragDelta(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_DragDelta(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragCompleted(winrt::Windows::UI::Xaml::Controls::Primitives::DragCompletedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_DragCompleted(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_DragCompleted(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragCompleted(auto_revoke_t, winrt::Windows::UI::Xaml::Controls::Primitives::DragCompletedEventHandler const& handler) const { return impl::make_event_revoker(this, DragCompleted(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::DragCompleted(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_DragCompleted(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_DragCompleted(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumb::CancelDrag() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CancelDrag()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CancelDrag()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IThumbStatics::IsDraggingProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsDraggingProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsDraggingProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ITickBar::Fill() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_Fill(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_Fill(&value)); } return winrt::Windows::UI::Xaml::Media::Brush{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_ITickBar::Fill(winrt::Windows::UI::Xaml::Media::Brush const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_Fill(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_ITickBarStatics::FillProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FillProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FillProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::IsChecked() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsChecked(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsChecked(&value)); } return winrt::Windows::Foundation::IReference{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::IsChecked(winrt::Windows::Foundation::IReference const& value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsChecked(*(void**)(&value))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsChecked(*(void**)(&value))); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::IsThreeState() const { bool value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsThreeState(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsThreeState(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::IsThreeState(bool value) const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->put_IsThreeState(value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->put_IsThreeState(value)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Checked(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Checked(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Checked(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Checked(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Checked(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Checked(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Checked(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Checked(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Unchecked(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Unchecked(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Unchecked(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Unchecked(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Unchecked(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Unchecked(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Indeterminate(winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { winrt::event_token token{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->add_Indeterminate(*(void**)(&handler), put_abi(token))); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->add_Indeterminate(*(void**)(&handler), put_abi(token))); } return token; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Indeterminate(auto_revoke_t, winrt::Windows::UI::Xaml::RoutedEventHandler const& handler) const { return impl::make_event_revoker(this, Indeterminate(handler)); } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButton::Indeterminate(winrt::event_token const& token) const noexcept { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; _winrt_abi_type->remove_Indeterminate(impl::bind_in(token)); } else { auto const _winrt_abi_type = *(abi_t**)this; _winrt_abi_type->remove_Indeterminate(impl::bind_in(token)); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButtonFactory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); } return winrt::Windows::UI::Xaml::Controls::Primitives::ToggleButton{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButtonOverrides::OnToggle() const { if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->OnToggle()); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->OnToggle()); } } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButtonStatics::IsCheckedProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsCheckedProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleButtonStatics::IsThreeStateProperty() const { void* value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_IsThreeStateProperty(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_IsThreeStateProperty(&value)); } return winrt::Windows::UI::Xaml::DependencyProperty{ value, take_ownership_from_abi }; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::KnobCurrentToOnOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KnobCurrentToOnOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KnobCurrentToOnOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::KnobCurrentToOffOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KnobCurrentToOffOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KnobCurrentToOffOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::KnobOnToOffOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KnobOnToOffOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KnobOnToOffOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::KnobOffToOnOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_KnobOffToOnOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_KnobOffToOnOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::CurtainCurrentToOnOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurtainCurrentToOnOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurtainCurrentToOnOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::CurtainCurrentToOffOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurtainCurrentToOffOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurtainCurrentToOffOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::CurtainOnToOffOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurtainOnToOffOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurtainOnToOffOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToggleSwitchTemplateSettings::CurtainOffToOnOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_CurtainOffToOnOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_CurtainOffToOnOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToolTipTemplateSettings::FromHorizontalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FromHorizontalOffset(&value)); } return value; } template auto consume_Windows_UI_Xaml_Controls_Primitives_IToolTipTemplateSettings::FromVerticalOffset() const { double value{}; if constexpr (!std::is_same_v) { winrt::hresult _winrt_cast_result_code; auto const _winrt_casted_result = impl::try_as_with_reason(static_cast(this), _winrt_cast_result_code); check_hresult(_winrt_cast_result_code); auto const _winrt_abi_type = *(abi_t**)&_winrt_casted_result; check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); } else { auto const _winrt_abi_type = *(abi_t**)this; check_hresult(_winrt_abi_type->get_FromVerticalOffset(&value)); } return value; } 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_KeyboardAcceleratorTextMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ClipRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClipRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompactVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CompactVerticalDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompactRootMargin(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().CompactRootMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinimalVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinimalVerticalDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinimalRootMargin(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().MinimalRootMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HiddenVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HiddenVerticalDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HiddenRootMargin(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().HiddenRootMargin()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NegativeCompactVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeCompactVerticalDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NegativeMinimalVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeMinimalVerticalDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NegativeHiddenVerticalDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeHiddenVerticalDelta()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KeyboardAcceleratorTextMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ClickMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClickMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ClickMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ClickMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPointerOver(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPointerOver()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPressed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPressed()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Command(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Command()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Command(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Command(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommandParameter(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommandParameter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CommandParameter(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CommandParameter(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Click(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Click(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Click(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Click(*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 #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ClickModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClickModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPointerOverProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPointerOverProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsPressedProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsPressedProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommandProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommandProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CommandParameterProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CommandParameterProperty()); 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_MinViewWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinViewWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeaderText(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderText()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay1(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay1()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay2(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay2()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay3(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay3()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay4(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay4()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay5(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay5()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay6(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay6()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WeekDay7(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WeekDay7()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasMoreContentAfter(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasMoreContentAfter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasMoreContentBefore(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasMoreContentBefore()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HasMoreViews(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HasMoreViews()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ClipRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ClipRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CenterX(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CenterX()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CenterY(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CenterY()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanVerticallyScroll(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanVerticallyScroll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanVerticallyScroll(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanVerticallyScroll(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanHorizontallyScroll(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanHorizontallyScroll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanHorizontallyScroll(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanHorizontallyScroll(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtentWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtentWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtentHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtentHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportHeight()); 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 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 get_ScrollOwner(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollOwner()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScrollOwner(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScrollOwner(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetHorizontalOffset(double offset) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetHorizontalOffset(offset); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetVerticalOffset(double offset) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetVerticalOffset(offset); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MakeVisible(void* visual, winrt::Windows::Foundation::Rect rectangle, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); 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_ColorChannel(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColorChannel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ColorChannel(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ColorChannel(*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_ColorChannelProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColorChannelProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Color(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Color()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Color(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Color(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HsvColor(winrt::Windows::Foundation::Numerics::float4* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HsvColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_HsvColor(winrt::Windows::Foundation::Numerics::float4 value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().HsvColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinHue(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinHue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinHue(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinHue(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxHue(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxHue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxHue(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxHue(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinSaturation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinSaturation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinSaturation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinSaturation(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxSaturation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSaturation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxSaturation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxSaturation(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinValue(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MinValue(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MinValue(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxValue(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_MaxValue(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MaxValue(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Shape(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Shape()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Shape(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Shape(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Components(int32_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(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Components(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ColorChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ColorChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ColorChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ColorChanged(*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 #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ColorProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ColorProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HsvColorProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HsvColorProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinHueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinHueProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxHueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxHueProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinSaturationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinSaturationProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxSaturationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSaturationProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MinValueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinValueProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxValueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxValueProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShapeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShapeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ComponentsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ComponentsProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DropDownOpenedHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropDownOpenedHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropDownClosedHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropDownClosedHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DropDownOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropDownOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItemDirection(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItemDirection()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DropDownContentMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DropDownContentMinWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FlyoutTemplateSettings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlyoutTemplateSettings()); 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_OpenAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OpenAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CloseAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CloseAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurrentWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurrentWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandedWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandedWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthExpansionDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthExpansionDelta()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthExpansionAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthExpansionAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthExpansionAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthExpansionAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthExpansionMoreButtonAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthExpansionMoreButtonAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WidthExpansionMoreButtonAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WidthExpansionMoreButtonAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandUpOverflowVerticalPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandUpOverflowVerticalPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandDownOverflowVerticalPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandDownOverflowVerticalPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandUpAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandUpAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandUpAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandUpAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandUpAnimationHoldPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandUpAnimationHoldPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandDownAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandDownAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandDownAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandDownAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExpandDownAnimationHoldPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExpandDownAnimationHoldPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentClipRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentClipRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentClipRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentClipRect()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ContentHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentClipRect(winrt::Windows::Foundation::Rect* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentClipRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentMinWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentMaxHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentMaxHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentHorizontalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentHorizontalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NegativeOverflowContentHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeOverflowContentHeight()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OverflowContentMaxWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentMaxWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EffectiveOverflowButtonVisibility(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EffectiveOverflowButtonVisibility()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OverflowContentCompactYTranslation(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentCompactYTranslation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentMinimalYTranslation(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentMinimalYTranslation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OverflowContentHiddenYTranslation(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverflowContentHiddenYTranslation()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HorizontalChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Canceled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Canceled()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(double horizontalChange, double verticalChange, bool canceled, 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().CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, *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_HorizontalChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalChange()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstanceWithHorizontalChangeAndVerticalChange(double horizontalChange, double verticalChange, 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().CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, *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_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 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(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall CreateInstanceWithHorizontalOffsetAndVerticalOffset(double horizontalOffset, double verticalOffset, 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().CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, *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_Placement(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Placement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Placement(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Placement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Opened(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Opened(*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 const*>(&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_Opening(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Opening(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Opening(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Opening(*reinterpret_cast(&token)); return 0; } int32_t __stdcall ShowAt(void* placementTarget) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowAt(*reinterpret_cast(&placementTarget)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Hide() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Hide(); 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 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_LightDismissOverlayMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightDismissOverlayMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LightDismissOverlayMode(*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(); } int32_t __stdcall get_ElementSoundMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ElementSoundMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ElementSoundMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ElementSoundMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Closing(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Closing(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Closing(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Closing(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OverlayInputPassThroughElement(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverlayInputPassThroughElement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_OverlayInputPassThroughElement(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OverlayInputPassThroughElement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { 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_ShowMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShowMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InputDevicePrefersPrimaryCommands(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputDevicePrefersPrimaryCommands()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AreOpenCloseAnimationsEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AreOpenCloseAnimationsEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_AreOpenCloseAnimationsEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AreOpenCloseAnimationsEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOpen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOpen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAt(void* placementTarget, void* showOptions) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowAt(*reinterpret_cast(&placementTarget), *reinterpret_cast(&showOptions)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldConstrainToRootBounds(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldConstrainToRootBounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldConstrainToRootBounds(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldConstrainToRootBounds(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConstrainedToRootBounds(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConstrainedToRootBounds()); 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(); } }; #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(); } }; #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 CreatePresenter(void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().CreatePresenter()); return 0; } catch (...) { return to_hresult(); } }; template struct produce : produce_base { 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(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PlacementProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlacementProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AttachedFlyoutProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AttachedFlyoutProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetAttachedFlyout(void* element, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAttachedFlyout(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetAttachedFlyout(void* element, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetAttachedFlyout(*reinterpret_cast(&element), *reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShowAttachedFlyout(void* flyoutOwner) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowAttachedFlyout(*reinterpret_cast(&flyoutOwner)); 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_LightDismissOverlayModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightDismissOverlayModeProperty()); 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(); } int32_t __stdcall get_ElementSoundModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ElementSoundModeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OverlayInputPassThroughElementProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OverlayInputPassThroughElementProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TargetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TargetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_InputDevicePrefersPrimaryCommandsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().InputDevicePrefersPrimaryCommandsProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AreOpenCloseAnimationsEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AreOpenCloseAnimationsEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOpenProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldConstrainToRootBoundsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldConstrainToRootBoundsProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Position(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Position(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Position(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExclusionRect(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().ExclusionRect()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ExclusionRect(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ExclusionRect(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ShowMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShowMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShowMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShowMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Placement(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Placement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Placement(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Placement(*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 FromIndexAndOffset(int32_t index, int32_t offset, struct struct_Windows_UI_Xaml_Controls_Primitives_GeneratorPosition* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().FromIndexAndOffset(index, offset)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectionCheckMarkVisualEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionCheckMarkVisualEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionCheckMarkVisualEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionCheckMarkVisualEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckHintBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckHintBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckHintBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckHintBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckSelectingBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckSelectingBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckSelectingBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckSelectingBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragForeground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragForeground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlaceholderBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlaceholderBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PlaceholderBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PlaceholderBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedForeground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedForeground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPointerOverBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPointerOverBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPointerOverBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPointerOverBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderThickness(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().SelectedBorderThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedBorderThickness(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedBorderThickness(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledOpacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisabledOpacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisabledOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragOpacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragOpacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReorderHintOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReorderHintOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ReorderHintOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReorderHintOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterHorizontalContentAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GridViewItemPresenterHorizontalContentAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GridViewItemPresenterHorizontalContentAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GridViewItemPresenterHorizontalContentAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterVerticalContentAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GridViewItemPresenterVerticalContentAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GridViewItemPresenterVerticalContentAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GridViewItemPresenterVerticalContentAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterPadding(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().GridViewItemPresenterPadding()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_GridViewItemPresenterPadding(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GridViewItemPresenterPadding(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundMargin(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().PointerOverBackgroundMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverBackgroundMargin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverBackgroundMargin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentMargin(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().ContentMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentMargin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentMargin(*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_SelectionCheckMarkVisualEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionCheckMarkVisualEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckHintBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckHintBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckSelectingBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckSelectingBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragForegroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragForegroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlaceholderBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlaceholderBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedForegroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedForegroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBorderThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledOpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragOpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReorderHintOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReorderHintOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterHorizontalContentAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GridViewItemPresenterHorizontalContentAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterVerticalContentAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GridViewItemPresenterVerticalContentAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_GridViewItemPresenterPaddingProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().GridViewItemPresenterPaddingProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundMarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackgroundMarginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentMarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentMarginProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DragItemsCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragItemsCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Action(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Action()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Position(struct struct_Windows_UI_Xaml_Controls_Primitives_GeneratorPosition* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Position()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OldPosition(struct struct_Windows_UI_Xaml_Controls_Primitives_GeneratorPosition* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OldPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemCount()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemUICount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemUICount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Enabled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Enabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Enabled(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enabled(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Disabled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Disabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Disabled(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disabled(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Enabled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Enabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Enabled(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Enabled(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Disabled(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Disabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Disabled(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Disabled(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledProperty()); 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 GetLayoutExceptionElement(void* dispatcher, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetLayoutExceptionElement(*reinterpret_cast(&dispatcher))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetLayoutSlot(void* element, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetLayoutSlot(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetAvailableSize(void* element, winrt::Windows::Foundation::Size* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetAvailableSize(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectionCheckMarkVisualEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionCheckMarkVisualEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionCheckMarkVisualEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionCheckMarkVisualEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckHintBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckHintBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckHintBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckHintBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckSelectingBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckSelectingBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckSelectingBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckSelectingBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragForeground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragForeground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlaceholderBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlaceholderBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PlaceholderBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PlaceholderBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedForeground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedForeground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPointerOverBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPointerOverBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPointerOverBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPointerOverBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderThickness(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().SelectedBorderThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedBorderThickness(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedBorderThickness(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledOpacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DisabledOpacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DisabledOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragOpacity(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragOpacity()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DragOpacity(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DragOpacity(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReorderHintOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReorderHintOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ReorderHintOffset(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ReorderHintOffset(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterHorizontalContentAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListViewItemPresenterHorizontalContentAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListViewItemPresenterHorizontalContentAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListViewItemPresenterHorizontalContentAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterVerticalContentAlignment(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListViewItemPresenterVerticalContentAlignment()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListViewItemPresenterVerticalContentAlignment(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListViewItemPresenterVerticalContentAlignment(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterPadding(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().ListViewItemPresenterPadding()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ListViewItemPresenterPadding(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ListViewItemPresenterPadding(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundMargin(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().PointerOverBackgroundMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverBackgroundMargin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverBackgroundMargin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentMargin(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().ContentMargin()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ContentMargin(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ContentMargin(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedPressedBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPressedBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPressedBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPressedBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PressedBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PressedBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PressedBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PressedBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusSecondaryBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusSecondaryBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_FocusSecondaryBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().FocusSecondaryBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverForeground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverForeground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RevealBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RevealBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevealBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RevealBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevealBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBorderThickness(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().RevealBorderThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RevealBorderThickness(struct struct_Windows_UI_Xaml_Thickness value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevealBorderThickness(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBackgroundShowsAboveContent(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBackgroundShowsAboveContent()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_RevealBackgroundShowsAboveContent(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().RevealBackgroundShowsAboveContent(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedDisabledBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedDisabledBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedDisabledBackground(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedDisabledBackground(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckPressedBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckPressedBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckPressedBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckPressedBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckDisabledBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckDisabledBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckDisabledBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckDisabledBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPointerOverBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPointerOverBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxPointerOverBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxPointerOverBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPressedBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPressedBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxPressedBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxPressedBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxDisabledBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxDisabledBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxDisabledBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxDisabledBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxSelectedBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxSelectedBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedPointerOverBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedPointerOverBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxSelectedPointerOverBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxSelectedPointerOverBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedPressedBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedPressedBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxSelectedPressedBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxSelectedPressedBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedDisabledBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedDisabledBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxSelectedDisabledBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxSelectedDisabledBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPointerOverBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPointerOverBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxPointerOverBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxPointerOverBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPressedBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPressedBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxPressedBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxPressedBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxDisabledBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxDisabledBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxDisabledBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxDisabledBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxCornerRadius(struct struct_Windows_UI_Xaml_CornerRadius* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxCornerRadius()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CheckBoxCornerRadius(struct struct_Windows_UI_Xaml_CornerRadius value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CheckBoxCornerRadius(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorCornerRadius(struct struct_Windows_UI_Xaml_CornerRadius* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorCornerRadius()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorCornerRadius(struct struct_Windows_UI_Xaml_CornerRadius value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorCornerRadius(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorVisualEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorVisualEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorVisualEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorVisualEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorPointerOverBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorPointerOverBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorPointerOverBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorPointerOverBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorPressedBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorPressedBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorPressedBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorPressedBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorDisabledBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorDisabledBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectionIndicatorDisabledBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectionIndicatorDisabledBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPressedBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPressedBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedPressedBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedPressedBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedDisabledBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedDisabledBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedDisabledBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedDisabledBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedInnerBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedInnerBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedInnerBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedInnerBorderBrush(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PointerOverBorderBrush(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PointerOverBorderBrush(*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_SelectionCheckMarkVisualEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionCheckMarkVisualEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckHintBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckHintBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckSelectingBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckSelectingBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragForegroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragForegroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PlaceholderBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlaceholderBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedForegroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedForegroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPointerOverBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPointerOverBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBorderThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DisabledOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DisabledOpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DragOpacityProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragOpacityProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ReorderHintOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ReorderHintOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterHorizontalContentAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListViewItemPresenterHorizontalContentAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterVerticalContentAlignmentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListViewItemPresenterVerticalContentAlignmentProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ListViewItemPresenterPaddingProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ListViewItemPresenterPaddingProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBackgroundMarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBackgroundMarginProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentMarginProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentMarginProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedPressedBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPressedBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PressedBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PressedBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FocusSecondaryBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FocusSecondaryBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverForegroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverForegroundProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_RevealBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBorderThicknessProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBorderThicknessProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_RevealBackgroundShowsAboveContentProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().RevealBackgroundShowsAboveContentProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedDisabledBackgroundProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedDisabledBackgroundProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckPressedBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckPressedBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckDisabledBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckDisabledBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPointerOverBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPointerOverBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPressedBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPressedBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxDisabledBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxDisabledBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedPointerOverBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedPointerOverBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedPressedBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedPressedBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxSelectedDisabledBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxSelectedDisabledBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPointerOverBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPointerOverBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxPressedBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxPressedBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxDisabledBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxDisabledBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CheckBoxCornerRadiusProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CheckBoxCornerRadiusProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorCornerRadiusProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorCornerRadiusProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorVisualEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorVisualEnabledProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorModeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorPointerOverBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorPointerOverBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorPressedBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorPressedBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectionIndicatorDisabledBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectionIndicatorDisabledBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedPressedBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedPressedBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedDisabledBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedDisabledBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedInnerBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedInnerBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PointerOverBorderBrushProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PointerOverBorderBrushProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DragItemsCount(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DragItemsCount()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldLoop(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldLoop()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldLoop(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldLoop(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Items(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().Items()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Items(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Items(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedIndex()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedIndex(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedItem(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedItem(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemWidth(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ItemWidth(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ItemWidth(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemHeight(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ItemHeight(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ItemHeight(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemTemplate(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemTemplate()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ItemTemplate(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ItemTemplate(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SelectionChanged(*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 { }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldLoopProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldLoopProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemsProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedIndexProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItemProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemWidthProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemWidthProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemHeightProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemHeightProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ItemTemplateProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ItemTemplateProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KeyboardAcceleratorTextMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KeyboardAcceleratorTextMinWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FlyoutContentMinWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FlyoutContentMinWidth()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Icon(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Icon()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Icon(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Icon(*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_IconProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IconProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_CanVerticallyScroll(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanVerticallyScroll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanVerticallyScroll(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanVerticallyScroll(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanHorizontallyScroll(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanHorizontallyScroll()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_CanHorizontallyScroll(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CanHorizontallyScroll(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtentWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtentWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ExtentHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExtentHeight()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportWidth(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportWidth()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportHeight(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportHeight()); 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 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 get_ScrollOwner(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollOwner()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ScrollOwner(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ScrollOwner(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall LineRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LineRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall PageRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PageRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelUp() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelUp(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelDown() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelDown(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelLeft() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelLeft(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MouseWheelRight() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().MouseWheelRight(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetHorizontalOffset(double offset) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetHorizontalOffset(offset); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetVerticalOffset(double offset) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetVerticalOffset(offset); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall MakeVisible(void* visual, winrt::Windows::Foundation::Rect rectangle, winrt::Windows::Foundation::Rect* result) noexcept final try { zero_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().MakeVisible(*reinterpret_cast(&visual), *reinterpret_cast(&rectangle))); 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 { 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 OnConfirmed() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnConfirmed(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall ShouldShowConfirmationButtons(bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().ShouldShowConfirmationButtons()); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_TitleProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().TitleProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetTitle(void* element, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetTitle(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall SetTitle(void* element, void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SetTitle(*reinterpret_cast(&element), *reinterpret_cast(&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 { }; #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_Child(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Child()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Child(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Child(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOpen(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOpen()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsOpen(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsOpen(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(); } int32_t __stdcall get_ChildTransitions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChildTransitions()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ChildTransitions(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ChildTransitions(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsLightDismissEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsLightDismissEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsLightDismissEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsLightDismissEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Opened(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Opened(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Opened(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Opened(*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 const*>(&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; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LightDismissOverlayMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightDismissOverlayMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LightDismissOverlayMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LightDismissOverlayMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldConstrainToRootBounds(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldConstrainToRootBounds()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ShouldConstrainToRootBounds(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ShouldConstrainToRootBounds(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsConstrainedToRootBounds(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsConstrainedToRootBounds()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PlacementTarget(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlacementTarget()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_PlacementTarget(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().PlacementTarget(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DesiredPlacement(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredPlacement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DesiredPlacement(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DesiredPlacement(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ActualPlacement(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ActualPlacement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ActualPlacementChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ActualPlacementChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ActualPlacementChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ActualPlacementChanged(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ChildProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChildProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsOpenProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsOpenProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HorizontalOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HorizontalOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_VerticalOffsetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().VerticalOffsetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ChildTransitionsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ChildTransitionsProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsLightDismissEnabledProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsLightDismissEnabledProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_LightDismissOverlayModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LightDismissOverlayModeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ShouldConstrainToRootBoundsProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ShouldConstrainToRootBoundsProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PlacementTargetProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PlacementTargetProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DesiredPlacementProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DesiredPlacementProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EllipseDiameter(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EllipseDiameter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EllipseOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EllipseOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EllipseAnimationWellPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EllipseAnimationWellPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EllipseAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EllipseAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContainerAnimationStartPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContainerAnimationStartPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContainerAnimationEndPosition(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContainerAnimationEndPosition()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndicatorLengthDelta(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndicatorLengthDelta()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_EllipseDiameter(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().EllipseDiameter()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_EllipseOffset(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().EllipseOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaxSideLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaxSideLength()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Minimum(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Minimum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Minimum(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Minimum(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Maximum(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Maximum()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Maximum(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Maximum(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SmallChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmallChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SmallChange(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SmallChange(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LargeChange(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LargeChange()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_LargeChange(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().LargeChange(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Value(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Value(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_ValueChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ValueChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ValueChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ValueChanged(*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 OnMinimumChanged(double oldMinimum, double newMinimum) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnMinimumChanged(oldMinimum, newMinimum); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnMaximumChanged(double oldMaximum, double newMaximum) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnMaximumChanged(oldMaximum, newMaximum); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall OnValueChanged(double oldValue, double newValue) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnValueChanged(oldValue, newValue); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_MinimumProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MinimumProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MaximumProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MaximumProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SmallChangeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SmallChangeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_LargeChangeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().LargeChangeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ValueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ValueProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OldValue(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OldValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NewValue(double* value) noexcept final try { 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_Delay(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Delay()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Delay(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Delay(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Interval(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Interval()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Interval(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Interval(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_DelayProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DelayProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IntervalProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IntervalProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Orientation(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Orientation()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Orientation(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Orientation(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportSize(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportSize()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_ViewportSize(double value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().ViewportSize(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndicatorMode(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndicatorMode()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IndicatorMode(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IndicatorMode(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Scroll(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Scroll(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Scroll(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Scroll(*reinterpret_cast(&token)); return 0; } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OrientationProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OrientationProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ViewportSizeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ViewportSizeProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IndicatorModeProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IndicatorModeProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NewValue(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ScrollEventType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ScrollEventType()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct produce : produce_base { int32_t __stdcall get_AreHorizontalSnapPointsRegular(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AreHorizontalSnapPointsRegular()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_AreVerticalSnapPointsRegular(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().AreVerticalSnapPointsRegular()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_HorizontalSnapPointsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().HorizontalSnapPointsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_HorizontalSnapPointsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().HorizontalSnapPointsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_VerticalSnapPointsChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().VerticalSnapPointsChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_VerticalSnapPointsChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().VerticalSnapPointsChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall GetIrregularSnapPoints(int32_t orientation, int32_t alignment, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from>(this->shim().GetIrregularSnapPoints(*reinterpret_cast(&orientation), *reinterpret_cast(&alignment))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetRegularSnapPoints(int32_t orientation, int32_t alignment, float* offset, float* returnValue) noexcept final try { typename D::abi_guard guard(this->shim()); *returnValue = detach_from(this->shim().GetRegularSnapPoints(*reinterpret_cast(&orientation), *reinterpret_cast(&alignment), *offset)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedIndex(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedIndex()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedIndex(int32_t value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedIndex(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedItem(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedItem(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedValue(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedValue()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedValue(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedValue(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedValuePath(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedValuePath()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_SelectedValuePath(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().SelectedValuePath(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSynchronizedWithCurrentItem(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsSynchronizedWithCurrentItem()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSynchronizedWithCurrentItem(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSynchronizedWithCurrentItem(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_SelectionChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().SelectionChanged(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_SelectionChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().SelectionChanged(*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 get_IsSelected(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSelected()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsSelected(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsSelected(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_IsSelectedProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSelectedProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_SelectedIndexProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedIndexProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedItemProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedItemProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedValueProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedValueProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_SelectedValuePathProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().SelectedValuePathProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSynchronizedWithCurrentItemProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSynchronizedWithCurrentItemProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetIsSelectionActive(void* element, bool* result) noexcept final try { typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().GetIsSelectionActive(*reinterpret_cast(&element))); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_HeaderBackground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderBackground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_HeaderForeground(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().HeaderForeground()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BorderBrush(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().BorderBrush()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_BorderThickness(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().BorderThickness()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IconSource(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IconSource()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContentTransitions(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContentTransitions()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_OpenPaneLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenPaneLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NegativeOpenPaneLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeOpenPaneLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OpenPaneLengthMinusCompactLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().OpenPaneLengthMinusCompactLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_NegativeOpenPaneLengthMinusCompactLength(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NegativeOpenPaneLengthMinusCompactLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_OpenPaneGridLength(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().OpenPaneGridLength()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CompactPaneGridLength(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().CompactPaneGridLength()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsDragging(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDragging()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_DragStarted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragStarted(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragStarted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragStarted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DragDelta(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragDelta(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragDelta(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragDelta(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DragCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DragCompleted(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DragCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DragCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall CancelDrag() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().CancelDrag(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsDraggingProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsDraggingProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Fill(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Fill()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Fill(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Fill(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FillProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FillProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsChecked(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().IsChecked()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsChecked(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsChecked(*reinterpret_cast const*>(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsThreeState(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsThreeState()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsThreeState(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsThreeState(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_Checked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Checked(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Checked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Checked(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Unchecked(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Unchecked(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Unchecked(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Unchecked(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_Indeterminate(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().Indeterminate(*reinterpret_cast(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_Indeterminate(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().Indeterminate(*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 OnToggle() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().OnToggle(); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_IsCheckedProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsCheckedProperty()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsThreeStateProperty(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsThreeStateProperty()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_KnobCurrentToOnOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KnobCurrentToOnOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KnobCurrentToOffOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KnobCurrentToOffOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KnobOnToOffOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KnobOnToOffOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_KnobOffToOnOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().KnobOffToOnOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurtainCurrentToOnOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurtainCurrentToOnOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurtainCurrentToOffOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurtainCurrentToOffOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurtainOnToOffOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurtainOnToOffOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CurtainOffToOnOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CurtainOffToOnOffset()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_FromHorizontalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FromHorizontalOffset()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_FromVerticalOffset(double* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().FromVerticalOffset()); return 0; } catch (...) { return to_hresult(); } }; #endif template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto CreatePresenter() { if (auto overridable = this->shim_overridable()) { return overridable.CreatePresenter(); } return this->shim().CreatePresenter(); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { 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 OnConfirmed() { if (auto overridable = this->shim_overridable()) { return overridable.OnConfirmed(); } return this->shim().OnConfirmed(); } auto ShouldShowConfirmationButtons() { if (auto overridable = this->shim_overridable()) { return overridable.ShouldShowConfirmationButtons(); } return this->shim().ShouldShowConfirmationButtons(); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnMinimumChanged(double oldMinimum, double newMinimum) { if (auto overridable = this->shim_overridable()) { return overridable.OnMinimumChanged(oldMinimum, newMinimum); } return this->shim().OnMinimumChanged(oldMinimum, newMinimum); } auto OnMaximumChanged(double oldMaximum, double newMaximum) { if (auto overridable = this->shim_overridable()) { return overridable.OnMaximumChanged(oldMaximum, newMaximum); } return this->shim().OnMaximumChanged(oldMaximum, newMaximum); } auto OnValueChanged(double oldValue, double newValue) { if (auto overridable = this->shim_overridable()) { return overridable.OnValueChanged(oldValue, newValue); } return this->shim().OnValueChanged(oldValue, newValue); } }; template struct WINRT_IMPL_EMPTY_BASES produce_dispatch_to_overridable : produce_dispatch_to_overridable_base { auto OnToggle() { if (auto overridable = this->shim_overridable()) { return overridable.OnToggle(); } return this->shim().OnToggle(); } }; } WINRT_EXPORT namespace winrt::Windows::UI::Xaml::Controls::Primitives { inline auto ButtonBase::ClickModeProperty() { return impl::call_factory_cast([](IButtonBaseStatics const& f) { return f.ClickModeProperty(); }); } inline auto ButtonBase::IsPointerOverProperty() { return impl::call_factory_cast([](IButtonBaseStatics const& f) { return f.IsPointerOverProperty(); }); } inline auto ButtonBase::IsPressedProperty() { return impl::call_factory_cast([](IButtonBaseStatics const& f) { return f.IsPressedProperty(); }); } inline auto ButtonBase::CommandProperty() { return impl::call_factory_cast([](IButtonBaseStatics const& f) { return f.CommandProperty(); }); } inline auto ButtonBase::CommandParameterProperty() { return impl::call_factory_cast([](IButtonBaseStatics const& f) { return f.CommandParameterProperty(); }); } inline CalendarPanel::CalendarPanel() : CalendarPanel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline CarouselPanel::CarouselPanel() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](ICarouselPanelFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline ColorPickerSlider::ColorPickerSlider() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IColorPickerSliderFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ColorPickerSlider::ColorChannelProperty() { return impl::call_factory_cast([](IColorPickerSliderStatics const& f) { return f.ColorChannelProperty(); }); } inline ColorSpectrum::ColorSpectrum() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IColorSpectrumFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ColorSpectrum::ColorProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.ColorProperty(); }); } inline auto ColorSpectrum::HsvColorProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.HsvColorProperty(); }); } inline auto ColorSpectrum::MinHueProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MinHueProperty(); }); } inline auto ColorSpectrum::MaxHueProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MaxHueProperty(); }); } inline auto ColorSpectrum::MinSaturationProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MinSaturationProperty(); }); } inline auto ColorSpectrum::MaxSaturationProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MaxSaturationProperty(); }); } inline auto ColorSpectrum::MinValueProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MinValueProperty(); }); } inline auto ColorSpectrum::MaxValueProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.MaxValueProperty(); }); } inline auto ColorSpectrum::ShapeProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.ShapeProperty(); }); } inline auto ColorSpectrum::ComponentsProperty() { return impl::call_factory_cast([](IColorSpectrumStatics const& f) { return f.ComponentsProperty(); }); } inline CommandBarFlyoutCommandBar::CommandBarFlyoutCommandBar() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](ICommandBarFlyoutCommandBarFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline DragCompletedEventArgs::DragCompletedEventArgs(double horizontalChange, double verticalChange, bool canceled) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDragCompletedEventArgsFactory const& f) { return f.CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, baseInterface, innerInterface); }); } inline DragDeltaEventArgs::DragDeltaEventArgs(double horizontalChange, double verticalChange) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDragDeltaEventArgsFactory const& f) { return f.CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, baseInterface, innerInterface); }); } inline DragStartedEventArgs::DragStartedEventArgs(double horizontalOffset, double verticalOffset) { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IDragStartedEventArgsFactory const& f) { return f.CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, baseInterface, innerInterface); }); } inline auto FlyoutBase::PlacementProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics const& f) { return f.PlacementProperty(); }); } inline auto FlyoutBase::AttachedFlyoutProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics const& f) { return f.AttachedFlyoutProperty(); }); } inline auto FlyoutBase::GetAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& element) { return impl::call_factory([&](IFlyoutBaseStatics const& f) { return f.GetAttachedFlyout(element); }); } inline auto FlyoutBase::SetAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& element, winrt::Windows::UI::Xaml::Controls::Primitives::FlyoutBase const& value) { impl::call_factory([&](IFlyoutBaseStatics const& f) { return f.SetAttachedFlyout(element, value); }); } inline auto FlyoutBase::ShowAttachedFlyout(winrt::Windows::UI::Xaml::FrameworkElement const& flyoutOwner) { impl::call_factory([&](IFlyoutBaseStatics const& f) { return f.ShowAttachedFlyout(flyoutOwner); }); } inline auto FlyoutBase::AllowFocusOnInteractionProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics2 const& f) { return f.AllowFocusOnInteractionProperty(); }); } inline auto FlyoutBase::LightDismissOverlayModeProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics2 const& f) { return f.LightDismissOverlayModeProperty(); }); } inline auto FlyoutBase::AllowFocusWhenDisabledProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics2 const& f) { return f.AllowFocusWhenDisabledProperty(); }); } inline auto FlyoutBase::ElementSoundModeProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics2 const& f) { return f.ElementSoundModeProperty(); }); } inline auto FlyoutBase::OverlayInputPassThroughElementProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics3 const& f) { return f.OverlayInputPassThroughElementProperty(); }); } inline auto FlyoutBase::TargetProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics5 const& f) { return f.TargetProperty(); }); } inline auto FlyoutBase::ShowModeProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics5 const& f) { return f.ShowModeProperty(); }); } inline auto FlyoutBase::InputDevicePrefersPrimaryCommandsProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics5 const& f) { return f.InputDevicePrefersPrimaryCommandsProperty(); }); } inline auto FlyoutBase::AreOpenCloseAnimationsEnabledProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics5 const& f) { return f.AreOpenCloseAnimationsEnabledProperty(); }); } inline auto FlyoutBase::IsOpenProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics5 const& f) { return f.IsOpenProperty(); }); } inline auto FlyoutBase::ShouldConstrainToRootBoundsProperty() { return impl::call_factory_cast([](IFlyoutBaseStatics6 const& f) { return f.ShouldConstrainToRootBoundsProperty(); }); } inline FlyoutShowOptions::FlyoutShowOptions() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IFlyoutShowOptionsFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto GeneratorPositionHelper::FromIndexAndOffset(int32_t index, int32_t offset) { return impl::call_factory([&](IGeneratorPositionHelperStatics const& f) { return f.FromIndexAndOffset(index, offset); }); } inline GridViewItemPresenter::GridViewItemPresenter() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IGridViewItemPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto GridViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectionCheckMarkVisualEnabledProperty(); }); } inline auto GridViewItemPresenter::CheckHintBrushProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.CheckHintBrushProperty(); }); } inline auto GridViewItemPresenter::CheckSelectingBrushProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.CheckSelectingBrushProperty(); }); } inline auto GridViewItemPresenter::CheckBrushProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.CheckBrushProperty(); }); } inline auto GridViewItemPresenter::DragBackgroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.DragBackgroundProperty(); }); } inline auto GridViewItemPresenter::DragForegroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.DragForegroundProperty(); }); } inline auto GridViewItemPresenter::FocusBorderBrushProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.FocusBorderBrushProperty(); }); } inline auto GridViewItemPresenter::PlaceholderBackgroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.PlaceholderBackgroundProperty(); }); } inline auto GridViewItemPresenter::PointerOverBackgroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.PointerOverBackgroundProperty(); }); } inline auto GridViewItemPresenter::SelectedBackgroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectedBackgroundProperty(); }); } inline auto GridViewItemPresenter::SelectedForegroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectedForegroundProperty(); }); } inline auto GridViewItemPresenter::SelectedPointerOverBackgroundProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectedPointerOverBackgroundProperty(); }); } inline auto GridViewItemPresenter::SelectedPointerOverBorderBrushProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectedPointerOverBorderBrushProperty(); }); } inline auto GridViewItemPresenter::SelectedBorderThicknessProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.SelectedBorderThicknessProperty(); }); } inline auto GridViewItemPresenter::DisabledOpacityProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.DisabledOpacityProperty(); }); } inline auto GridViewItemPresenter::DragOpacityProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.DragOpacityProperty(); }); } inline auto GridViewItemPresenter::ReorderHintOffsetProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.ReorderHintOffsetProperty(); }); } inline auto GridViewItemPresenter::GridViewItemPresenterHorizontalContentAlignmentProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.GridViewItemPresenterHorizontalContentAlignmentProperty(); }); } inline auto GridViewItemPresenter::GridViewItemPresenterVerticalContentAlignmentProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.GridViewItemPresenterVerticalContentAlignmentProperty(); }); } inline auto GridViewItemPresenter::GridViewItemPresenterPaddingProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.GridViewItemPresenterPaddingProperty(); }); } inline auto GridViewItemPresenter::PointerOverBackgroundMarginProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.PointerOverBackgroundMarginProperty(); }); } inline auto GridViewItemPresenter::ContentMarginProperty() { return impl::call_factory_cast([](IGridViewItemPresenterStatics const& f) { return f.ContentMarginProperty(); }); } inline JumpListItemBackgroundConverter::JumpListItemBackgroundConverter() : JumpListItemBackgroundConverter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto JumpListItemBackgroundConverter::EnabledProperty() { return impl::call_factory_cast([](IJumpListItemBackgroundConverterStatics const& f) { return f.EnabledProperty(); }); } inline auto JumpListItemBackgroundConverter::DisabledProperty() { return impl::call_factory_cast([](IJumpListItemBackgroundConverterStatics const& f) { return f.DisabledProperty(); }); } inline JumpListItemForegroundConverter::JumpListItemForegroundConverter() : JumpListItemForegroundConverter(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto JumpListItemForegroundConverter::EnabledProperty() { return impl::call_factory_cast([](IJumpListItemForegroundConverterStatics const& f) { return f.EnabledProperty(); }); } inline auto JumpListItemForegroundConverter::DisabledProperty() { return impl::call_factory_cast([](IJumpListItemForegroundConverterStatics const& f) { return f.DisabledProperty(); }); } inline auto LayoutInformation::GetLayoutExceptionElement(winrt::Windows::Foundation::IInspectable const& dispatcher) { return impl::call_factory([&](ILayoutInformationStatics const& f) { return f.GetLayoutExceptionElement(dispatcher); }); } inline auto LayoutInformation::GetLayoutSlot(winrt::Windows::UI::Xaml::FrameworkElement const& element) { return impl::call_factory([&](ILayoutInformationStatics const& f) { return f.GetLayoutSlot(element); }); } inline auto LayoutInformation::GetAvailableSize(winrt::Windows::UI::Xaml::UIElement const& element) { return impl::call_factory([&](ILayoutInformationStatics2 const& f) { return f.GetAvailableSize(element); }); } inline ListViewItemPresenter::ListViewItemPresenter() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IListViewItemPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ListViewItemPresenter::SelectionCheckMarkVisualEnabledProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectionCheckMarkVisualEnabledProperty(); }); } inline auto ListViewItemPresenter::CheckHintBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.CheckHintBrushProperty(); }); } inline auto ListViewItemPresenter::CheckSelectingBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.CheckSelectingBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.CheckBrushProperty(); }); } inline auto ListViewItemPresenter::DragBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.DragBackgroundProperty(); }); } inline auto ListViewItemPresenter::DragForegroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.DragForegroundProperty(); }); } inline auto ListViewItemPresenter::FocusBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.FocusBorderBrushProperty(); }); } inline auto ListViewItemPresenter::PlaceholderBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.PlaceholderBackgroundProperty(); }); } inline auto ListViewItemPresenter::PointerOverBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.PointerOverBackgroundProperty(); }); } inline auto ListViewItemPresenter::SelectedBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectedBackgroundProperty(); }); } inline auto ListViewItemPresenter::SelectedForegroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectedForegroundProperty(); }); } inline auto ListViewItemPresenter::SelectedPointerOverBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectedPointerOverBackgroundProperty(); }); } inline auto ListViewItemPresenter::SelectedPointerOverBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectedPointerOverBorderBrushProperty(); }); } inline auto ListViewItemPresenter::SelectedBorderThicknessProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.SelectedBorderThicknessProperty(); }); } inline auto ListViewItemPresenter::DisabledOpacityProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.DisabledOpacityProperty(); }); } inline auto ListViewItemPresenter::DragOpacityProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.DragOpacityProperty(); }); } inline auto ListViewItemPresenter::ReorderHintOffsetProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.ReorderHintOffsetProperty(); }); } inline auto ListViewItemPresenter::ListViewItemPresenterHorizontalContentAlignmentProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.ListViewItemPresenterHorizontalContentAlignmentProperty(); }); } inline auto ListViewItemPresenter::ListViewItemPresenterVerticalContentAlignmentProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.ListViewItemPresenterVerticalContentAlignmentProperty(); }); } inline auto ListViewItemPresenter::ListViewItemPresenterPaddingProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.ListViewItemPresenterPaddingProperty(); }); } inline auto ListViewItemPresenter::PointerOverBackgroundMarginProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.PointerOverBackgroundMarginProperty(); }); } inline auto ListViewItemPresenter::ContentMarginProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics const& f) { return f.ContentMarginProperty(); }); } inline auto ListViewItemPresenter::SelectedPressedBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.SelectedPressedBackgroundProperty(); }); } inline auto ListViewItemPresenter::PressedBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.PressedBackgroundProperty(); }); } inline auto ListViewItemPresenter::CheckBoxBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.CheckBoxBrushProperty(); }); } inline auto ListViewItemPresenter::FocusSecondaryBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.FocusSecondaryBorderBrushProperty(); }); } inline auto ListViewItemPresenter::CheckModeProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.CheckModeProperty(); }); } inline auto ListViewItemPresenter::PointerOverForegroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics2 const& f) { return f.PointerOverForegroundProperty(); }); } inline auto ListViewItemPresenter::RevealBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics3 const& f) { return f.RevealBackgroundProperty(); }); } inline auto ListViewItemPresenter::RevealBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics3 const& f) { return f.RevealBorderBrushProperty(); }); } inline auto ListViewItemPresenter::RevealBorderThicknessProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics3 const& f) { return f.RevealBorderThicknessProperty(); }); } inline auto ListViewItemPresenter::RevealBackgroundShowsAboveContentProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics3 const& f) { return f.RevealBackgroundShowsAboveContentProperty(); }); } inline auto ListViewItemPresenter::SelectedDisabledBackgroundProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectedDisabledBackgroundProperty(); }); } inline auto ListViewItemPresenter::CheckPressedBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckPressedBrushProperty(); }); } inline auto ListViewItemPresenter::CheckDisabledBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckDisabledBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxPointerOverBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxPointerOverBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxPressedBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxPressedBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxDisabledBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxDisabledBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxSelectedBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxSelectedBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxSelectedPointerOverBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxSelectedPointerOverBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxSelectedPressedBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxSelectedPressedBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxSelectedDisabledBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxSelectedDisabledBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxBorderBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxPointerOverBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxPointerOverBorderBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxPressedBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxPressedBorderBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxDisabledBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxDisabledBorderBrushProperty(); }); } inline auto ListViewItemPresenter::CheckBoxCornerRadiusProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.CheckBoxCornerRadiusProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorCornerRadiusProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorCornerRadiusProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorVisualEnabledProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorVisualEnabledProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorModeProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorModeProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorBrushProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorPointerOverBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorPointerOverBrushProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorPressedBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorPressedBrushProperty(); }); } inline auto ListViewItemPresenter::SelectionIndicatorDisabledBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectionIndicatorDisabledBrushProperty(); }); } inline auto ListViewItemPresenter::SelectedBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectedBorderBrushProperty(); }); } inline auto ListViewItemPresenter::SelectedPressedBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectedPressedBorderBrushProperty(); }); } inline auto ListViewItemPresenter::SelectedDisabledBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectedDisabledBorderBrushProperty(); }); } inline auto ListViewItemPresenter::SelectedInnerBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.SelectedInnerBorderBrushProperty(); }); } inline auto ListViewItemPresenter::PointerOverBorderBrushProperty() { return impl::call_factory_cast([](IListViewItemPresenterStatics4 const& f) { return f.PointerOverBorderBrushProperty(); }); } inline auto LoopingSelector::ShouldLoopProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.ShouldLoopProperty(); }); } inline auto LoopingSelector::ItemsProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.ItemsProperty(); }); } inline auto LoopingSelector::SelectedIndexProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.SelectedIndexProperty(); }); } inline auto LoopingSelector::SelectedItemProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.SelectedItemProperty(); }); } inline auto LoopingSelector::ItemWidthProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.ItemWidthProperty(); }); } inline auto LoopingSelector::ItemHeightProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.ItemHeightProperty(); }); } inline auto LoopingSelector::ItemTemplateProperty() { return impl::call_factory_cast([](ILoopingSelectorStatics const& f) { return f.ItemTemplateProperty(); }); } inline NavigationViewItemPresenter::NavigationViewItemPresenter() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](INavigationViewItemPresenterFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto NavigationViewItemPresenter::IconProperty() { return impl::call_factory_cast([](INavigationViewItemPresenterStatics const& f) { return f.IconProperty(); }); } inline auto PickerFlyoutBase::TitleProperty() { return impl::call_factory_cast([](IPickerFlyoutBaseStatics const& f) { return f.TitleProperty(); }); } inline auto PickerFlyoutBase::GetTitle(winrt::Windows::UI::Xaml::DependencyObject const& element) { return impl::call_factory([&](IPickerFlyoutBaseStatics const& f) { return f.GetTitle(element); }); } inline auto PickerFlyoutBase::SetTitle(winrt::Windows::UI::Xaml::DependencyObject const& element, param::hstring const& value) { impl::call_factory([&](IPickerFlyoutBaseStatics const& f) { return f.SetTitle(element, value); }); } inline PivotHeaderItem::PivotHeaderItem() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IPivotHeaderItemFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline PivotHeaderPanel::PivotHeaderPanel() : PivotHeaderPanel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline PivotPanel::PivotPanel() : PivotPanel(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline Popup::Popup() : Popup(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Popup::ChildProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.ChildProperty(); }); } inline auto Popup::IsOpenProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.IsOpenProperty(); }); } inline auto Popup::HorizontalOffsetProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.HorizontalOffsetProperty(); }); } inline auto Popup::VerticalOffsetProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.VerticalOffsetProperty(); }); } inline auto Popup::ChildTransitionsProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.ChildTransitionsProperty(); }); } inline auto Popup::IsLightDismissEnabledProperty() { return impl::call_factory_cast([](IPopupStatics const& f) { return f.IsLightDismissEnabledProperty(); }); } inline auto Popup::LightDismissOverlayModeProperty() { return impl::call_factory_cast([](IPopupStatics2 const& f) { return f.LightDismissOverlayModeProperty(); }); } inline auto Popup::ShouldConstrainToRootBoundsProperty() { return impl::call_factory_cast([](IPopupStatics3 const& f) { return f.ShouldConstrainToRootBoundsProperty(); }); } inline auto Popup::PlacementTargetProperty() { return impl::call_factory_cast([](IPopupStatics4 const& f) { return f.PlacementTargetProperty(); }); } inline auto Popup::DesiredPlacementProperty() { return impl::call_factory_cast([](IPopupStatics4 const& f) { return f.DesiredPlacementProperty(); }); } inline auto RangeBase::MinimumProperty() { return impl::call_factory_cast([](IRangeBaseStatics const& f) { return f.MinimumProperty(); }); } inline auto RangeBase::MaximumProperty() { return impl::call_factory_cast([](IRangeBaseStatics const& f) { return f.MaximumProperty(); }); } inline auto RangeBase::SmallChangeProperty() { return impl::call_factory_cast([](IRangeBaseStatics const& f) { return f.SmallChangeProperty(); }); } inline auto RangeBase::LargeChangeProperty() { return impl::call_factory_cast([](IRangeBaseStatics const& f) { return f.LargeChangeProperty(); }); } inline auto RangeBase::ValueProperty() { return impl::call_factory_cast([](IRangeBaseStatics const& f) { return f.ValueProperty(); }); } inline RepeatButton::RepeatButton() : RepeatButton(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto RepeatButton::DelayProperty() { return impl::call_factory_cast([](IRepeatButtonStatics const& f) { return f.DelayProperty(); }); } inline auto RepeatButton::IntervalProperty() { return impl::call_factory_cast([](IRepeatButtonStatics const& f) { return f.IntervalProperty(); }); } inline ScrollBar::ScrollBar() : ScrollBar(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto ScrollBar::OrientationProperty() { return impl::call_factory_cast([](IScrollBarStatics const& f) { return f.OrientationProperty(); }); } inline auto ScrollBar::ViewportSizeProperty() { return impl::call_factory_cast([](IScrollBarStatics const& f) { return f.ViewportSizeProperty(); }); } inline auto ScrollBar::IndicatorModeProperty() { return impl::call_factory_cast([](IScrollBarStatics const& f) { return f.IndicatorModeProperty(); }); } inline ScrollEventArgs::ScrollEventArgs() : ScrollEventArgs(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Selector::SelectedIndexProperty() { return impl::call_factory_cast([](ISelectorStatics const& f) { return f.SelectedIndexProperty(); }); } inline auto Selector::SelectedItemProperty() { return impl::call_factory_cast([](ISelectorStatics const& f) { return f.SelectedItemProperty(); }); } inline auto Selector::SelectedValueProperty() { return impl::call_factory_cast([](ISelectorStatics const& f) { return f.SelectedValueProperty(); }); } inline auto Selector::SelectedValuePathProperty() { return impl::call_factory_cast([](ISelectorStatics const& f) { return f.SelectedValuePathProperty(); }); } inline auto Selector::IsSynchronizedWithCurrentItemProperty() { return impl::call_factory_cast([](ISelectorStatics const& f) { return f.IsSynchronizedWithCurrentItemProperty(); }); } inline auto Selector::GetIsSelectionActive(winrt::Windows::UI::Xaml::DependencyObject const& element) { return impl::call_factory([&](ISelectorStatics const& f) { return f.GetIsSelectionActive(element); }); } inline auto SelectorItem::IsSelectedProperty() { return impl::call_factory_cast([](ISelectorItemStatics const& f) { return f.IsSelectedProperty(); }); } inline Thumb::Thumb() : Thumb(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto Thumb::IsDraggingProperty() { return impl::call_factory_cast([](IThumbStatics const& f) { return f.IsDraggingProperty(); }); } inline TickBar::TickBar() : TickBar(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) { } inline auto TickBar::FillProperty() { return impl::call_factory_cast([](ITickBarStatics const& f) { return f.FillProperty(); }); } inline ToggleButton::ToggleButton() { winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; *this = impl::call_factory([&](IToggleButtonFactory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); } inline auto ToggleButton::IsCheckedProperty() { return impl::call_factory_cast([](IToggleButtonStatics const& f) { return f.IsCheckedProperty(); }); } inline auto ToggleButton::IsThreeStateProperty() { return impl::call_factory_cast([](IToggleButtonStatics const& f) { return f.IsThreeStateProperty(); }); } template DragCompletedEventHandler::DragCompletedEventHandler(L handler) : DragCompletedEventHandler(impl::make_delegate(std::forward(handler))) { } template DragCompletedEventHandler::DragCompletedEventHandler(F* handler) : DragCompletedEventHandler([=](auto&&... args) { return handler(args...); }) { } template DragCompletedEventHandler::DragCompletedEventHandler(O* object, M method) : DragCompletedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template DragCompletedEventHandler::DragCompletedEventHandler(com_ptr&& object, M method) : DragCompletedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragCompletedEventHandler::DragCompletedEventHandler(weak_ref&& object, LM&& lambda_or_method) : DragCompletedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template DragCompletedEventHandler::DragCompletedEventHandler(std::shared_ptr&& object, M method) : DragCompletedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragCompletedEventHandler::DragCompletedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : DragCompletedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto DragCompletedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::DragCompletedEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template DragDeltaEventHandler::DragDeltaEventHandler(L handler) : DragDeltaEventHandler(impl::make_delegate(std::forward(handler))) { } template DragDeltaEventHandler::DragDeltaEventHandler(F* handler) : DragDeltaEventHandler([=](auto&&... args) { return handler(args...); }) { } template DragDeltaEventHandler::DragDeltaEventHandler(O* object, M method) : DragDeltaEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template DragDeltaEventHandler::DragDeltaEventHandler(com_ptr&& object, M method) : DragDeltaEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragDeltaEventHandler::DragDeltaEventHandler(weak_ref&& object, LM&& lambda_or_method) : DragDeltaEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template DragDeltaEventHandler::DragDeltaEventHandler(std::shared_ptr&& object, M method) : DragDeltaEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragDeltaEventHandler::DragDeltaEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : DragDeltaEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto DragDeltaEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::DragDeltaEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template DragStartedEventHandler::DragStartedEventHandler(L handler) : DragStartedEventHandler(impl::make_delegate(std::forward(handler))) { } template DragStartedEventHandler::DragStartedEventHandler(F* handler) : DragStartedEventHandler([=](auto&&... args) { return handler(args...); }) { } template DragStartedEventHandler::DragStartedEventHandler(O* object, M method) : DragStartedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template DragStartedEventHandler::DragStartedEventHandler(com_ptr&& object, M method) : DragStartedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragStartedEventHandler::DragStartedEventHandler(weak_ref&& object, LM&& lambda_or_method) : DragStartedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template DragStartedEventHandler::DragStartedEventHandler(std::shared_ptr&& object, M method) : DragStartedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template DragStartedEventHandler::DragStartedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : DragStartedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto DragStartedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::DragStartedEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template ItemsChangedEventHandler::ItemsChangedEventHandler(L handler) : ItemsChangedEventHandler(impl::make_delegate(std::forward(handler))) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(F* handler) : ItemsChangedEventHandler([=](auto&&... args) { return handler(args...); }) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(O* object, M method) : ItemsChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(com_ptr&& object, M method) : ItemsChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : ItemsChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(std::shared_ptr&& object, M method) : ItemsChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template ItemsChangedEventHandler::ItemsChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : ItemsChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto ItemsChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::ItemsChangedEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(L handler) : RangeBaseValueChangedEventHandler(impl::make_delegate(std::forward(handler))) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(F* handler) : RangeBaseValueChangedEventHandler([=](auto&&... args) { return handler(args...); }) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(O* object, M method) : RangeBaseValueChangedEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(com_ptr&& object, M method) : RangeBaseValueChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(weak_ref&& object, LM&& lambda_or_method) : RangeBaseValueChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(std::shared_ptr&& object, M method) : RangeBaseValueChangedEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template RangeBaseValueChangedEventHandler::RangeBaseValueChangedEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : RangeBaseValueChangedEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto RangeBaseValueChangedEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::RangeBaseValueChangedEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template ScrollEventHandler::ScrollEventHandler(L handler) : ScrollEventHandler(impl::make_delegate(std::forward(handler))) { } template ScrollEventHandler::ScrollEventHandler(F* handler) : ScrollEventHandler([=](auto&&... args) { return handler(args...); }) { } template ScrollEventHandler::ScrollEventHandler(O* object, M method) : ScrollEventHandler([=](auto&&... args) { return ((*object).*(method))(args...); }) { } template ScrollEventHandler::ScrollEventHandler(com_ptr&& object, M method) : ScrollEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template ScrollEventHandler::ScrollEventHandler(weak_ref&& object, LM&& lambda_or_method) : ScrollEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.get()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } template ScrollEventHandler::ScrollEventHandler(std::shared_ptr&& object, M method) : ScrollEventHandler([o = std::move(object), method](auto&&... args) { return ((*o).*(method))(args...); }) { } template ScrollEventHandler::ScrollEventHandler(std::weak_ptr&& object, LM&& lambda_or_method) : ScrollEventHandler([o = std::move(object), lm = std::forward(lambda_or_method)](auto&&... args) { if (auto s = o.lock()) { if constexpr (std::is_member_function_pointer_v) ((*s).*(lm))(args...); else lm(args...); } }) { } inline auto ScrollEventHandler::operator()(winrt::Windows::Foundation::IInspectable const& sender, winrt::Windows::UI::Xaml::Controls::Primitives::ScrollEventArgs const& e) const { check_hresult((*(impl::abi_t**)this)->Invoke(*(void**)(&sender), *(void**)(&e))); } template auto IFlyoutBaseOverridesT::CreatePresenter() const { return shim().template try_as().CreatePresenter(); } template auto IFlyoutBaseOverrides4T::OnProcessKeyboardAccelerators(winrt::Windows::UI::Xaml::Input::ProcessKeyboardAcceleratorEventArgs const& args) const { return shim().template try_as().OnProcessKeyboardAccelerators(args); } template auto IPickerFlyoutBaseOverridesT::OnConfirmed() const { return shim().template try_as().OnConfirmed(); } template auto IPickerFlyoutBaseOverridesT::ShouldShowConfirmationButtons() const { return shim().template try_as().ShouldShowConfirmationButtons(); } template auto IRangeBaseOverridesT::OnMinimumChanged(double oldMinimum, double newMinimum) const { return shim().template try_as().OnMinimumChanged(oldMinimum, newMinimum); } template auto IRangeBaseOverridesT::OnMaximumChanged(double oldMaximum, double newMaximum) const { return shim().template try_as().OnMaximumChanged(oldMaximum, newMaximum); } template auto IRangeBaseOverridesT::OnValueChanged(double oldValue, double newValue) const { return shim().template try_as().OnValueChanged(oldValue, newValue); } template auto IToggleButtonOverridesT::OnToggle() const { return shim().template try_as().OnToggle(); } template struct ButtonBaseT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = ButtonBase; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: ButtonBaseT() { impl::call_factory([&](IButtonBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct CarouselPanelT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IVirtualizingPanelOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = CarouselPanel; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: CarouselPanelT() { impl::call_factory([&](ICarouselPanelFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct ColorPickerSliderT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = ColorPickerSlider; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: ColorPickerSliderT() { impl::call_factory([&](IColorPickerSliderFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct ColorSpectrumT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = ColorSpectrum; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: ColorSpectrumT() { impl::call_factory([&](IColorSpectrumFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct CommandBarFlyoutCommandBarT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IAppBarOverridesT, winrt::Windows::UI::Xaml::Controls::IAppBarOverrides3T, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = CommandBarFlyoutCommandBar; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: CommandBarFlyoutCommandBarT() { impl::call_factory([&](ICommandBarFlyoutCommandBarFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct DragCompletedEventArgsT : implements, impl::require, impl::base { using composable = DragCompletedEventArgs; protected: DragCompletedEventArgsT(double horizontalChange, double verticalChange, bool canceled) { impl::call_factory([&](IDragCompletedEventArgsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstanceWithHorizontalChangeVerticalChangeAndCanceled(horizontalChange, verticalChange, canceled, *this, this->m_inner); }); } }; template struct DragDeltaEventArgsT : implements, impl::require, impl::base { using composable = DragDeltaEventArgs; protected: DragDeltaEventArgsT(double horizontalChange, double verticalChange) { impl::call_factory([&](IDragDeltaEventArgsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstanceWithHorizontalChangeAndVerticalChange(horizontalChange, verticalChange, *this, this->m_inner); }); } }; template struct DragStartedEventArgsT : implements, impl::require, impl::base { using composable = DragStartedEventArgs; protected: DragStartedEventArgsT(double horizontalOffset, double verticalOffset) { impl::call_factory([&](IDragStartedEventArgsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstanceWithHorizontalOffsetAndVerticalOffset(horizontalOffset, verticalOffset, *this, this->m_inner); }); } }; template struct FlyoutBaseT : implements, impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT, winrt::Windows::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides4T { using composable = FlyoutBase; friend impl::produce; friend impl::produce; protected: FlyoutBaseT() { impl::call_factory([&](IFlyoutBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } using impl::consume_t::ShowAt; using impl::consume_t::ShowAt; }; template struct FlyoutShowOptionsT : implements, impl::require, impl::base { using composable = FlyoutShowOptions; protected: FlyoutShowOptionsT() { impl::call_factory([&](IFlyoutShowOptionsFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct GridViewItemPresenterT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentPresenterOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = GridViewItemPresenter; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: GridViewItemPresenterT() { impl::call_factory([&](IGridViewItemPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct ListViewItemPresenterT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentPresenterOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = ListViewItemPresenter; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: ListViewItemPresenterT() { impl::call_factory([&](IListViewItemPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct NavigationViewItemPresenterT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = NavigationViewItemPresenter; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: NavigationViewItemPresenterT() { impl::call_factory([&](INavigationViewItemPresenterFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct PickerFlyoutBaseT : implements, impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::Primitives::IPickerFlyoutBaseOverridesT, winrt::Windows::UI::Xaml::Controls::Primitives::IFlyoutBaseOverridesT, winrt::Windows::UI::Xaml::Controls::Primitives::IFlyoutBaseOverrides4T { using composable = PickerFlyoutBase; friend impl::produce; friend impl::produce; friend impl::produce; protected: PickerFlyoutBaseT() { impl::call_factory([&](IPickerFlyoutBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } using impl::consume_t::ShowAt; using impl::consume_t::ShowAt; }; template struct PivotHeaderItemT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = PivotHeaderItem; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: PivotHeaderItemT() { impl::call_factory([&](IPivotHeaderItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct RangeBaseT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::Primitives::IRangeBaseOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = RangeBase; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: RangeBaseT() { impl::call_factory([&](IRangeBaseFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct SelectorItemT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = SelectorItem; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: SelectorItemT() { impl::call_factory([&](ISelectorItemFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; template struct ToggleButtonT : implements, impl::require, protected impl::require, impl::base, winrt::Windows::UI::Xaml::Controls::Primitives::IToggleButtonOverridesT, winrt::Windows::UI::Xaml::Controls::IContentControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverridesT, winrt::Windows::UI::Xaml::Controls::IControlOverrides6T, winrt::Windows::UI::Xaml::IFrameworkElementOverridesT, winrt::Windows::UI::Xaml::IFrameworkElementOverrides2T, winrt::Windows::UI::Xaml::IUIElementOverridesT, winrt::Windows::UI::Xaml::IUIElementOverrides7T, winrt::Windows::UI::Xaml::IUIElementOverrides8T, winrt::Windows::UI::Xaml::IUIElementOverrides9T { using composable = ToggleButton; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::consume_t; friend impl::require_one; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; friend impl::produce; protected: ToggleButtonT() { impl::call_factory([&](IToggleButtonFactory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); } }; } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif