SlideShare a Scribd company logo
“Discover Windows Phone”
development series
05. Application Bar
Yasmine Abdelhady
@yasabdelhady
Yasmine.Abdelhady@Hotmail.com

© Yasmine Abdelhady | MEA DPE Intern
 What is an application bar?

 Adding an application bar
 Making the buttons work

Agenda

 Text-based menu items
 Other appBar properties
 appBar best practices

© Yasmine Abdelhady | MEA DPE Intern
What is an
appBar?

© Yasmine Abdelhady | MEA DPE Intern

 The Application Bar in
Windows Phone 8 is that set of
circled icons at the bottom of
an application. Here's an
example of the App bar from
my application, Playin.
 Let’s open the project that we’ve created through out the previous
post

Adding the
Application bar

 1. Open MainPage.xaml
 2. Add your application bar ( xaml code in the next slide ) at the
very end of the page but before
</phone:PhoneApplicationPage>

© Yasmine Abdelhady | MEA DPE Intern
© Yasmine Abdelhady | MEA DPE Intern
 The previous XAML code is an example of an application bar with
two icon buttons, first one is ‘add’ and the second is ‘cancel’, and
two menu items. This app bar will end up like this:

© Yasmine Abdelhady | MEA DPE Intern
 When you click on one of the
ApplicationBarIconButtons, check the
properties tab. You'll see a simple way to set
the icon and text for each one. Here's what it
looks like:

Properties

© Yasmine Abdelhady | MEA DPE Intern

 If you drop down the IconUri select box, you'll
see a lot of standard icons that you can use in
your applications, these icons should serve
most of your needs, in addition; you can
always create your own icon and add it
manually).
 AppBar buttons are like anything in your XAML file. They just need
a Click event, and an event handler in the code behind.

Making these
buttons work

© Yasmine Abdelhady | MEA DPE Intern

 So to do this:
1. Select the 'add' button from the design view
2. Go to the properties windows
3. You'll find another tab for event handlers, click on it
4. Change the name of the button, and double tap on the textbox
that is corresponding to the event 'Click'.
 The result will be as follows and the project will directly take you
to the event handler of the button in the code behind.
 Add a MessageBox to your event so you test that it works, that’s
how it’s done:

© Yasmine Abdelhady | MEA DPE Intern
What are textbased menu
items?

© Yasmine Abdelhady | MEA DPE Intern

When you run your application, you may have noticed that by
clicking on the ellipsis icon (…), the application bar slides up to
reveal a list of another menu options. If you used the default code
from above, they still say “MenuItem 1″ and “MenuItem 2″. These
work just like the IconButtons, where you can rig up event handlers
for when your users click on them.
Can you
minimize the
app bar?

© Yasmine Abdelhady | MEA DPE Intern

Yes you can! you can have an application bar that doesn’t show any
of the ApplicationBarIconButtons by default. To do this, you simply
need to change the Mode property of the ApplicationBar to be
“Minimized”.
Other appBar
properties

 You can change the opacity of the appBar, expected values are
between 0.0 and 1.0, from totally transparent to completely
opaque respectively.
 The background and the foreground colors can be changed as a
property in the XAML element. Also the visibility and enabling the
appBar is possible.
 To know more about ApplicationBar best practices click here.

© Yasmine Abdelhady | MEA DPE Intern
@yasabdelhady

yasmine.Abdelhady@Hotmail.com

Thank you 
yasabdelhady.wordpress.com

Facebook.com/yasabdelhady

© Yasmine Abdelhady | MEA DPE Intern

More Related Content

What's hot

Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
Exploring iTools
Exploring iToolsExploring iTools
Exploring iTools
www.netgains.org
 
Wordpress Integration Tutorial
Wordpress Integration TutorialWordpress Integration Tutorial
Wordpress Integration Tutorial
PuttiApps
 
AIDAHelp - App Basic Info
AIDAHelp - App Basic InfoAIDAHelp - App Basic Info
AIDAHelp - App Basic Info
AIDAIO
 
Sharepoint mobile version v2
Sharepoint mobile version v2Sharepoint mobile version v2
Sharepoint mobile version v2
MJ Ferdous
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
Pragati Singh
 
Introduction to iPad 2016
Introduction to iPad 2016Introduction to iPad 2016
AIDAHelp - Getting Started
AIDAHelp - Getting StartedAIDAHelp - Getting Started
AIDAHelp - Getting Started
AIDAIO
 
Introduction to iPad Applications
Introduction to iPad Applications Introduction to iPad Applications
Introduction to iPad Applications
Social Development Centre Waterloo Region
 
How to make an iPhone app
How to make an iPhone appHow to make an iPhone app
How to make an iPhone app
VCube Works
 
AIDAHelp - Upload App Icon
AIDAHelp - Upload App IconAIDAHelp - Upload App Icon
AIDAHelp - Upload App Icon
AIDAIO
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
DCPS
 
Building accessible web components without tears
Building accessible web components without tearsBuilding accessible web components without tears
Building accessible web components without tears
Russ Weakley
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
ekipaco
 
