SlideShare ist ein Scribd-Unternehmen logo
1 von 13
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
using Windows.Media.Capture;

var         new CameraCaptureUI
                                         new Size

var           await                     CameraCaptureUIMode

if

      var             new BitmapImage
                          await              FileAccessMode
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer
Windows 8 for the .NET developer

Weitere ähnliche Inhalte

Andere mochten auch

Raids d'aventura
Raids d'aventuraRaids d'aventura
Raids d'aventura
tonimuni
 
Espm respostas
Espm respostasEspm respostas
Espm respostas
Pedroguma
 
Coleção Cris Barros para Riachuelo
Coleção Cris Barros para RiachueloColeção Cris Barros para Riachuelo
Coleção Cris Barros para Riachuelo
rmdonno
 
Presentación propuestas final
Presentación propuestas finalPresentación propuestas final
Presentación propuestas final
gcaro_rvan
 
Períodos e campos de investigação da filosofia grega
Períodos e campos de investigação da filosofia gregaPeríodos e campos de investigação da filosofia grega
Períodos e campos de investigação da filosofia grega
Reginaldo Pereira do Carmo
 
Angel O Amigo
Angel O AmigoAngel O Amigo
Angel O Amigo
Helena35
 
O sistema solar grupo 2
O sistema solar grupo 2O sistema solar grupo 2
O sistema solar grupo 2
Paula Branco
 

Andere mochten auch (18)

Raids d'aventura
Raids d'aventuraRaids d'aventura
Raids d'aventura
 
Guia do web marketing
Guia do web marketingGuia do web marketing
Guia do web marketing
 
Espm respostas
Espm respostasEspm respostas
Espm respostas
 
Mulher presbiteriana
Mulher presbiterianaMulher presbiteriana
Mulher presbiteriana
 
Coleção Cris Barros para Riachuelo
Coleção Cris Barros para RiachueloColeção Cris Barros para Riachuelo
Coleção Cris Barros para Riachuelo
 
Cão guia
Cão guiaCão guia
Cão guia
 
Caso 6
Caso 6Caso 6
Caso 6
 
Com 310 cp 3
Com 310 cp 3Com 310 cp 3
Com 310 cp 3
 
Evaluando GNOME
Evaluando GNOMEEvaluando GNOME
Evaluando GNOME
 
Quase
QuaseQuase
Quase
 
Presentación propuestas final
Presentación propuestas finalPresentación propuestas final
Presentación propuestas final
 
Internet Archive Url Mp3
Internet Archive Url Mp3Internet Archive Url Mp3
Internet Archive Url Mp3
 
Ensaio
EnsaioEnsaio
Ensaio
 
Períodos e campos de investigação da filosofia grega
Períodos e campos de investigação da filosofia gregaPeríodos e campos de investigação da filosofia grega
Períodos e campos de investigação da filosofia grega
 
Aquecimwnto globalt1
Aquecimwnto globalt1Aquecimwnto globalt1
Aquecimwnto globalt1
 
As crises da economia capitalista em portugal
As crises da economia capitalista em portugalAs crises da economia capitalista em portugal
As crises da economia capitalista em portugal
 
Angel O Amigo
Angel O AmigoAngel O Amigo
Angel O Amigo
 
O sistema solar grupo 2
O sistema solar grupo 2O sistema solar grupo 2
O sistema solar grupo 2
 

Mehr von Robert MacLean

Mehr von Robert MacLean (20)

14 things you need to be a successful software developer (v3)
14 things you need to be a successful software developer (v3)14 things you need to be a successful software developer (v3)
14 things you need to be a successful software developer (v3)
 
Git
GitGit
Git
 
OWASP TOP 10
OWASP TOP 10OWASP TOP 10
OWASP TOP 10
 
Building a µservice with Kotlin, Micronaut & GCP
Building a µservice with Kotlin, Micronaut & GCPBuilding a µservice with Kotlin, Micronaut & GCP
Building a µservice with Kotlin, Micronaut & GCP
 
Looking at the Vue
Looking at the VueLooking at the Vue
Looking at the Vue
 
Kotlin 101
Kotlin 101Kotlin 101
Kotlin 101
 
Features of Kotlin I find exciting
Features of Kotlin I find excitingFeatures of Kotlin I find exciting
Features of Kotlin I find exciting
 
JavaScript Gotchas
JavaScript GotchasJavaScript Gotchas
JavaScript Gotchas
 
DevConf Survival Guide
DevConf Survival GuideDevConf Survival Guide
DevConf Survival Guide
 
Visual Studio ❤ JavaScript
Visual Studio ❤ JavaScriptVisual Studio ❤ JavaScript
Visual Studio ❤ JavaScript
 
What is new in C# 6?
What is new in C# 6?What is new in C# 6?
What is new in C# 6?
 
Putting the DOT in .NET - Dev/Ops/Test
Putting the DOT in .NET - Dev/Ops/TestPutting the DOT in .NET - Dev/Ops/Test
Putting the DOT in .NET - Dev/Ops/Test
 
A Developer Day 2014 - Durban
A Developer Day 2014 - Durban A Developer Day 2014 - Durban
A Developer Day 2014 - Durban
 
Agile lessons learned in the Microsoft ALM Rangers
Agile lessons learned in the Microsoft ALM RangersAgile lessons learned in the Microsoft ALM Rangers
Agile lessons learned in the Microsoft ALM Rangers
 
Hour of code - Train the trainer
Hour of code - Train the trainerHour of code - Train the trainer
Hour of code - Train the trainer
 
Building services for apps on a shoestring budget
Building services for apps on a shoestring budgetBuilding services for apps on a shoestring budget
Building services for apps on a shoestring budget
 
3 things your app API is doing WRONG
3 things your app API is doing WRONG3 things your app API is doing WRONG
3 things your app API is doing WRONG
 
LightSwitch
LightSwitchLightSwitch
LightSwitch
 
How to build a Mobile API or HTML 5 app in 5 minutes
How to build a Mobile API or HTML 5 app in 5 minutesHow to build a Mobile API or HTML 5 app in 5 minutes
How to build a Mobile API or HTML 5 app in 5 minutes
 
Protection of Personal Information Bill (POPI)
Protection of Personal Information Bill (POPI)Protection of Personal Information Bill (POPI)
Protection of Personal Information Bill (POPI)
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 

Windows 8 for the .NET developer

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8. 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
  • 9. using Windows.Media.Capture; var new CameraCaptureUI new Size var await CameraCaptureUIMode if var new BitmapImage await FileAccessMode

Hinweis der Redaktion

  1. 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