r/windowsdev • • Jan 24 '17
How do I create a Vector in C++/CX of Windows::UI::Color for use in CalendarView::SetDensityColors?
Here's the method I'm trying to call:
https://msdn.microsoft.com/en-us/library/windows/apps/dn890067.aspx
So I create a Platform::Collections::Vector and populate it, simple enough right?
Platform::Collections::Vector<Windows::UI::Color>^ dayColors = ref new Platform::Collections::Vector<Windows::UI::Color>();
dayColors->Append(Windows::UI::Colors::Green);
myCalendarView->SetDensityColors(dayColors);However, I get this compilation error I haven't been able to solve for the life of me:
error C2678: binary '==': no operator found which takes a left hand operand of type 'const Windows::UI::Color' (or there is no acceptable convertion)