iPad Basic Training
iPad Basic TrainingiPad Basic Training
iPad Basic Training
alphakilo31
 
05 wp7 launchers and choosers
05 wp7   launchers and choosers05 wp7   launchers and choosers
05 wp7 launchers and choosers
Tao Wang
 
How to design and build great apps (with moderator notes)
How to design and build great apps (with moderator notes)How to design and build great apps (with moderator notes)
How to design and build great apps (with moderator notes)
Andreas Weder
 
iOS 11 - The Reinvented App Store
iOS 11 - The Reinvented App StoreiOS 11 - The Reinvented App Store
iOS 11 - The Reinvented App Store
Lior Eldan
 
How to design and build great apps
How to design and build great appsHow to design and build great apps
How to design and build great apps
Magnolia
 
Create New Android Layout
Create New Android LayoutCreate New Android Layout
Create New Android Layout
Transpose Solutions Inc
 

What's hot (20)

Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
 
Exploring iTools
Exploring iToolsExploring iTools
Exploring iTools
 
Wordpress Integration Tutorial
Wordpress Integration TutorialWordpress Integration Tutorial
Wordpress Integration Tutorial
 
AIDAHelp - App Basic Info
AIDAHelp - App Basic InfoAIDAHelp - App Basic Info
AIDAHelp - App Basic Info
 
Sharepoint mobile version v2
Sharepoint mobile version v2Sharepoint mobile version v2
Sharepoint mobile version v2
 
iPhone first App Store submission
iPhone  first App Store submissioniPhone  first App Store submission
iPhone first App Store submission
 
Introduction to iPad 2016
Introduction to iPad 2016Introduction to iPad 2016
Introduction to iPad 2016
 
AIDAHelp - Getting Started
AIDAHelp - Getting StartedAIDAHelp - Getting Started
AIDAHelp - Getting Started
 
Introduction to iPad Applications
Introduction to iPad Applications Introduction to iPad Applications
Introduction to iPad Applications
 
How to make an iPhone app
How to make an iPhone appHow to make an iPhone app
How to make an iPhone app
 
AIDAHelp - Upload App Icon
AIDAHelp - Upload App IconAIDAHelp - Upload App Icon
AIDAHelp - Upload App Icon
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
 
Building accessible web components without tears
Building accessible web components without tearsBuilding accessible web components without tears
Building accessible web components without tears
 
Build your first android mobile app
Build your first android mobile appBuild your first android mobile app
Build your first android mobile app
 
iPad Basic Training
iPad Basic TrainingiPad Basic Training
iPad Basic Training
 
05 wp7 launchers and choosers
05 wp7   launchers and choosers05 wp7   launchers and choosers
05 wp7 launchers and choosers
 
How to design and build great apps (with moderator notes)
How to design and build great apps (with moderator notes)How to design and build great apps (with moderator notes)
How to design and build great apps (with moderator notes)
 
iOS 11 - The Reinvented App Store
iOS 11 - The Reinvented App StoreiOS 11 - The Reinvented App Store
iOS 11 - The Reinvented App Store
 
How to design and build great apps
How to design and build great appsHow to design and build great apps
How to design and build great apps
 
Create New Android Layout
Create New Android LayoutCreate New Android Layout
Create New Android Layout
 

Similar to "Discover windows phone" 05. Application Bar

Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
marwaeng
 
I have adream
I have adreamI have adream
I have adream
ANASZ123
 
I have adream
I have adreamI have adream
I have adream
Kathryn Evans
 
Introduction
IntroductionIntroduction
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
hopTo
 
App creation guide
App creation guideApp creation guide
App creation guide
3D Issue
 
Using android's action bar
Using android's action barUsing android's action bar
Using android's action bar
Danilo Freitas de Souza
 
Appy builder beginner tutorial
Appy builder beginner tutorialAppy builder beginner tutorial
Appy builder beginner tutorial
HabibulHakam
 
Build Low Fidelity Wireframes
Build Low Fidelity WireframesBuild Low Fidelity Wireframes
Build Low Fidelity Wireframes
SV.CO
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
veeracynixit
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
veeracynixit
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tiles
Amr Abulnaga
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
Ace Web Academy -Career Development Center
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
arfa442827
 
App inventor week4(technovation)
App inventor week4(technovation)App inventor week4(technovation)
App inventor week4(technovation)
than sare
 
Visual basic
Visual basic Visual basic
Visual basic
Shabista Imam
 
Tat learning applications en
Tat learning applications enTat learning applications en
Tat learning applications en
Toni Setyawan
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
Jeanie Arnoco
 
"Discover windows phone" 02. page navigation
"Discover windows phone"   02. page navigation"Discover windows phone"   02. page navigation
"Discover windows phone" 02. page navigation
Yasmine Abdelhady
 
Talk tomepart1 2perpage
Talk tomepart1 2perpageTalk tomepart1 2perpage
Talk tomepart1 2perpage
Silvio Cazella
 

Similar to "Discover windows phone" 05. Application Bar (20)

Software engineering modeling lab lectures
Software engineering modeling lab lecturesSoftware engineering modeling lab lectures
Software engineering modeling lab lectures
 
