SlideShare una empresa de Scribd logo
1 de 32
Arunjeet Singh
Mobility Consultant
Microsoft
Session Code:
About Me
 Member of the Global Mobility Practices team

 Free consulting can occasionally be bought for a large
 bag of fries and a cold drink 

 Blog: http://blogs.msdn.com/knowledgecast

 Email: arunjeet.singh@microsoft.com

 Twitter: @arunjeetsingh
Session Prerequisites
 Visual Studio.NET

 .NET Compact Framework

 Familiarity with P/Invoke

 Knowledge of Windows Mobile Development
What We Will Learn Today
 What Makes a Great Looking UI

 Transparency and Custom Borders

 Some Guidelines

 The UI Framework

 Recap and Next Steps

 Q&A
My Favourite Mobile Applications
My Favourite Mobile Applications
My Favourite Mobile Applications
What Makes a Great Looking UI
 Background Images

 Transparent Overlays

 No Sharp Edges

 Gradients!
Transparency
 Transparent Backgrounds

 Semi-transparent Images

 Using the Alpha Channel
Transparency
 Transparent Backgrounds
Transparency
 Transparent Backgrounds
Transparency
 Transparent Backgrounds

 Semi-transparent Images

 Using the Alpha Channel
Transparent Backgrounds
  One color (the background) is transparent

  Support OOB in .NET Compact Framework

ImageAttributes attr = new ImageAttributes();

attr.SetColorKey(Color.Red, Color.Red);

e.Graphics.DrawImage(bmp, destRect, 0, 0, bmp.Width, bmp.Hei
   ght, GrahicsUnit.Pixel, attr)
Semi-transparent Images
   The image blends in with the background

   Alpha Blending
        Supported by the Platform

