Silverlight for Windows Embedded Clock Sample

Windows Embedded Compact 7 developers can download, build, and run the Silverlight for Windows Embedded clock code sample that is based on Silverlight for Windows Embedded.By evaluating the sample code, you can learn how to write your own code for a Silverlight for Windows Embe

C++ (2.2 MB)
 
 
 
 
 
(0)
2,942 times
Add to favorites
9/15/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C++
��#pragma once



// <UserControl x:Class="SilverlightClock.MainPage">

class __declspec(uuid("{1756acb7-63be-4a4b-97cf-edc048541e75}")) MainPage

    : public XRCustomUserControlImpl<MainPage>

{

    QI_IDENTITY_MAPPING(MainPage, XRCustomUserControlImpl)



public:

    static HRESULT GetXamlSource(__in XRXamlSource* pXamlSource)

    {

        HRESULT hr = E_INVALIDARG;



        if (pXamlSource)

        {

            pXamlSource->SetResource (App::GetHInstance(), IDR_SILVERLIGHTCLOCK_MAINPAGE);

            hr = S_OK;

        }

        

        return hr;

    }



    static HRESULT Register()

    {

        return XRCustomUserControlImpl<MainPage>::Register (__uuidof(MainPage), L"MainPage", L"clr-namespace:SilverlightClock");

    }



    HRESULT Canvas_Loaded (IXRDependencyObject* pSender, XRRoutedEventArgs* pArgs);



#pragma region GeneratedCode

    // ============================================================================

    //  WARNING: DO NOT EDIT THIS ALWAYS-GENERATED CODE

    // ============================================================================

    HRESULT OnLoaded(__in IXRDependencyObject* pRoot);

    HRESULT InitializeComponent();



    IXRCanvasPtr               m_pLayoutRoot;                 // <Canvas x:Name="LayoutRoot">

    IXREllipsePtr              m_pouterCircle;                // <Ellipse x:Name="outerCircle">

    IXRRectanglePtr            m_pMinutedHand;                // <Rectangle x:Name="MinutedHand">

    IXRRectanglePtr            m_pHourHand;                   // <Rectangle x:Name="HourHand">

    IXRRectanglePtr            m_pSecondHand;                 // <Rectangle x:Name="SecondHand">

    // ============================================================================

    //  WARNING: DO NOT EDIT THIS ALWAYS-GENERATED CODE

    // ============================================================================

#pragma endregion GeneratedCode

};