forked from microsoft/microsoft-ui-xaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavigationViewItemHeader.h
31 lines (21 loc) · 954 Bytes
/
NavigationViewItemHeader.h
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#pragma once
#include "NavigationViewItemBase.h"
#include "NavigationViewItemHeader.g.h"
class NavigationViewItemHeader :
public winrt::implementation::NavigationViewItemHeaderT<NavigationViewItemHeader, NavigationViewItemBase>
{
public:
ForwardRefToBaseReferenceTracker(NavigationViewItemBase)
NavigationViewItemHeader();
// IFrameworkElementOverrides
void OnApplyTemplate() override;
private:
void OnSplitViewPropertyChanged(const winrt::DependencyObject& sender, const winrt::DependencyProperty& args);
void UpdateIsClosedCompact();
void UpdateVisualState(bool useTransitions);
bool m_isClosedCompact{ false };
PropertyChanged_revoker m_splitViewIsPaneOpenChangedRevoker{};
PropertyChanged_revoker m_splitViewDisplayModeChangedRevoker{};
};