Launch application and debug… xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WindowsEmbeddedSilverlightApplication1.MainPage" Width="640" Height="480"> #include "stdafx.h" #include "TechEd1Generated.h" #include "MainPage.h" #include "App.h" #include "resource.h" // ============================================================================ // OnLoaded // // Description: Calls InitializeComponent to bind member.

Download Report

Transcript Launch application and debug… xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="WindowsEmbeddedSilverlightApplication1.MainPage" Width="640" Height="480"> #include "stdafx.h" #include "TechEd1Generated.h" #include "MainPage.h" #include "App.h" #include "resource.h" // ============================================================================ // OnLoaded // // Description: Calls InitializeComponent to bind member.

3
4
5
6
7
9
10
12
Launch application and debug…
13
<UserControl>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WindowsEmbeddedSilverlightApplication1.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="White"/>
</UserControl>
#include "stdafx.h"
#include "TechEd1Generated.h"
#include "MainPage.h"
#include "App.h"
#include "resource.h"
// ============================================================================
// OnLoaded
//
// Description: Calls InitializeComponent to bind member variables to named
//
elements, and attach event handlers specified in XAML
//
// Parameters: pRoot - The root dependency object.
// ============================================================================
HRESULT MainPage::OnLoaded(__in IXRDependencyObject* pRoot)
{
UNREFERENCED_PARAMETER(pRoot);
HRESULT hr = InitializeComponent();
// Add calls to FindName or Add___EventHandler() methods after this comment.
return hr;
} // OnLoaded
18
<UserControl>
…
<Grid x:Name="LayoutRoot" Background="White">
<Button x:Name="MyButton" Content="Click Me!"
Click="MyButton_Click"/>
</Grid>
</UserControl>
Margin="250 200"
// ============================================================================
// MyButton_Click
// ============================================================================
HRESULT MainPage::MyButton_Click (IXRDependencyObject* pSender, XRMouseButtonEventArgs* pArgs)
{
HRESULT hr = E_NOTIMPL;
if ((NULL == pSender) || (NULL == pArgs))
{
hr = E_INVALIDARG;
}
return hr;
}
21
<Storyboard x:Name="Storyboard1">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="btnLeft"
Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
//
//
//
Play a storyboard
IXRStoryboard *pSB;
FindName (TEXT("Storyboard1"), (IXRDependencyObject**)&pSB);
if (pSB != NULL)
{
pSB->Stop();
pSB->Begin();
}
24
25
http://www.WindowsEmbedded.com
http://msdn.microsoft.com/en-us/windowsembedded
http://social.msdn.microsoft.com/Forums/enUS/category/embeddedwindows/
http://social.msdn.microsoft.com/Forums/enUS/category/windowsembeddedcompact
https://connect.microsoft.com/windowsembeddedce
WEM201 | Discover Windows Embedded Standard 7 as Your Next Application Platform
WEM301 | Deploying Windows Embedded Standard 7 with Style
WEM302 | Explore the Multimedia Potential of Windows Embedded Standard 7
WEM303 | Gamechanger: Using Microsoft Silverlight for Windows Embedded to Create an Amazing Embedded UI
WEM305 | How to Choose a Windows Embedded Operating System
WEM306 | Using the Sensor & Location API on Windows Embedded Standard 7 to Create Exciting Connected Applications
WEM307 | Windows Embedded Compact: New Tools and Developer Story
WEM308 | Windows Embedded Overview: Demos of the Latest and Upcoming Releases
WEM309 | Programming Microsoft Silverlight for Windows Embedded Using Microsoft .NET
WEM01-INT | Build a Secure Device with Windows Embedded Standard 7
WEM02-INT | Delivering Flexible Peripheral Support for Point of Sale
WEM03-INT | How Windows Embedded Solutions Help to Protect the Environment
WEM05-INT | What a Desktop Developer Needs to Know to Develop for Windows Embedded
WEM06-INT | Windows Embedded Compact Compete
WEM07-INT | Server Appliances with Windows Embedded Servers
WEM08-INT | Roundtable: Windows Embedded @ Tech·Ed 2011 - Tell Us What You Want to Learn
WEM01-HOL | Build Your Own Embedded System
WEM04-HOL | Porting Third-Party Drivers into Image Configuration Editor
TLC-46 | Get Your Hands on Windows Embedded
TLC-47 | Powered by Windows Embedded POSReady – Touch Screen
TLC-48 | The Intel® Intelligent Digital Signage Proof of Concept
TLC-49 | Windows Embedded Automotive
TLC-50 | Windows Embedded Device Showcase
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
Sign up for Tech·Ed 2011 and save $500
starting June 8 – June 31st
http://northamerica.msteched.com/registration
You can also register at the
North America 2011 kiosk located at registration
Join us in Atlanta next year