forked from duchuule/vba10
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavMenuItem.cpp
More file actions
37 lines (32 loc) · 775 Bytes
/
Copy pathNavMenuItem.cpp
File metadata and controls
37 lines (32 loc) · 775 Bytes
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
#include "NavMenuItem.h"
using namespace Platform;
using namespace Windows::Foundation;
namespace VBA10
{
NavMenuItem::NavMenuItem(
String^ label,
Windows::UI::Xaml::Controls::Symbol symbol,
Windows::UI::Xaml::Interop::TypeName destPage)
{
Label = label;
Symbol = symbol;
DestPage = destPage;
Arguments = nullptr;
}
NavMenuItem::NavMenuItem(
Platform::String^ label,
Windows::UI::Xaml::Controls::Symbol symbol,
Windows::UI::Xaml::Interop::TypeName destPage,
Object^ arguments)
{
Label = label;
Symbol = symbol;
DestPage = destPage;
Arguments = arguments;
}
Platform::String^ NavMenuItem::SymbolAsChar::get()
{
wchar_t c[] = { (wchar_t)((int)(Symbol)), '\0' };
return ref new String(c);
}
}