Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303
3
4
5
6
7
9
10
12
13
xmlns=" xmlns:x=" 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 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
… <Button x:Name="MyButton" Content="Click Me!" Margin=" " Click="MyButton_Click"/> // ============================================================================ // 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
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnLeft" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00: " Value="0"/> // // Play a storyboard // IXRStoryboard *pSB; FindName (TEXT("Storyboard1"), (IXRDependencyObject**)&pSB); if (pSB != NULL) { pSB->Stop(); pSB->Begin(); }
24
25
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31 st You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year