Commit 3547e8f0 by developer3

uFR lib tester C++ Windows IoT version 1.0

The first test project. Work.
parents
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
[submodule "lib"]
path = lib
url = git@git.d-logic.net:nfc-rfid-reader-sdk/ufr-lib.git
<Application
x:Class="AppTestUFRlib.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AppTestUFRlib"
RequestedTheme="Light">
</Application>
//
// App.xaml.cpp
// Implementation of the App class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace AppTestUFRlib;
using namespace Platform;
using namespace Windows::ApplicationModel;
using namespace Windows::ApplicationModel::Activation;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Interop;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
App::App()
{
InitializeComponent();
Suspending += ref new SuspendingEventHandler(this, &App::OnSuspending);
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
void App::OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e)
{
#if _DEBUG
// Show graphics profiling information while debugging.
if (IsDebuggerPresent())
{
// Display the current frame rate counters
DebugSettings->EnableFrameRateCounter = true;
}
#endif
auto rootFrame = dynamic_cast<Frame^>(Window::Current->Content);
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == nullptr)
{
// Create a Frame to act as the navigation context and associate it with
// a SuspensionManager key
rootFrame = ref new Frame();
rootFrame->NavigationFailed += ref new Windows::UI::Xaml::Navigation::NavigationFailedEventHandler(this, &App::OnNavigationFailed);
if (e->PreviousExecutionState == ApplicationExecutionState::Terminated)
{
// TODO: Restore the saved session state only when appropriate, scheduling the
// final launch steps after the restore is complete
}
if (e->PrelaunchActivated == false)
{
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
}
// Place the frame in the current Window
Window::Current->Content = rootFrame;
// Ensure the current window is active
Window::Current->Activate();
}
}
else
{
if (e->PrelaunchActivated == false)
{
if (rootFrame->Content == nullptr)
{
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
}
// Ensure the current window is active
Window::Current->Activate();
}
}
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
void App::OnSuspending(Object^ sender, SuspendingEventArgs^ e)
{
(void) sender; // Unused parameter
(void) e; // Unused parameter
//TODO: Save application state and stop any background activity
}
/// <summary>
/// Invoked when Navigation to a certain page fails
/// </summary>
/// <param name="sender">The Frame which failed navigation</param>
/// <param name="e">Details about the navigation failure</param>
void App::OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e)
{
throw ref new FailureException("Failed to load Page " + e->SourcePageType.Name);
}
\ No newline at end of file
//
// App.xaml.h
// Declaration of the App class.
//
#pragma once
#include "App.g.h"
namespace AppTestUFRlib
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
ref class App sealed
{
protected:
virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
internal:
App();
private:
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
void OnNavigationFailed(Platform::Object ^sender, Windows::UI::Xaml::Navigation::NavigationFailedEventArgs ^e);
};
}

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AppTestUFRlib", "AppTestUFRlib.vcxproj", "{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.ActiveCfg = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.Build.0 = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|ARM.Deploy.0 = Debug|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.ActiveCfg = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.Build.0 = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x64.Deploy.0 = Debug|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.ActiveCfg = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.Build.0 = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Debug|x86.Deploy.0 = Debug|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.ActiveCfg = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.Build.0 = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|ARM.Deploy.0 = Release|ARM
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.ActiveCfg = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.Build.0 = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x64.Deploy.0 = Release|x64
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.ActiveCfg = Release|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.Build.0 = Release|Win32
{FE17BC57-13E6-4DFD-A90E-B18170B7B3E3}.Release|x86.Deploy.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Assets">
<UniqueIdentifier>49b624bd-1093-43be-ae4d-0ced3e7225d5</UniqueIdentifier>
<Extensions>bmp;fbx;gif;jpg;jpeg;tga;tiff;tif;png</Extensions>
</Filter>
<Filter Include="uFR_lib">
<UniqueIdentifier>fe17bc57-13e6-4dfd-a90e-b18170b7b3e3</UniqueIdentifier>
</Filter>
<Filter Include="uFR_lib\dll">
<UniqueIdentifier>{2b6c4172-ef65-4243-b56c-1ae0c9049035}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="App.xaml.cpp" />
<ClCompile Include="MainPage.xaml.cpp" />
<ClCompile Include="pch.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
<ClInclude Include="App.xaml.h" />
<ClInclude Include="MainPage.xaml.h" />
<ClInclude Include="lib\include\uFCoder.h">
<Filter>uFR_lib</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Assets\LockScreenLogo.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\SplashScreen.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square150x150Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square44x44Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\StoreLogo.png">
<Filter>Assets</Filter>
</Image>
<Image Include="Assets\Wide310x150Logo.scale-200.png">
<Filter>Assets</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest" />
</ItemGroup>
<ItemGroup>
<None Include="AppTestUFRlib_TemporaryKey.pfx" />
<None Include="uFCoder-arm.dll">
<Filter>uFR_lib\dll</Filter>
</None>
<None Include="win_iot_serial.dll">
<Filter>uFR_lib\dll</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Page Include="MainPage.xaml" />
</ItemGroup>
<ItemGroup>
<Library Include="lib\windows\arm\uFCoder-arm.lib">
<Filter>uFR_lib</Filter>
</Library>
</ItemGroup>
</Project>
\ No newline at end of file
#pragma once
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
#include "XamlTypeInfo.g.h"
namespace AppTestUFRlib
{
partial ref class App : public ::Windows::UI::Xaml::Application,
public ::Windows::UI::Xaml::Markup::IXamlMetadataProvider
{
public:
void InitializeComponent();
[Windows::Foundation::Metadata::DefaultOverload]
virtual ::Windows::UI::Xaml::Markup::IXamlType^ GetXamlType(::Windows::UI::Xaml::Interop::TypeName type);
virtual ::Windows::UI::Xaml::Markup::IXamlType^ GetXamlType(::Platform::String^ fullName);
virtual ::Platform::Array<::Windows::UI::Xaml::Markup::XmlnsDefinition>^ GetXmlnsDefinitions();
private:
::XamlTypeInfo::InfoProvider::XamlTypeInfoProvider^ _provider;
bool _contentLoaded;
};
}
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
#include "pch.h"
#include "App.xaml.h"
#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
#endif
#if (defined(_M_IX86) || defined(_M_AMD64)) && !defined(_VSDESIGNER_DONT_LOAD_AS_DLL)
#if defined(_M_IX86)
#pragma comment(linker, "/EXPORT:DllGetActivationFactory=_DllGetActivationFactory@8,PRIVATE")
#pragma comment(linker, "/EXPORT:DllCanUnloadNow=_DllCanUnloadNow@0,PRIVATE")
#pragma comment(linker, "/EXPORT:VSDesignerDllMain=_VSDesignerDllMain@12,PRIVATE")
#pragma comment(linker, "/INCLUDE:___refMTAThread")
#elif defined(_M_AMD64)
#pragma comment(linker, "/EXPORT:DllGetActivationFactory=DllGetActivationFactory,PRIVATE")
#pragma comment(linker, "/EXPORT:DllCanUnloadNow,PRIVATE")
#pragma comment(linker, "/EXPORT:VSDesignerDllMain,PRIVATE")
#pragma comment(linker, "/INCLUDE:__refMTAThread")
#endif
extern int __abi___threading_model;
extern "C"
{
int __stdcall _DllMainCRTStartup(void* hinstDLL, unsigned long fdwReason, void** lpvReserved);
int __stdcall VSDesignerDllMain(void* hinstDLL, unsigned long fdwReason, void** lpvReserved)
{
__abi___threading_model = _VCCORLIB_THREADING_MODEL_OVERRIDE;
return _DllMainCRTStartup(hinstDLL, fdwReason, lpvReserved);
}
}
#endif // (defined(_M_IX86) || defined(_M_AMD64)) && !defined(_VSDESIGNER_DONT_LOAD_AS_DLL)
void ::AppTestUFRlib::App::InitializeComponent()
{
#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException += ref new ::Windows::UI::Xaml::UnhandledExceptionEventHandler(
[](::Platform::Object^ sender, ::Windows::UI::Xaml::UnhandledExceptionEventArgs^ e)
{
(void)sender; // Unused parameter
if (IsDebuggerPresent())
{
::Platform::String^ errorMessage = e->Message;
__debugbreak();
}
});
#endif
}
::Windows::UI::Xaml::Markup::IXamlType^ ::AppTestUFRlib::App::GetXamlType(::Windows::UI::Xaml::Interop::TypeName type)
{
if(_provider == nullptr)
{
_provider = ref new XamlTypeInfo::InfoProvider::XamlTypeInfoProvider();
}
return _provider->GetXamlTypeByType(type);
}
::Windows::UI::Xaml::Markup::IXamlType^ ::AppTestUFRlib::App::GetXamlType(::Platform::String^ fullName)
{
if(_provider == nullptr)
{
_provider = ref new XamlTypeInfo::InfoProvider::XamlTypeInfoProvider();
}
return _provider->GetXamlTypeByName(fullName);
}
::Platform::Array<::Windows::UI::Xaml::Markup::XmlnsDefinition>^ ::AppTestUFRlib::App::GetXmlnsDefinitions()
{
return ref new ::Platform::Array<::Windows::UI::Xaml::Markup::XmlnsDefinition>(0);
}
#ifndef DISABLE_XAML_GENERATED_MAIN
int __cdecl main(::Platform::Array<::Platform::String^>^ args)
{
(void)args; // Unused parameter
::Windows::UI::Xaml::Application::Start(ref new ::Windows::UI::Xaml::ApplicationInitializationCallback(
[](::Windows::UI::Xaml::ApplicationInitializationCallbackParams^ p) {
(void)p; // Unused parameter
auto app = ref new ::AppTestUFRlib::App();
}));
}
#endif
<Application
x:Class="AppTestUFRlib.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AppTestUFRlib"
RequestedTheme="Light">
</Application>
#pragma once
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
namespace Windows {
namespace UI {
namespace Xaml {
namespace Controls {
ref class TextBlock;
ref class Button;
ref class TextBox;
}
}
}
}
namespace AppTestUFRlib
{
[::Windows::Foundation::Metadata::WebHostHidden]
partial ref class MainPage : public ::Windows::UI::Xaml::Controls::Page,
public ::Windows::UI::Xaml::Markup::IComponentConnector,
public ::Windows::UI::Xaml::Markup::IComponentConnector2
{
public:
void InitializeComponent();
virtual void Connect(int connectionId, ::Platform::Object^ target);
virtual ::Windows::UI::Xaml::Markup::IComponentConnector^ GetBindingConnector(int connectionId, ::Platform::Object^ target);
private:
bool _contentLoaded;
private: ::Windows::UI::Xaml::Controls::TextBlock^ textBlock;
private: ::Windows::UI::Xaml::Controls::Button^ bRdOpen;
private: ::Windows::UI::Xaml::Controls::Button^ bRdClose;
private: ::Windows::UI::Xaml::Controls::Button^ bRdInfo;
private: ::Windows::UI::Xaml::Controls::Button^ bRdSignal;
private: ::Windows::UI::Xaml::Controls::TextBox^ txtOut;
private: ::Windows::UI::Xaml::Controls::Button^ bRdCardID;
};
}
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
#include "pch.h"
#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BINDING_DEBUG_OUTPUT
extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent();
#endif
#include "MainPage.xaml.h"
void ::AppTestUFRlib::MainPage::InitializeComponent()
{
if (_contentLoaded)
{
return;
}
_contentLoaded = true;
::Windows::Foundation::Uri^ resourceLocator = ref new ::Windows::Foundation::Uri(L"ms-appx:///MainPage.xaml");
::Windows::UI::Xaml::Application::LoadComponent(this, resourceLocator, ::Windows::UI::Xaml::Controls::Primitives::ComponentResourceLocation::Application);
}
void ::AppTestUFRlib::MainPage::Connect(int __connectionId, ::Platform::Object^ __target)
{
switch (__connectionId)
{
case 1:
{
this->textBlock = safe_cast<::Windows::UI::Xaml::Controls::TextBlock^>(__target);
}
break;
case 2:
{
this->bRdOpen = safe_cast<::Windows::UI::Xaml::Controls::Button^>(__target);
(safe_cast<::Windows::UI::Xaml::Controls::Button^>(this->bRdOpen))->Click += ref new ::Windows::UI::Xaml::RoutedEventHandler(this, (void (::AppTestUFRlib::MainPage::*)
(::Platform::Object^, ::Windows::UI::Xaml::RoutedEventArgs^))&MainPage::bRdOpen_Click);
}
break;
case 3:
{
this->bRdClose = safe_cast<::Windows::UI::Xaml::Controls::Button^>(__target);
(safe_cast<::Windows::UI::Xaml::Controls::Button^>(this->bRdClose))->Click += ref new ::Windows::UI::Xaml::RoutedEventHandler(this, (void (::AppTestUFRlib::MainPage::*)
(::Platform::Object^, ::Windows::UI::Xaml::RoutedEventArgs^))&MainPage::bRdClose_Click);
}
break;
case 4:
{
this->bRdInfo = safe_cast<::Windows::UI::Xaml::Controls::Button^>(__target);
(safe_cast<::Windows::UI::Xaml::Controls::Button^>(this->bRdInfo))->Click += ref new ::Windows::UI::Xaml::RoutedEventHandler(this, (void (::AppTestUFRlib::MainPage::*)
(::Platform::Object^, ::Windows::UI::Xaml::RoutedEventArgs^))&MainPage::bRdInfo_Click);
}
break;
case 5:
{
this->bRdSignal = safe_cast<::Windows::UI::Xaml::Controls::Button^>(__target);
(safe_cast<::Windows::UI::Xaml::Controls::Button^>(this->bRdSignal))->Click += ref new ::Windows::UI::Xaml::RoutedEventHandler(this, (void (::AppTestUFRlib::MainPage::*)
(::Platform::Object^, ::Windows::UI::Xaml::RoutedEventArgs^))&MainPage::bRdSignal_Click);
}
break;
case 6:
{
this->txtOut = safe_cast<::Windows::UI::Xaml::Controls::TextBox^>(__target);
}
break;
case 7:
{
this->bRdCardID = safe_cast<::Windows::UI::Xaml::Controls::Button^>(__target);
(safe_cast<::Windows::UI::Xaml::Controls::Button^>(this->bRdCardID))->Click += ref new ::Windows::UI::Xaml::RoutedEventHandler(this, (void (::AppTestUFRlib::MainPage::*)
(::Platform::Object^, ::Windows::UI::Xaml::RoutedEventArgs^))&MainPage::bRdCardID_Click);
}
break;
}
_contentLoaded = true;
}
::Windows::UI::Xaml::Markup::IComponentConnector^ ::AppTestUFRlib::MainPage::GetBindingConnector(int __connectionId, ::Platform::Object^ __target)
{
__connectionId; // unreferenced
__target; // unreferenced
return nullptr;
}
<Page
x:Class="AppTestUFRlib.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AppTestUFRlib"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<TextBlock x:ConnectionId='1' x:Name="textBlock" TextWrapping="Wrap" Text="D-Logic Tester for uFR library" Margin="0,0,0,605" TextAlignment="Center" HorizontalAlignment="Right" VerticalAlignment="Center" SelectionHighlightColor="#FF36434D" FontSize="24" Width="360" Height="35">
<TextBlock.Foreground>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="Red" Offset="1"/>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>
<Button x:ConnectionId='2' x:Name="bRdOpen" Content="Reader Open" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20,40,0,0" Width="140" />
<Button x:ConnectionId='3' x:Name="bRdClose" Content="Reader Close" HorizontalAlignment="Left" Margin="180,40,0,0" VerticalAlignment="Top" Width="140" />
<Button x:ConnectionId='4' x:Name="bRdInfo" Content="Reader Info" HorizontalAlignment="Left" Margin="20,120,0,0" VerticalAlignment="Top" Width="140" />
<Button x:ConnectionId='5' x:Name="bRdSignal" Content="Reader Signal" HorizontalAlignment="Left" Margin="20,160,0,0" VerticalAlignment="Top" Width="140" />
<TextBox x:ConnectionId='6' x:Name="txtOut" TextWrapping="Wrap" Text="" Margin="20,240,40,20"/>
<Button x:ConnectionId='7' x:Name="bRdCardID" Content="Get Card ID" HorizontalAlignment="Left" Margin="180,120,0,0" VerticalAlignment="Top" Width="140" />
</Grid>
</Page>
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma once
namespace XamlBindingInfo
{
ref class XamlBindings;
class IXamlBindings
{
public:
virtual ~IXamlBindings() {};
virtual bool IsInitialized() = 0;
virtual void Update() = 0;
virtual bool SetDataRoot(::Platform::Object^ data) = 0;
virtual void StopTracking() = 0;
virtual void Connect(int connectionId, ::Platform::Object^ target) = 0;
virtual void ResetTemplate() = 0;
virtual int ProcessBindings(::Windows::UI::Xaml::Controls::ContainerContentChangingEventArgs^ args) = 0;
virtual void SubscribeForDataContextChanged(::Windows::UI::Xaml::FrameworkElement^ object, ::XamlBindingInfo::XamlBindings^ handler) = 0;
};
ref class XamlBindings sealed :
::Windows::UI::Xaml::IDataTemplateExtension,
::Windows::UI::Xaml::Markup::IComponentConnector
{
internal:
XamlBindings(::XamlBindingInfo::IXamlBindings* pBindings);
void Initialize();
void Update();
void StopTracking();
void Loading(::Windows::UI::Xaml::FrameworkElement^ src, ::Platform::Object^ data);
void DataContextChanged(::Windows::UI::Xaml::FrameworkElement^ sender, ::Windows::UI::Xaml::DataContextChangedEventArgs^ args);
void SubscribeForDataContextChanged(::Windows::UI::Xaml::FrameworkElement^ object);
public:
// IComponentConnector
virtual void Connect(int connectionId, ::Platform::Object^ target);
// IDataTemplateExtension
virtual bool ProcessBinding(unsigned int);
virtual int ProcessBindings(::Windows::UI::Xaml::Controls::ContainerContentChangingEventArgs^ args);
virtual void ResetTemplate();
private:
~XamlBindings();
IXamlBindings*