in dev/Generated/PagerControl.properties.cpp [43:265]
void PagerControlProperties::EnsureProperties()
{
if (!s_ButtonPanelAlwaysShowFirstLastPageIndexProperty)
{
s_ButtonPanelAlwaysShowFirstLastPageIndexProperty =
InitializeDependencyProperty(
L"ButtonPanelAlwaysShowFirstLastPageIndex",
winrt::name_of<bool>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<bool>::BoxValueIfNecessary(true),
winrt::PropertyChangedCallback(&OnButtonPanelAlwaysShowFirstLastPageIndexPropertyChanged));
}
if (!s_DisplayModeProperty)
{
s_DisplayModeProperty =
InitializeDependencyProperty(
L"DisplayMode",
winrt::name_of<winrt::PagerControlDisplayMode>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlDisplayMode>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnDisplayModePropertyChanged));
}
if (!s_FirstButtonCommandProperty)
{
s_FirstButtonCommandProperty =
InitializeDependencyProperty(
L"FirstButtonCommand",
winrt::name_of<winrt::ICommand>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::ICommand>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnFirstButtonCommandPropertyChanged));
}
if (!s_FirstButtonStyleProperty)
{
s_FirstButtonStyleProperty =
InitializeDependencyProperty(
L"FirstButtonStyle",
winrt::name_of<winrt::Style>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::Style>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnFirstButtonStylePropertyChanged));
}
if (!s_FirstButtonVisibilityProperty)
{
s_FirstButtonVisibilityProperty =
InitializeDependencyProperty(
L"FirstButtonVisibility",
winrt::name_of<winrt::PagerControlButtonVisibility>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlButtonVisibility>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnFirstButtonVisibilityPropertyChanged));
}
if (!s_LastButtonCommandProperty)
{
s_LastButtonCommandProperty =
InitializeDependencyProperty(
L"LastButtonCommand",
winrt::name_of<winrt::ICommand>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::ICommand>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnLastButtonCommandPropertyChanged));
}
if (!s_LastButtonStyleProperty)
{
s_LastButtonStyleProperty =
InitializeDependencyProperty(
L"LastButtonStyle",
winrt::name_of<winrt::Style>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::Style>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnLastButtonStylePropertyChanged));
}
if (!s_LastButtonVisibilityProperty)
{
s_LastButtonVisibilityProperty =
InitializeDependencyProperty(
L"LastButtonVisibility",
winrt::name_of<winrt::PagerControlButtonVisibility>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlButtonVisibility>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnLastButtonVisibilityPropertyChanged));
}
if (!s_NextButtonCommandProperty)
{
s_NextButtonCommandProperty =
InitializeDependencyProperty(
L"NextButtonCommand",
winrt::name_of<winrt::ICommand>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::ICommand>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnNextButtonCommandPropertyChanged));
}
if (!s_NextButtonStyleProperty)
{
s_NextButtonStyleProperty =
InitializeDependencyProperty(
L"NextButtonStyle",
winrt::name_of<winrt::Style>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::Style>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnNextButtonStylePropertyChanged));
}
if (!s_NextButtonVisibilityProperty)
{
s_NextButtonVisibilityProperty =
InitializeDependencyProperty(
L"NextButtonVisibility",
winrt::name_of<winrt::PagerControlButtonVisibility>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlButtonVisibility>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnNextButtonVisibilityPropertyChanged));
}
if (!s_NumberOfPagesProperty)
{
s_NumberOfPagesProperty =
InitializeDependencyProperty(
L"NumberOfPages",
winrt::name_of<int>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<int>::BoxValueIfNecessary(0),
winrt::PropertyChangedCallback(&OnNumberOfPagesPropertyChanged));
}
if (!s_PagerInputCommandProperty)
{
s_PagerInputCommandProperty =
InitializeDependencyProperty(
L"PagerInputCommand",
winrt::name_of<winrt::ICommand>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::ICommand>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnPagerInputCommandPropertyChanged));
}
if (!s_PrefixTextProperty)
{
s_PrefixTextProperty =
InitializeDependencyProperty(
L"PrefixText",
winrt::name_of<winrt::hstring>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::hstring>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnPrefixTextPropertyChanged));
}
if (!s_PreviousButtonCommandProperty)
{
s_PreviousButtonCommandProperty =
InitializeDependencyProperty(
L"PreviousButtonCommand",
winrt::name_of<winrt::ICommand>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::ICommand>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnPreviousButtonCommandPropertyChanged));
}
if (!s_PreviousButtonStyleProperty)
{
s_PreviousButtonStyleProperty =
InitializeDependencyProperty(
L"PreviousButtonStyle",
winrt::name_of<winrt::Style>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::Style>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnPreviousButtonStylePropertyChanged));
}
if (!s_PreviousButtonVisibilityProperty)
{
s_PreviousButtonVisibilityProperty =
InitializeDependencyProperty(
L"PreviousButtonVisibility",
winrt::name_of<winrt::PagerControlButtonVisibility>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlButtonVisibility>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnPreviousButtonVisibilityPropertyChanged));
}
if (!s_SelectedPageIndexProperty)
{
s_SelectedPageIndexProperty =
InitializeDependencyProperty(
L"SelectedPageIndex",
winrt::name_of<int>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<int>::BoxValueIfNecessary(0),
winrt::PropertyChangedCallback(&OnSelectedPageIndexPropertyChanged));
}
if (!s_SuffixTextProperty)
{
s_SuffixTextProperty =
InitializeDependencyProperty(
L"SuffixText",
winrt::name_of<winrt::hstring>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::hstring>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnSuffixTextPropertyChanged));
}
if (!s_TemplateSettingsProperty)
{
s_TemplateSettingsProperty =
InitializeDependencyProperty(
L"TemplateSettings",
winrt::name_of<winrt::PagerControlTemplateSettings>(),
winrt::name_of<winrt::PagerControl>(),
false /* isAttached */,
ValueHelper<winrt::PagerControlTemplateSettings>::BoxedDefaultValue(),
winrt::PropertyChangedCallback(&OnTemplateSettingsPropertyChanged));
}
}