mirror of
https://github.com/izzy2lost/vba10.git
synced 2026-03-26 18:15:30 -07:00
38 lines
775 B
C++
38 lines
775 B
C++
#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);
|
|
}
|
|
|
|
}
|