Your SlideShare is downloading. ×
0
DllImport "avicap32.dll"            "capCreateCaptureWindow"static extern int  string                  int  int    int    ...
using Windows.Media.Capture;var         new CameraCaptureUI                                         new Sizevar           ...
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Upcoming SlideShare
Loading in...5
×

Windows 8 for the .NET developer

2,585

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,585
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • PrepVisual Studio 11 loadedDemoNew Metro project. Discuss templates.Add some content. Talk about design & C shape. Do some in XAML. Set style in property drag on button. <Grid Background="{StaticResourceApplicationPageBackgroundBrush}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="120"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="120"/> <RowDefinition /> <RowDefinition Height="120"/> </Grid.RowDefinitions> <TextBlockGrid.Column="1" Grid.Row="0" Text="Community Night" Style="{StaticResourcePageHeaderTextStyle}" /> <Button Content="Demo 1" Grid.Column="1" HorizontalAlignment="Left" Margin="189,132,0,0" Grid.Row="1" VerticalAlignment="Top" Width="115" Style="{StaticResourceTextButtonStyle}"/> </Grid>Code behind for buttonnew MessageDialog("Welcome to Windows 8!", "Community Night").ShowAsync(); Run, then run in emulatorLook at the code and talk async for a bit.Demo 2Add another buttonCode behind – talk async. Talk pickers. Show picking from photosprivate async void Button_Click_2(object sender, RoutedEventArgs e) {var picker = new Windows.Storage.Pickers.FileOpenPicker();picker.FileTypeFilter.Add(".jpg");picker.FileTypeFilter.Add(".png");picker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary;picker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail;var result = await picker.PickSingleFileAsync(); await new MessageDialog(string.Format("You picked {0}", result.DisplayName)).ShowAsync(); }Demo 3 – new button again. Add following, break, show manifest talk about settings and permissions. Fix run show settings. private async void Button_Click_3(object sender, RoutedEventArgs e) {vargps = new Windows.Devices.Geolocation.Geolocator();var location = await gps.GetGeopositionAsync(); await new MessageDialog(string.Format("You picked at {0}-{1}", location.Coordinate.Latitude, location.Coordinate.Longitude)).ShowAsync(); }Demo 4 needs a textbox and a buttonprivate void Button_Click_4(object sender, RoutedEventArgs e) {var text = blah.Text;var manager = DataTransferManager.GetForCurrentView();manager.DataRequested += (s, args) => {args.Request.Data.Properties.Title = "From Community Night";args.Request.Data.SetText(text); };DataTransferManager.ShowShareUI(); }Demo 5 – Add search contract demo page and show the tie in
  • Transcript of "Windows 8 for the .NET developer"

    1. 1. DllImport "avicap32.dll" "capCreateCaptureWindow"static extern int string int int int int int int int DllImport "avicap32.dll"static extern bool int MarshalAs UnmanagedType ref string int MarshalAs UnmanagedType ref string int// more and more of the same
    2. 2. using Windows.Media.Capture;var new CameraCaptureUI new Sizevar await CameraCaptureUIModeif var new BitmapImage await FileAccessMode
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×