SlideShare una empresa de Scribd logo
1 de 56
Descargar para leer sin conexión
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
demo
demo
var         new CameraCaptureUI
                                       new Size

var          await                     CameraCaptureUIMode

if

      var            new BitmapImage
                         await              FileAccessMode
var             DataTransferManager.GetForCurrentView

                           new TypedEventHandler<DataTransferManager
              DataRequestedEventArgs


void


       if                null
                                               "No Image Taken"
       else
try
{
   var     new CameraCaptureUI
                                 new Size

catch (Exception e)
{
   //Exception handling code
}
                                            ComException
var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (var file in files)
{
    lbFiles.Items.Add(file.FileName);
}
         PickMultipleFilesOperation PickMultipleFilesAsync();


    public sealed class PickMultipleFilesOperation :
      IAsyncOperation<IReadOnlyList<StorageFile>>, IAsyncInfo
var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (StorageFile file in files)
{
    lbFiles.Items.Add(file.FileName);
}
                 System.Collections.Generic.IReadOnlyList
                     <Windows.Storage.StorageFile>
var picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");
var files = await picker.PickMultipleFilesAsync();
foreach (StorageFile file in files)
{
    lbFiles.Items.Add(file.FileName);
}
                 System.Collections.Generic.IReadOnlyList
                 Windows.Foundation.Collections.IVectorView
                     <Windows.Storage.StorageFile>
                     <Windows.Storage.StorageFile>
FileOpenPicker picker = new FileOpenPicker();
picker.FileTypeFilter.Add("*");

StorageFile file = await picker.PickSingleFileAsync();


Windows.Storage.Streams.IInputStream inputStream =
    await file.OpenForReadAsync();


System.IO.Stream stream = inputStream.AsStream();
System.IO.StreamReader reader = new StreamReader(stream);

string contents = reader.ReadToEnd();
internal async void ProtectBytes(byte[] data, BinaryWriter output)
{
   DataProtectionProvider dpp = new DataProtectionProvider();

    IBuffer result = await dpp.ProtectAsync(data.AsBuffer());
    byte[] protectedData;
    int start = 0;
    if (result.TryGetUnderlyingData(out protectedData, out start))
       output.Write(protectedData);
    else
       throw new InvalidOperationException();
}
ComVisible(true), Guid("06D7901C-9045-4241-B8A0-39A1AC0F8618")]
public interface IWindowsApiSample
{
    string HelloWorld();
}

[ComVisible(true), [ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(IWindowsApiSample))]
public class WindowsApiSample : IWindowsApiSample
{
    public string HelloWorld() {
         return "Hello, World!";
    }
}
public sealed class MyClassLibrary
{
    public string HelloWorld()
    {
         return "Hello, World!";
    }
}
demo
var




 var
demo
demo
#win8acad : Building Metro Style Apps with XAML for .NET Developers
#win8acad : Building Metro Style Apps with XAML for .NET Developers
#win8acad : Building Metro Style Apps with XAML for .NET Developers
#win8acad : Building Metro Style Apps with XAML for .NET Developers
#win8acad : Building Metro Style Apps with XAML for .NET Developers
#win8acad : Building Metro Style Apps with XAML for .NET Developers

Más contenido relacionado

La actualidad más candente

Amazon Cognito使って認証したい?それならSpring Security使いましょう!
Amazon Cognito使って認証したい?それならSpring Security使いましょう!Amazon Cognito使って認証したい?それならSpring Security使いましょう!
Amazon Cognito使って認証したい?それならSpring Security使いましょう!
Ryosuke Uchitate
 

La actualidad más candente (20)

#3 (Multi Threads With TCP)
#3 (Multi Threads With TCP)#3 (Multi Threads With TCP)
#3 (Multi Threads With TCP)
 
Amazon Cognito使って認証したい?それならSpring Security使いましょう!
Amazon Cognito使って認証したい?それならSpring Security使いましょう!Amazon Cognito使って認証したい?それならSpring Security使いましょう!
Amazon Cognito使って認証したい?それならSpring Security使いましょう!
 
Wicket Security Presentation
Wicket Security PresentationWicket Security Presentation
Wicket Security Presentation
 
Nestjs MasterClass Slides
Nestjs MasterClass SlidesNestjs MasterClass Slides
Nestjs MasterClass Slides
 
