forked from duchuule/vba10
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Converter.h
38 lines (29 loc) · 1.19 KB
/
Converter.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
32
33
34
35
36
37
38
#pragma once
#include <ppltasks.h>
//IMPORTANT NOTE: need to include this header file in both the .h and .cpp of an xaml page
using namespace Platform;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Interop;
using namespace Concurrency;
using namespace Windows::UI::Xaml::Media::Imaging;
namespace VBA10
{
[Windows::Foundation::Metadata::WebHostHidden]
public ref class IsoImageConverter sealed : Windows::UI::Xaml::Data::IValueConverter
{
public:
IsoImageConverter();
virtual Object^ Convert(Object^ value, TypeName targetType, Object^ parameter, String^ language);
virtual Object^ ConvertBack(Object^ value, TypeName targetType, Object^ parameter, String^ language);
private:
~IsoImageConverter();
task<void> LoadImageFromPath(BitmapImage^ bitmap, String^ filepath);
};
[Windows::Foundation::Metadata::WebHostHidden]
public ref class VisibilityConverter sealed : Windows::UI::Xaml::Data::IValueConverter
{
public:
virtual Object^ Convert(Object^ value, TypeName targetType, Object^ parameter, String^ language);
virtual Object^ ConvertBack(Object^ value, TypeName targetType, Object^ parameter, String^ language);
};
}