Presentation is loading. Please wait.

Presentation is loading. Please wait.

Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303.

Similar presentations


Presentation on theme: "Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303."— Presentation transcript:

1 Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303

2

3 3

4 4

5 5

6 6

7 7

8

9 9

10 10

11

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">

15

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

17

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; }

20

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(); }

23

24 24

25 25

26

27 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.

28

29

30 www.microsoft.com/teched www.microsoft.com/learning http://microsoft.com/technet http://microsoft.com/msdn

31

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

33

34


Download ppt "Douglas Boling President Boling Consulting Inc. SESSION CODE: WEM303."

Similar presentations


Ads by Google