-
Notifications
You must be signed in to change notification settings - Fork 818
Expand file tree
/
Copy pathInkToolBarMenuButton.properties.cpp
More file actions
54 lines (45 loc) · 1.64 KB
/
InkToolBarMenuButton.properties.cpp
File metadata and controls
54 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
// DO NOT EDIT! This file was generated by CustomTasks.DependencyPropertyCodeGen
#include "pch.h"
#include "common.h"
#include "InkToolBarMenuButton.h"
namespace winrt::Microsoft::UI::Xaml::Controls
{
CppWinRTActivatableClassWithDPFactory(InkToolBarMenuButton)
}
#include "InkToolBarMenuButton.g.cpp"
GlobalDependencyProperty InkToolBarMenuButtonProperties::s_IsExtensionGlyphShownProperty{ nullptr };
InkToolBarMenuButtonProperties::InkToolBarMenuButtonProperties()
{
EnsureProperties();
}
void InkToolBarMenuButtonProperties::EnsureProperties()
{
if (!s_IsExtensionGlyphShownProperty)
{
s_IsExtensionGlyphShownProperty =
InitializeDependencyProperty(
L"IsExtensionGlyphShown",
winrt::name_of<bool>(),
winrt::name_of<winrt::InkToolBarMenuButton>(),
false /* isAttached */,
ValueHelper<bool>::BoxedDefaultValue(),
nullptr);
}
}
void InkToolBarMenuButtonProperties::ClearProperties()
{
s_IsExtensionGlyphShownProperty = nullptr;
}
void InkToolBarMenuButtonProperties::IsExtensionGlyphShown(bool value)
{
[[gsl::suppress(con)]]
{
static_cast<InkToolBarMenuButton*>(this)->SetValue(s_IsExtensionGlyphShownProperty, ValueHelper<bool>::BoxValueIfNecessary(value));
}
}
bool InkToolBarMenuButtonProperties::IsExtensionGlyphShown()
{
return ValueHelper<bool>::CastOrUnbox(static_cast<InkToolBarMenuButton*>(this)->GetValue(s_IsExtensionGlyphShownProperty));
}