Download presentation
Presentation is loading. Please wait.
Published byAdam Anderson Modified over 8 years ago
1
Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303
3
3
4
4
5
5
6
6
7
7
9
9
10
10
12
12
13
13
14
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">
16
#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
18
19
… <Button x:Name="MyButton" Content="Click Me!" Margin="250 200" 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
21
22
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="btnLeft" Storyboard.TargetProperty="(UIElement.Opacity)"> <SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/> // // Play a storyboard // IXRStoryboard *pSB; FindName (TEXT("Storyboard1"), (IXRDependencyObject**)&pSB); if (pSB != NULL) { pSB->Stop(); pSB->Begin(); }
24
24
25
25
27
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.
30
www.microsoft.com/teched www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn
32
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31 st http://northamerica.msteched.com/registration You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.