[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté
[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté
[AzureCamp 24 Juin 2014] Cache Distribué par Thomas Conté
 
Forgive me for i have allocated
Forgive me for i have allocatedForgive me for i have allocated
Forgive me for i have allocated
 
20131004 - Sq lite sample by Jax
20131004 - Sq lite sample by Jax20131004 - Sq lite sample by Jax
20131004 - Sq lite sample by Jax
 
End to end todo list app with NestJs - Angular - Redux & Redux Saga
End to end todo list app with NestJs - Angular - Redux & Redux SagaEnd to end todo list app with NestJs - Angular - Redux & Redux Saga
End to end todo list app with NestJs - Angular - Redux & Redux Saga
 
BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...
BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...
BizSpark SF Lightning Talk: "Automated Testing (Unit, Integration and Systems...
 
Data Loading Made Easy with Mike Nakhimovich DroidCon Italy 2017
Data Loading Made Easy with Mike Nakhimovich DroidCon Italy 2017Data Loading Made Easy with Mike Nakhimovich DroidCon Italy 2017
Data Loading Made Easy with Mike Nakhimovich DroidCon Italy 2017
 
Talk about Testing at vienna.rb meetup #2 on Apr 12th, 2013
Talk about Testing at vienna.rb meetup #2 on Apr 12th, 2013Talk about Testing at vienna.rb meetup #2 on Apr 12th, 2013
Talk about Testing at vienna.rb meetup #2 on Apr 12th, 2013
 
ATG Advanced RQL
ATG Advanced RQLATG Advanced RQL
ATG Advanced RQL
 
Infinum Android Talks #16 - Retrofit 2 by Kristijan Jurkovic
Infinum Android Talks #16 - Retrofit 2 by Kristijan JurkovicInfinum Android Talks #16 - Retrofit 2 by Kristijan Jurkovic
Infinum Android Talks #16 - Retrofit 2 by Kristijan Jurkovic
 
Streaming using Kafka Flink & Elasticsearch
Streaming using Kafka Flink & ElasticsearchStreaming using Kafka Flink & Elasticsearch
Streaming using Kafka Flink & Elasticsearch
 
Azure Web Camp : Cache Distribué
Azure Web Camp : Cache DistribuéAzure Web Camp : Cache Distribué
Azure Web Camp : Cache Distribué
 
NestJS
NestJSNestJS
NestJS
 
Tomcat连接池配置方法V2.1
Tomcat连接池配置方法V2.1Tomcat连接池配置方法V2.1
Tomcat连接池配置方法V2.1
 
Unit testing CourseSites Apache Filter
Unit testing CourseSites Apache FilterUnit testing CourseSites Apache Filter
Unit testing CourseSites Apache Filter
 
Servlet Filter
Servlet FilterServlet Filter
Servlet Filter
 
Metaprogramming in .NET
Metaprogramming in .NETMetaprogramming in .NET
Metaprogramming in .NET
 

Destacado

#win8acad : Building a Windows 8 Metro Style UI
#win8acad : Building a Windows 8 Metro Style UI#win8acad : Building a Windows 8 Metro Style UI
#win8acad : Building a Windows 8 Metro Style UI
Frederik De Bruyne
 
Introducing Apple Watch
Introducing Apple WatchIntroducing Apple Watch
Introducing Apple Watch
JJ Wu
 

Destacado (15)

Yu-Hsiu Li Design as one UXMY
Yu-Hsiu Li Design as one UXMYYu-Hsiu Li Design as one UXMY
Yu-Hsiu Li Design as one UXMY
 
#win8acad : Building a Windows 8 Metro Style UI
#win8acad : Building a Windows 8 Metro Style UI#win8acad : Building a Windows 8 Metro Style UI
#win8acad : Building a Windows 8 Metro Style UI
 
Automating Your Microsoft Azure Environment (DevLink 2014)
Automating Your Microsoft Azure Environment (DevLink 2014)Automating Your Microsoft Azure Environment (DevLink 2014)
Automating Your Microsoft Azure Environment (DevLink 2014)
 
Metro UI interaction design guidelines @Microsoft Tech.Days 2011
Metro UI interaction design guidelines @Microsoft Tech.Days 2011Metro UI interaction design guidelines @Microsoft Tech.Days 2011
Metro UI interaction design guidelines @Microsoft Tech.Days 2011
 
[Azure Council Experts (ACE) 第5回定例会] Microsoft Azureアップデート情報 (2014/04/16-2014...
[Azure Council Experts (ACE) 第5回定例会] Microsoft Azureアップデート情報 (2014/04/16-2014...[Azure Council Experts (ACE) 第5回定例会] Microsoft Azureアップデート情報 (2014/04/16-2014...
[Azure Council Experts (ACE) 第5回定例会] Microsoft Azureアップデート情報 (2014/04/16-2014...
 
BIH - Human Centered Design
BIH - Human Centered Design BIH - Human Centered Design
BIH - Human Centered Design
 
Microsoft Design principles and UI
Microsoft Design principles and UIMicrosoft Design principles and UI
Microsoft Design principles and UI
 
Flat Design. Microsoft Story
Flat Design. Microsoft StoryFlat Design. Microsoft Story
Flat Design. Microsoft Story
 
Getting started with microsoft azure in 30 mins
Getting started with microsoft azure in 30 minsGetting started with microsoft azure in 30 mins
Getting started with microsoft azure in 30 mins
 
Azure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep DiveAzure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep Dive
 
LinkedIn Data Infrastructure (QCon London 2012)
LinkedIn Data Infrastructure (QCon London 2012)LinkedIn Data Infrastructure (QCon London 2012)
LinkedIn Data Infrastructure (QCon London 2012)
 
Azure Cloud PPT
Azure Cloud PPTAzure Cloud PPT
Azure Cloud PPT
 
ZeroMQ with NodeJS
ZeroMQ with NodeJSZeroMQ with NodeJS
ZeroMQ with NodeJS
 
Microsoft to Acquire LinkedIn: Overview for Investors
Microsoft to Acquire LinkedIn: Overview for InvestorsMicrosoft to Acquire LinkedIn: Overview for Investors
Microsoft to Acquire LinkedIn: Overview for Investors
 
Introducing Apple Watch
Introducing Apple WatchIntroducing Apple Watch
Introducing Apple Watch
 

Similar a #win8acad : Building Metro Style Apps with XAML for .NET Developers

Change the code in Writer.java only to get it working. Must contain .pdf
Change the code in Writer.java only to get it working. Must contain .pdfChange the code in Writer.java only to get it working. Must contain .pdf
Change the code in Writer.java only to get it working. Must contain .pdf
secunderbadtirumalgi
 
Android Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdfAndroid Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdf
feelinggift
 
Java căn bản - Chapter12
Java căn bản - Chapter12Java căn bản - Chapter12
Java căn bản - Chapter12
Vince Vo
 
The java program that reads an input file input.txt an.pdf
   The java program that reads an input file input.txt  an.pdf   The java program that reads an input file input.txt  an.pdf
The java program that reads an input file input.txt an.pdf
vichu19891
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
Robert Nyman
 

Similar a #win8acad : Building Metro Style Apps with XAML for .NET Developers (20)

WinRT Holy COw
WinRT Holy COwWinRT Holy COw
WinRT Holy COw
 
10 sharing files and data in windows phone 8
10   sharing files and data in windows phone 810   sharing files and data in windows phone 8
10 sharing files and data in windows phone 8
 
OpenCMIS Part 1
OpenCMIS Part 1OpenCMIS Part 1
OpenCMIS Part 1
 
Change the code in Writer.java only to get it working. Must contain .pdf
Change the code in Writer.java only to get it working. Must contain .pdfChange the code in Writer.java only to get it working. Must contain .pdf
Change the code in Writer.java only to get it working. Must contain .pdf
 
Writing Swift code with great testability
Writing Swift code with great testabilityWriting Swift code with great testability
Writing Swift code with great testability
 
Java Input Output and File Handling
Java Input Output and File HandlingJava Input Output and File Handling
Java Input Output and File Handling
 
Android Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdfAndroid Studio Assignment HelpCan someone who is familiar with And.pdf
Android Studio Assignment HelpCan someone who is familiar with And.pdf
 
Code red SUM
Code red SUMCode red SUM
Code red SUM
 
Bhaloo
BhalooBhaloo
Bhaloo
 
Android workshop
Android workshopAndroid workshop
Android workshop
 
Taming Core Data by Arek Holko, Macoscope
Taming Core Data by Arek Holko, MacoscopeTaming Core Data by Arek Holko, Macoscope
Taming Core Data by Arek Holko, Macoscope
 
Chapter 12 - File Input and Output
Chapter 12 - File Input and OutputChapter 12 - File Input and Output
Chapter 12 - File Input and Output
 
Java căn bản - Chapter12
Java căn bản - Chapter12Java căn bản - Chapter12
Java căn bản - Chapter12
 
Application-Specific Models and Pointcuts using a Logic Meta Language
Application-Specific Models and Pointcuts using a Logic Meta LanguageApplication-Specific Models and Pointcuts using a Logic Meta Language
Application-Specific Models and Pointcuts using a Logic Meta Language
 
17 camera, media, and audio in windows phone 8.1
17   camera, media, and audio in windows phone 8.117   camera, media, and audio in windows phone 8.1
17 camera, media, and audio in windows phone 8.1
 
09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP
 
The java program that reads an input file input.txt an.pdf
   The java program that reads an input file input.txt  an.pdf   The java program that reads an input file input.txt  an.pdf
The java program that reads an input file input.txt an.pdf
 
Selenium Webdriver with data driven framework
Selenium Webdriver with data driven frameworkSelenium Webdriver with data driven framework
Selenium Webdriver with data driven framework
 
Windows 8 JavaScript (Wonderland)
Windows 8 JavaScript (Wonderland)Windows 8 JavaScript (Wonderland)
Windows 8 JavaScript (Wonderland)
 
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, MoscowJavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
 

Más de Frederik De Bruyne

#win8acad : Tiles and notifications
#win8acad : Tiles and notifications#win8acad : Tiles and notifications
#win8acad : Tiles and notifications
Frederik De Bruyne
 
#win8aca : How and when metro style apps run
#win8aca : How and when metro style apps run#win8aca : How and when metro style apps run
#win8aca : How and when metro style apps run
Frederik De Bruyne
 
#win8acad : Integrating the Windows 8 Experience with Contracts
#win8acad : Integrating the Windows 8 Experience with Contracts#win8acad : Integrating the Windows 8 Experience with Contracts
#win8acad : Integrating the Windows 8 Experience with Contracts
Frederik De Bruyne
 
#win8acad : Platform for Metro Style Apps
#win8acad : Platform for Metro Style Apps#win8acad : Platform for Metro Style Apps
#win8acad : Platform for Metro Style Apps
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: How to win future of business
Microsoft Dynamics Academic Alliance: How to win future of businessMicrosoft Dynamics Academic Alliance: How to win future of business
Microsoft Dynamics Academic Alliance: How to win future of business
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: ERP in Training VDAB
Microsoft Dynamics Academic Alliance: ERP in Training VDABMicrosoft Dynamics Academic Alliance: ERP in Training VDAB
Microsoft Dynamics Academic Alliance: ERP in Training VDAB
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: Partnership Next Steps
Microsoft Dynamics Academic Alliance: Partnership Next StepsMicrosoft Dynamics Academic Alliance: Partnership Next Steps
Microsoft Dynamics Academic Alliance: Partnership Next Steps
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: Job Roles
Microsoft Dynamics Academic Alliance: Job RolesMicrosoft Dynamics Academic Alliance: Job Roles
Microsoft Dynamics Academic Alliance: Job Roles
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: Academic Landscape
Microsoft Dynamics Academic Alliance: Academic LandscapeMicrosoft Dynamics Academic Alliance: Academic Landscape
Microsoft Dynamics Academic Alliance: Academic Landscape
Frederik De Bruyne
 
Microsoft Dynamics Academic Alliance: Introduction
Microsoft Dynamics Academic Alliance: IntroductionMicrosoft Dynamics Academic Alliance: Introduction
Microsoft Dynamics Academic Alliance: Introduction
Frederik De Bruyne
 
Students to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex TurnerStudents to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex Turner
Frederik De Bruyne
 
Students to Business Day 2012: Maarten Balliauw
Students to Business Day 2012: Maarten BalliauwStudents to Business Day 2012: Maarten Balliauw
Students to Business Day 2012: Maarten Balliauw
Frederik De Bruyne
 
Students to Business Day 2012: Sas
Students to Business Day 2012: SasStudents to Business Day 2012: Sas
Students to Business Day 2012: Sas
Frederik De Bruyne
 
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob MilesStudents to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
Frederik De Bruyne
 
Students to Business Day 2012: Giuliano Dore
Students to Business Day 2012: Giuliano DoreStudents to Business Day 2012: Giuliano Dore
Students to Business Day 2012: Giuliano Dore
Frederik De Bruyne
 
Students to Business Day 2012: Pieter Vanhees
Students to Business Day 2012: Pieter VanheesStudents to Business Day 2012: Pieter Vanhees
Students to Business Day 2012: Pieter Vanhees
Frederik De Bruyne
 
Students to Business Day 2012: Joe Wilson
Students to Business Day 2012: Joe WilsonStudents to Business Day 2012: Joe Wilson
Students to Business Day 2012: Joe Wilson
Frederik De Bruyne
 
Students to Business Day 2012: Wouter Devinck
Students to Business Day 2012: Wouter DevinckStudents to Business Day 2012: Wouter Devinck
Students to Business Day 2012: Wouter Devinck
Frederik De Bruyne
 

Más de Frederik De Bruyne (18)

#win8acad : Tiles and notifications
#win8acad : Tiles and notifications#win8acad : Tiles and notifications
#win8acad : Tiles and notifications
 
#win8aca : How and when metro style apps run
#win8aca : How and when metro style apps run#win8aca : How and when metro style apps run
#win8aca : How and when metro style apps run
 
#win8acad : Integrating the Windows 8 Experience with Contracts
#win8acad : Integrating the Windows 8 Experience with Contracts#win8acad : Integrating the Windows 8 Experience with Contracts
#win8acad : Integrating the Windows 8 Experience with Contracts
 
#win8acad : Platform for Metro Style Apps
#win8acad : Platform for Metro Style Apps#win8acad : Platform for Metro Style Apps
#win8acad : Platform for Metro Style Apps
 
Microsoft Dynamics Academic Alliance: How to win future of business
Microsoft Dynamics Academic Alliance: How to win future of businessMicrosoft Dynamics Academic Alliance: How to win future of business
Microsoft Dynamics Academic Alliance: How to win future of business
 
Microsoft Dynamics Academic Alliance: ERP in Training VDAB
Microsoft Dynamics Academic Alliance: ERP in Training VDABMicrosoft Dynamics Academic Alliance: ERP in Training VDAB
Microsoft Dynamics Academic Alliance: ERP in Training VDAB
 
Microsoft Dynamics Academic Alliance: Partnership Next Steps
Microsoft Dynamics Academic Alliance: Partnership Next StepsMicrosoft Dynamics Academic Alliance: Partnership Next Steps
Microsoft Dynamics Academic Alliance: Partnership Next Steps
 
Microsoft Dynamics Academic Alliance: Job Roles
Microsoft Dynamics Academic Alliance: Job RolesMicrosoft Dynamics Academic Alliance: Job Roles
Microsoft Dynamics Academic Alliance: Job Roles
 
Microsoft Dynamics Academic Alliance: Academic Landscape
Microsoft Dynamics Academic Alliance: Academic LandscapeMicrosoft Dynamics Academic Alliance: Academic Landscape
Microsoft Dynamics Academic Alliance: Academic Landscape
 
Microsoft Dynamics Academic Alliance: Introduction
Microsoft Dynamics Academic Alliance: IntroductionMicrosoft Dynamics Academic Alliance: Introduction
Microsoft Dynamics Academic Alliance: Introduction
 
Students to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex TurnerStudents to Business Day 2012: Alex Turner
Students to Business Day 2012: Alex Turner
 
Students to Business Day 2012: Maarten Balliauw
Students to Business Day 2012: Maarten BalliauwStudents to Business Day 2012: Maarten Balliauw
Students to Business Day 2012: Maarten Balliauw
 
Students to Business Day 2012: Sas
Students to Business Day 2012: SasStudents to Business Day 2012: Sas
Students to Business Day 2012: Sas
 
Students to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob MilesStudents to Business Day 2012: Rob Miles
Students to Business Day 2012: Rob Miles
 
Students to Business Day 2012: Giuliano Dore
Students to Business Day 2012: Giuliano DoreStudents to Business Day 2012: Giuliano Dore
Students to Business Day 2012: Giuliano Dore
 
Students to Business Day 2012: Pieter Vanhees
Students to Business Day 2012: Pieter VanheesStudents to Business Day 2012: Pieter Vanhees
Students to Business Day 2012: Pieter Vanhees
 
Students to Business Day 2012: Joe Wilson
Students to Business Day 2012: Joe WilsonStudents to Business Day 2012: Joe Wilson
Students to Business Day 2012: Joe Wilson
 
Students to Business Day 2012: Wouter Devinck
Students to Business Day 2012: Wouter DevinckStudents to Business Day 2012: Wouter Devinck
Students to Business Day 2012: Wouter Devinck
 

Último

Último (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 

#win8acad : Building Metro Style Apps with XAML for .NET Developers

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. 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
  • 7.
  • 8. using Windows.Media.Capture; var new CameraCaptureUI new Size var await CameraCaptureUIMode if var new BitmapImage await FileAccessMode
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. demo
  • 16.
  • 17.
  • 18.
  • 19.
  • 20. demo
  • 21. var new CameraCaptureUI new Size var await CameraCaptureUIMode if var new BitmapImage await FileAccessMode
  • 22. var DataTransferManager.GetForCurrentView new TypedEventHandler<DataTransferManager DataRequestedEventArgs void if null "No Image Taken" else
  • 23.
  • 24.
  • 25. try { var new CameraCaptureUI new Size catch (Exception e) { //Exception handling code } ComException
  • 26. var picker = new FileOpenPicker(); picker.FileTypeFilter.Add("*"); var files = await picker.PickMultipleFilesAsync(); foreach (var file in files) { lbFiles.Items.Add(file.FileName); } PickMultipleFilesOperation PickMultipleFilesAsync(); public sealed class PickMultipleFilesOperation : IAsyncOperation<IReadOnlyList<StorageFile>>, IAsyncInfo
  • 27. var picker = new FileOpenPicker(); picker.FileTypeFilter.Add("*"); var files = await picker.PickMultipleFilesAsync(); foreach (StorageFile file in files) { lbFiles.Items.Add(file.FileName); } System.Collections.Generic.IReadOnlyList <Windows.Storage.StorageFile>
  • 28. var picker = new FileOpenPicker(); picker.FileTypeFilter.Add("*"); var files = await picker.PickMultipleFilesAsync(); foreach (StorageFile file in files) { lbFiles.Items.Add(file.FileName); } System.Collections.Generic.IReadOnlyList Windows.Foundation.Collections.IVectorView <Windows.Storage.StorageFile> <Windows.Storage.StorageFile>
  • 29.
  • 30.
  • 31. FileOpenPicker picker = new FileOpenPicker(); picker.FileTypeFilter.Add("*"); StorageFile file = await picker.PickSingleFileAsync(); Windows.Storage.Streams.IInputStream inputStream = await file.OpenForReadAsync(); System.IO.Stream stream = inputStream.AsStream(); System.IO.StreamReader reader = new StreamReader(stream); string contents = reader.ReadToEnd();
  • 32. internal async void ProtectBytes(byte[] data, BinaryWriter output) { DataProtectionProvider dpp = new DataProtectionProvider(); IBuffer result = await dpp.ProtectAsync(data.AsBuffer()); byte[] protectedData; int start = 0; if (result.TryGetUnderlyingData(out protectedData, out start)) output.Write(protectedData); else throw new InvalidOperationException(); }
  • 33.
  • 34. ComVisible(true), Guid("06D7901C-9045-4241-B8A0-39A1AC0F8618")] public interface IWindowsApiSample { string HelloWorld(); } [ComVisible(true), [ClassInterface(ClassInterfaceType.None)] [ComDefaultInterface(typeof(IWindowsApiSample))] public class WindowsApiSample : IWindowsApiSample { public string HelloWorld() { return "Hello, World!"; } }
  • 35. public sealed class MyClassLibrary { public string HelloWorld() { return "Hello, World!"; } }
  • 36.
  • 37.
  • 38.
  • 39.
  • 40. demo
  • 41.
  • 42.
  • 44.
  • 45.
  • 46.
  • 47. demo
  • 48.
  • 49.
  • 50. demo