[DllImport(quot;coredll.dllquot;)
extern public static Int32 AlphaBlend(IntPtr hdcDest,
            Int32 xDest, Int32 yDest, Int32 cxDest,
            Int32 cyDest, IntPtr hdcSrc, Int32 xSrc,
            Int32 ySrc, Int32 cxSrc, Int32 cySrc,
               BlendFunction blendFunction);
Building a Splash Screen
Arunjeet Singh
Mobility Consultant
Microsoft
Using the Alpha Channel
 Parts of the image are drawn with an “alpha”
 channel

 The channel defines custom transparency

 Supported by a COM interfaces of the Imaging
 API

 IImagingFactory
 IImage
Using Alpha Channels
Arunjeet Singh
Mobility Consultant
Microsoft
Custom Borders
 Turn off the default border

 Using custom borders

 Using Rounded Borders
Custom borders
Arunjeet Singh
Mobility Consultant
Microsoft
Some Guidelines
 Window transparency is not supported

 Drawing must be done in one Graphics context

 Reuse drawing resources (Brushes, Pens, Fonts)

 Use double buffering
The UI Framework
Arunjeet Singh
Mobility Consultant
Microsoft
Recap
 Mobile UI trends

 Transparency implementation

 Custom Borders

 UI Framework
Next Steps
Get the Windows Mobile 6 SDK




http://www.microsoft.com/downloads/details.aspx?fa
milyid=06111A3A-A651-4745-88EF-
3D48091A390B&displaylang=en
Next Steps
Leverage what we talked about today




http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?
ProjectName=uiframework&ReleaseId=2315
Next Steps
 Build Great Looking Applications!
More Information
 Code from this session:
    http://code.msdn.microsoft.com/Release/ProjectReleases.a
    spx?ProjectName=uiframework&ReleaseId=2315

 How to create a Microsoft .NET Compact Framework-
 based Image Button:
    http://msdn.microsoft.com/en-us/library/aa446518.aspx

 Chris Lorton’s blog (Alpha Blending):
    http://blogs.msdn.com/chrislorton/archive/2006/04/07/57
    0649.aspx
More Information
 How-to Display Gradient Fill:
    http://msdn.microsoft.com/en-us/library/ms229655.aspx

 Building Graphically advanced Apps in .NET Compact
 Framework:
    http://expression.microsoft.com/en-us/dd279543.aspx


 MSDN Article that covers these concepts:
    http://msdn.microsoft.com/en-us/library/dd630622.aspx
Related Content
May 15 (1100 – 1215) - Windows mobile platform: Past, Present and Future



May 15 (1500 – 1615) - Occasionally connected Applications using the Sync Framework



May 15 (1630 – 1745) - Understanding and optimizing for .NET CF Memory Architecture



Exam 70-540 - Microsoft Windows Mobile 5.0 - Application Development
Blog: http://blogs.msdn.com/knowledgecast

Email: arunjeet.singh@microsoft.com

Twitter: @arunjeetsingh
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should
 not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
                                                                           IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Más contenido relacionado

Destacado

#$%%#Presentación sistema negocios vitcenter día 1"#$%&/
#$%%#Presentación sistema negocios vitcenter día 1"#$%&/#$%%#Presentación sistema negocios vitcenter día 1"#$%&/
#$%%#Presentación sistema negocios vitcenter día 1"#$%&/Lester Morales
 
Icrc battle villages
Icrc battle villagesIcrc battle villages
Icrc battle villagesextensive
 
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.LaFabrika detodalavida
 
ISU Iñigo Sáenz de Urturi. Cállate y Vende
ISU Iñigo Sáenz de Urturi. Cállate y VendeISU Iñigo Sáenz de Urturi. Cállate y Vende
ISU Iñigo Sáenz de Urturi. Cállate y VendeIñigo Sáenz de Urturi
 
Информация о работе для женщин
Информация о работе для женщинИнформация о работе для женщин
Информация о работе для женщинsadchenkovl
 
Administracion y Gerencia Equipo 1 unermb
Administracion y Gerencia Equipo 1 unermbAdministracion y Gerencia Equipo 1 unermb
Administracion y Gerencia Equipo 1 unermbAriany Linares
 
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas Pretextos y Vinos SL
 
Manual de facilidades aeronauticas
Manual de facilidades aeronauticasManual de facilidades aeronauticas
Manual de facilidades aeronauticassistemaais
 
Deber de computacion libro
Deber de computacion  libroDeber de computacion  libro
Deber de computacion libroMayu Love
 

Destacado (13)

#$%%#Presentación sistema negocios vitcenter día 1"#$%&/
#$%%#Presentación sistema negocios vitcenter día 1"#$%&/#$%%#Presentación sistema negocios vitcenter día 1"#$%&/
#$%%#Presentación sistema negocios vitcenter día 1"#$%&/
 
Icrc battle villages
Icrc battle villagesIcrc battle villages
Icrc battle villages
 
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.
LFdTV en construcción y Goteo.org. Entrevista en la Revista Llámpara.
 
El mejor email del año
El mejor email del añoEl mejor email del año
El mejor email del año
 
ISU Iñigo Sáenz de Urturi. Cállate y Vende
ISU Iñigo Sáenz de Urturi. Cállate y VendeISU Iñigo Sáenz de Urturi. Cállate y Vende
ISU Iñigo Sáenz de Urturi. Cállate y Vende
 
Excursión a La Alfranca (Colegio PP. Dominicos - Zaragoza)
Excursión a La Alfranca (Colegio PP. Dominicos - Zaragoza)Excursión a La Alfranca (Colegio PP. Dominicos - Zaragoza)
Excursión a La Alfranca (Colegio PP. Dominicos - Zaragoza)
 
Информация о работе для женщин
Информация о работе для женщинИнформация о работе для женщин
Информация о работе для женщин
 
Administracion y Gerencia Equipo 1 unermb
Administracion y Gerencia Equipo 1 unermbAdministracion y Gerencia Equipo 1 unermb
Administracion y Gerencia Equipo 1 unermb
 
Quemaduras
QuemadurasQuemaduras
Quemaduras
 
Open Skies June2014
Open Skies June2014Open Skies June2014
Open Skies June2014
 
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas
Propuesta surtido Riojas de bodegas pequeñas a tiendas especializadas
 
Manual de facilidades aeronauticas
Manual de facilidades aeronauticasManual de facilidades aeronauticas
Manual de facilidades aeronauticas
 
Deber de computacion libro
Deber de computacion  libroDeber de computacion  libro
Deber de computacion libro
 

Más de rsnarayanan

Kevin Ms Web Platform
Kevin Ms Web PlatformKevin Ms Web Platform
Kevin Ms Web Platformrsnarayanan
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnetrsnarayanan
 
Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Datarsnarayanan
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deploymentrsnarayanan
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3rsnarayanan
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...rsnarayanan
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlightrsnarayanan
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systemsrsnarayanan
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Servicesrsnarayanan
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...rsnarayanan
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Libraryrsnarayanan
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sqlrsnarayanan
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developersrsnarayanan
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1rsnarayanan
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developersrsnarayanan
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8rsnarayanan
 

Más de rsnarayanan (20)

Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 
Walther Ajax4
Walther Ajax4Walther Ajax4
Walther Ajax4
 
Kevin Ms Web Platform
Kevin Ms Web PlatformKevin Ms Web Platform
Kevin Ms Web Platform
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
Walther Mvc
Walther MvcWalther Mvc
Walther Mvc
 
Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Data
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deployment
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
 
Netcf Gc
Netcf GcNetcf Gc
Netcf Gc
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systems
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Services
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Library
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sql
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developers
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developers
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8
 

Último

How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 

Building Great Looking Mobile Applications Tech Ed

  • 1.
  • 3. About Me Member of the Global Mobility Practices team Free consulting can occasionally be bought for a large bag of fries and a cold drink  Blog: http://blogs.msdn.com/knowledgecast Email: arunjeet.singh@microsoft.com Twitter: @arunjeetsingh
  • 4. Session Prerequisites Visual Studio.NET .NET Compact Framework Familiarity with P/Invoke Knowledge of Windows Mobile Development
  • 5. What We Will Learn Today What Makes a Great Looking UI Transparency and Custom Borders Some Guidelines The UI Framework Recap and Next Steps Q&A
  • 6. My Favourite Mobile Applications
  • 7. My Favourite Mobile Applications
  • 8. My Favourite Mobile Applications
  • 9. What Makes a Great Looking UI Background Images Transparent Overlays No Sharp Edges Gradients!
  • 10. Transparency Transparent Backgrounds Semi-transparent Images Using the Alpha Channel
  • 13. Transparency Transparent Backgrounds Semi-transparent Images Using the Alpha Channel
  • 14. Transparent Backgrounds One color (the background) is transparent Support OOB in .NET Compact Framework ImageAttributes attr = new ImageAttributes(); attr.SetColorKey(Color.Red, Color.Red); e.Graphics.DrawImage(bmp, destRect, 0, 0, bmp.Width, bmp.Hei ght, GrahicsUnit.Pixel, attr)
  • 15. Semi-transparent Images The image blends in with the background Alpha Blending Supported by the Platform [DllImport(quot;coredll.dllquot;) extern public static Int32 AlphaBlend(IntPtr hdcDest, Int32 xDest, Int32 yDest, Int32 cxDest, Int32 cyDest, IntPtr hdcSrc, Int32 xSrc, Int32 ySrc, Int32 cxSrc, Int32 cySrc, BlendFunction blendFunction);
  • 16. Building a Splash Screen Arunjeet Singh Mobility Consultant Microsoft
  • 17. Using the Alpha Channel Parts of the image are drawn with an “alpha” channel The channel defines custom transparency Supported by a COM interfaces of the Imaging API IImagingFactory IImage
  • 18. Using Alpha Channels Arunjeet Singh Mobility Consultant Microsoft
  • 19. Custom Borders Turn off the default border Using custom borders Using Rounded Borders
  • 21. Some Guidelines Window transparency is not supported Drawing must be done in one Graphics context Reuse drawing resources (Brushes, Pens, Fonts) Use double buffering
  • 22. The UI Framework Arunjeet Singh Mobility Consultant Microsoft
  • 23. Recap Mobile UI trends Transparency implementation Custom Borders UI Framework
  • 24. Next Steps Get the Windows Mobile 6 SDK http://www.microsoft.com/downloads/details.aspx?fa milyid=06111A3A-A651-4745-88EF- 3D48091A390B&displaylang=en
  • 25. Next Steps Leverage what we talked about today http://code.msdn.microsoft.com/Release/ProjectReleases.aspx? ProjectName=uiframework&ReleaseId=2315
  • 26. Next Steps Build Great Looking Applications!
  • 27. More Information Code from this session: http://code.msdn.microsoft.com/Release/ProjectReleases.a spx?ProjectName=uiframework&ReleaseId=2315 How to create a Microsoft .NET Compact Framework- based Image Button: http://msdn.microsoft.com/en-us/library/aa446518.aspx Chris Lorton’s blog (Alpha Blending): http://blogs.msdn.com/chrislorton/archive/2006/04/07/57 0649.aspx
  • 28. More Information How-to Display Gradient Fill: http://msdn.microsoft.com/en-us/library/ms229655.aspx Building Graphically advanced Apps in .NET Compact Framework: http://expression.microsoft.com/en-us/dd279543.aspx MSDN Article that covers these concepts: http://msdn.microsoft.com/en-us/library/dd630622.aspx
  • 29.
  • 30. Related Content May 15 (1100 – 1215) - Windows mobile platform: Past, Present and Future May 15 (1500 – 1615) - Occasionally connected Applications using the Sync Framework May 15 (1630 – 1745) - Understanding and optimizing for .NET CF Memory Architecture Exam 70-540 - Microsoft Windows Mobile 5.0 - Application Development
  • 32. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Notas del editor

  1. If you would like to host your demo on the Virtual Server, please use the myVPC demo slide, not this slide.
  2. If you would like to host your demo on the Virtual Server, please use the myVPC demo slide, not this slide.
  3. If you would like to host your demo on the Virtual Server, please use the myVPC demo slide, not this slide.
  4. If you would like to host your demo on the Virtual Server, please use the myVPC demo slide, not this slide.
  5. If you would like to host your demo on the Virtual Server, please use the myVPC demo slide, not this slide.