I have adream
I have adreamI have adream
I have adream
 
I have adream
I have adreamI have adream
I have adream
 
Introduction
IntroductionIntroduction
Introduction
 
hopTo Work Step by Step Test Drive
hopTo Work Step by Step Test DrivehopTo Work Step by Step Test Drive
hopTo Work Step by Step Test Drive
 
App creation guide
App creation guideApp creation guide
App creation guide
 
Using android's action bar
Using android's action barUsing android's action bar
Using android's action bar
 
Appy builder beginner tutorial
Appy builder beginner tutorialAppy builder beginner tutorial
Appy builder beginner tutorial
 
Build Low Fidelity Wireframes
Build Low Fidelity WireframesBuild Low Fidelity Wireframes
Build Low Fidelity Wireframes
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Ios actions and outlets
Ios actions and outletsIos actions and outlets
Ios actions and outlets
 
Windows 8 app bar and live tiles
Windows 8 app bar and live tilesWindows 8 app bar and live tiles
Windows 8 app bar and live tiles
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
 
App inventor week4(technovation)
App inventor week4(technovation)App inventor week4(technovation)
App inventor week4(technovation)
 
Visual basic
Visual basic Visual basic
Visual basic
 
Tat learning applications en
Tat learning applications enTat learning applications en
Tat learning applications en
 
Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6Introduction to programming using Visual Basic 6
Introduction to programming using Visual Basic 6
 
"Discover windows phone" 02. page navigation
"Discover windows phone"   02. page navigation"Discover windows phone"   02. page navigation
"Discover windows phone" 02. page navigation
 
Talk tomepart1 2perpage
Talk tomepart1 2perpageTalk tomepart1 2perpage
Talk tomepart1 2perpage
 

Recently uploaded

Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 

Recently uploaded (20)

Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 

"Discover windows phone" 05. Application Bar

  • 1. “Discover Windows Phone” development series 05. Application Bar Yasmine Abdelhady @yasabdelhady Yasmine.Abdelhady@Hotmail.com © Yasmine Abdelhady | MEA DPE Intern
  • 2.  What is an application bar?  Adding an application bar  Making the buttons work Agenda  Text-based menu items  Other appBar properties  appBar best practices © Yasmine Abdelhady | MEA DPE Intern
  • 3. What is an appBar? © Yasmine Abdelhady | MEA DPE Intern  The Application Bar in Windows Phone 8 is that set of circled icons at the bottom of an application. Here's an example of the App bar from my application, Playin.
  • 4.  Let’s open the project that we’ve created through out the previous post Adding the Application bar  1. Open MainPage.xaml  2. Add your application bar ( xaml code in the next slide ) at the very end of the page but before </phone:PhoneApplicationPage> © Yasmine Abdelhady | MEA DPE Intern
  • 5. © Yasmine Abdelhady | MEA DPE Intern
  • 6.  The previous XAML code is an example of an application bar with two icon buttons, first one is ‘add’ and the second is ‘cancel’, and two menu items. This app bar will end up like this: © Yasmine Abdelhady | MEA DPE Intern
  • 7.  When you click on one of the ApplicationBarIconButtons, check the properties tab. You'll see a simple way to set the icon and text for each one. Here's what it looks like: Properties © Yasmine Abdelhady | MEA DPE Intern  If you drop down the IconUri select box, you'll see a lot of standard icons that you can use in your applications, these icons should serve most of your needs, in addition; you can always create your own icon and add it manually).
  • 8.  AppBar buttons are like anything in your XAML file. They just need a Click event, and an event handler in the code behind. Making these buttons work © Yasmine Abdelhady | MEA DPE Intern  So to do this: 1. Select the 'add' button from the design view 2. Go to the properties windows 3. You'll find another tab for event handlers, click on it 4. Change the name of the button, and double tap on the textbox that is corresponding to the event 'Click'.
  • 9.  The result will be as follows and the project will directly take you to the event handler of the button in the code behind.  Add a MessageBox to your event so you test that it works, that’s how it’s done: © Yasmine Abdelhady | MEA DPE Intern
  • 10. What are textbased menu items? © Yasmine Abdelhady | MEA DPE Intern When you run your application, you may have noticed that by clicking on the ellipsis icon (…), the application bar slides up to reveal a list of another menu options. If you used the default code from above, they still say “MenuItem 1″ and “MenuItem 2″. These work just like the IconButtons, where you can rig up event handlers for when your users click on them.
  • 11. Can you minimize the app bar? © Yasmine Abdelhady | MEA DPE Intern Yes you can! you can have an application bar that doesn’t show any of the ApplicationBarIconButtons by default. To do this, you simply need to change the Mode property of the ApplicationBar to be “Minimized”.
  • 12. Other appBar properties  You can change the opacity of the appBar, expected values are between 0.0 and 1.0, from totally transparent to completely opaque respectively.  The background and the foreground colors can be changed as a property in the XAML element. Also the visibility and enabling the appBar is possible.  To know more about ApplicationBar best practices click here. © Yasmine Abdelhady | MEA DPE Intern