SlideShare une entreprise Scribd logo
1  sur  21
Microsoft Student Partners
             Windows 8
How to add an App Bar

How to use Live Tiles
Who am I?


            Amr Abulnaga


        British University in Egypt

        Microsoft Student Partner (MSP)
Agenda

  Introduction

     Technical Concepts

       XAML

       App Bar

       Standard Styles

     Handling Button Click Events

  Live Tiles
Technical   Windows 8 App Development
Concepts
Technical Concepts

         App Pages




                     Data Model (Data Layer)
                         -> Data Source




                             Assets
Technical Concepts

 Languages Supported:

      WPF & C#

      HTML & JavaScript

      WPF & C++
Technical Concepts

 Charms

 Life Tiles

 Toast Notifications

 App Contracts

 Windows 8 Search Contract
XAML is a declarative markup language
       that simplifies creating a UI for a .NET
XAML   Application. Using XAML markup you
       can create visible elements and
       components
XAML

•   When represented as text, XAML files are XML files that generally have the .xaml extension. The files can be
    encoded by any XML encoding, but encoding as UTF-8 is typical.

•   The following example shows how you might create a button as part of a UI. This example is just intended to
    give you a flavor of how XAML represents common UI programming metaphors (it is not a complete sample).
                 <StackPanel>
                  <Button Content="Click Me"/>
                 </StackPanel>




Adding any XAML Component to the XAML file is similar to the above example and to provide more support to the
developer Windows 8 comes with a lot of pre-loaded XAML controls.
It’s a sliding bar from the bottom or
          from the top that contains controls or

App Bar   settings for your application that can
          be hidden away when they aren't
          needed.
How to add an App Bar

 • To add an app bar to your app, assign an AppBar control to the
   TopAppBar or BottomAppBar property of a Page.

 • Top app bar can be used to show navigation in your app.

 • Bottom app bar can be used to show commands and tools.
How to add an App Bar
 Add the following XAML Code to your page
 (BottomAppBar Component)
<Page.BottomAppBar>
<AppBar x:Name="bottomAppBar" Padding="10,0,10,0">
<Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Button Style="{StaticResource EditAppBarButtonStyle}" Click="Button_Click"/>
<Button Style="{StaticResource RemoveAppBarButtonStyle}" Click="Button_Click"/>
<Button Style="{StaticResource AddAppBarButtonStyle}" Click="Button_Click"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Style="{StaticResource RefreshAppBarButtonStyle}" Click="Button_Click"/>
<Button Style="{StaticResource HelpAppBarButtonStyle}" Click="Button_Click"/>
</StackPanel>
</Grid>
</AppBar>
</Page.BottomAppBar>
Standard Styles

•   The app bar button styles used in these examples are located in the
    StandardStyles.xaml file included with every Microsoft Visual Studio
    project template.

•   By default, the app bar button styles are commented out in
    StandardStyles.xaml.

•   To use a style, you must un-comment the Extensible Application
    Markup Language (XAML) for the Style resource in the file.
Handling Button Click events

 Now after adding the AppBar component in the XAML code one thing is left which is to
 handle the Button_Click event and for different buttons we’ll use different events

 Just add

 private void Button_Click(object sender, RoutedEventArgs e)

      {

          //Button Function

      }
Windows 8 live tiles is a feature for Modern UI apps that use
             the internet to bring live updates to users of Windows 8.
             Live tiles exist on the Windows 8 start screen, and are
Live Tiles   useful for having instantaneous information on constantly
             changing data like stock indexes, international weather, as
             well as local and international news.
Live tiles

 How does the tile change ?!

 The tile is updated when the application sends a TileNotification
 followed by updating the tile via TileUpdateManager.
Live tiles
How can we use the Live Tiles ?!

•   Local

        By adding the text and the image you want to be on the tile to the solution.

•   Through Internet

        By adding images through the internet and your text on the tile.

•   Through a Web Service

        Via NotificationChannelManager by getting the data from the service URI
Live tiles

 •   To use the Live Tiles Notifications without a Web Service is easier as you put
     your content directly by referencing them and passing them to the update
     function but using a Web service is much more time saving as to be used in
     other applications and scales down the size of the app.

 We’ll Use the NotificationsExtensions Library which is a premade library with Tile
 objects pre-defined to help developers you can find it in the Windows SDK Sample:

 http://code.msdn.microsoft.com/windowsapps/App-tiles-and-badges-sample-
 5fc49148
Let’s Work !   Yes !
Contact me

     amr.salah@studentpartner.com

     http://www.facebook.com/amrabulnaga.0

     http://www.twitter.com/amrabulnaga

     http://amrabulnaga.WordPress.com
Thank You    Thank you so much 

Contenu connexe

Tendances

Introduction To Rich Internet Applications
Introduction To Rich Internet ApplicationsIntroduction To Rich Internet Applications
Introduction To Rich Internet ApplicationsAbdelmonaim Remani
 
E learning excel vba programming lesson 1
E learning excel vba programming  lesson 1E learning excel vba programming  lesson 1
E learning excel vba programming lesson 1Vijay Perepa
 
Apache Flex: Overview
Apache Flex: OverviewApache Flex: Overview
Apache Flex: OverviewTarun Telang
 
Microsoft Office 2003 Creating Macros
Microsoft Office 2003 Creating MacrosMicrosoft Office 2003 Creating Macros
Microsoft Office 2003 Creating MacrosS Burks
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 IntroductionTennyson
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netajmal_fuuast
 
TF - Silvio Luiz
TF - Silvio LuizTF - Silvio Luiz
TF - Silvio LuizSilvio Luiz
 
Introduction to visual basic
Introduction to visual basicIntroduction to visual basic
Introduction to visual basicManav Khandelwal
 
Project Rui Full Size
Project Rui Full SizeProject Rui Full Size
Project Rui Full SizeRui Zheng
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
E learning excel vba programming lesson 2
E learning excel vba programming  lesson 2E learning excel vba programming  lesson 2
E learning excel vba programming lesson 2Vijay Perepa
 
CIS 451: Introduction to ASP.NET
CIS 451: Introduction to ASP.NETCIS 451: Introduction to ASP.NET
CIS 451: Introduction to ASP.NETwebhostingguy
 

Tendances (20)

Visusual basic
Visusual basicVisusual basic
Visusual basic
 
Introduction To Rich Internet Applications
Introduction To Rich Internet ApplicationsIntroduction To Rich Internet Applications
Introduction To Rich Internet Applications
 
E learning excel vba programming lesson 1
E learning excel vba programming  lesson 1E learning excel vba programming  lesson 1
E learning excel vba programming lesson 1
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
Apache Flex: Overview
Apache Flex: OverviewApache Flex: Overview
Apache Flex: Overview
 
Microsoft Office 2003 Creating Macros
Microsoft Office 2003 Creating MacrosMicrosoft Office 2003 Creating Macros
Microsoft Office 2003 Creating Macros
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
C# p1
C# p1C# p1
C# p1
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
 
TF - Silvio Luiz
TF - Silvio LuizTF - Silvio Luiz
TF - Silvio Luiz
 
Introduction to visual basic
Introduction to visual basicIntroduction to visual basic
Introduction to visual basic
 
Vba Class Level 3
Vba Class Level 3Vba Class Level 3
Vba Class Level 3
 
Project Rui Full Size
Project Rui Full SizeProject Rui Full Size
Project Rui Full Size
 
DHTMLX_NEW
DHTMLX_NEWDHTMLX_NEW
DHTMLX_NEW
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
E learning excel vba programming lesson 2
E learning excel vba programming  lesson 2E learning excel vba programming  lesson 2
E learning excel vba programming lesson 2
 
CIS 451: Introduction to ASP.NET
CIS 451: Introduction to ASP.NETCIS 451: Introduction to ASP.NET
CIS 451: Introduction to ASP.NET
 
EMF Client Platform
EMF Client PlatformEMF Client Platform
EMF Client Platform
 

En vedette

Media album presentation
Media album presentationMedia album presentation
Media album presentationsophieray
 
CIRB social media & public services
CIRB social media & public servicesCIRB social media & public services
CIRB social media & public servicessophie chevalier
 
All in a bears life
All in a bears lifeAll in a bears life
All in a bears lifeChuck Crouse
 
Использование TELAGRAM в digital-креативе
Использование TELAGRAM в digital-креативеИспользование TELAGRAM в digital-креативе
Использование TELAGRAM в digital-креативеPushkin Andrew
 
Digital для ФК Крылья Советов
Digital для ФК Крылья СоветовDigital для ФК Крылья Советов
Digital для ФК Крылья СоветовPushkin Andrew
 
Dau mach dien sao tam giac dung ro le thoi gian
Dau mach dien sao  tam giac dung ro le thoi gianDau mach dien sao  tam giac dung ro le thoi gian
Dau mach dien sao tam giac dung ro le thoi giansyhuyen86
 
Adding azure service in windows 8
Adding azure service in windows 8Adding azure service in windows 8
Adding azure service in windows 8Amr Abulnaga
 
Как быстро рисовать иконки в 3д
Как быстро рисовать иконки в 3дКак быстро рисовать иконки в 3д
Как быстро рисовать иконки в 3дPushkin Andrew
 
Connecting health to our natural resources
Connecting health to our natural resourcesConnecting health to our natural resources
Connecting health to our natural resourcesgbeltalliance
 
Launchers and choosers
Launchers and choosersLaunchers and choosers
Launchers and choosersAmr Abulnaga
 
All in a bears life
All in a bears lifeAll in a bears life
All in a bears lifeChuck Crouse
 
UD in Thai context (M.Arch.)
UD in Thai context (M.Arch.)UD in Thai context (M.Arch.)
UD in Thai context (M.Arch.)Antika Kmitl
 
Environmental Impact Report 101 Workshop (2/5/13)
Environmental Impact Report 101 Workshop (2/5/13)Environmental Impact Report 101 Workshop (2/5/13)
Environmental Impact Report 101 Workshop (2/5/13)gbeltalliance
 
Planning for the Ecosystem in South County By Andrea Mackenzie
Planning for the Ecosystem in South County By Andrea MackenziePlanning for the Ecosystem in South County By Andrea Mackenzie
Planning for the Ecosystem in South County By Andrea Mackenziegbeltalliance
 

En vedette (17)

Media album presentation
Media album presentationMedia album presentation
Media album presentation
 
CIRB social media & public services
CIRB social media & public servicesCIRB social media & public services
CIRB social media & public services
 
All in a bears life
All in a bears lifeAll in a bears life
All in a bears life
 
Использование TELAGRAM в digital-креативе
Использование TELAGRAM в digital-креативеИспользование TELAGRAM в digital-креативе
Использование TELAGRAM в digital-креативе
 
Digital для ФК Крылья Советов
Digital для ФК Крылья СоветовDigital для ФК Крылья Советов
Digital для ФК Крылья Советов
 
Dau mach dien sao tam giac dung ro le thoi gian
Dau mach dien sao  tam giac dung ro le thoi gianDau mach dien sao  tam giac dung ro le thoi gian
Dau mach dien sao tam giac dung ro le thoi gian
 
Adding azure service in windows 8
Adding azure service in windows 8Adding azure service in windows 8
Adding azure service in windows 8
 
Social forum june2014
Social forum june2014Social forum june2014
Social forum june2014
 
Как быстро рисовать иконки в 3д
Как быстро рисовать иконки в 3дКак быстро рисовать иконки в 3д
Как быстро рисовать иконки в 3д
 
Itidaç
ItidaçItidaç
Itidaç
 
Connecting health to our natural resources
Connecting health to our natural resourcesConnecting health to our natural resources
Connecting health to our natural resources
 
Launchers and choosers
Launchers and choosersLaunchers and choosers
Launchers and choosers
 
All in a bears life
All in a bears lifeAll in a bears life
All in a bears life
 
UD in Thai context (M.Arch.)
UD in Thai context (M.Arch.)UD in Thai context (M.Arch.)
UD in Thai context (M.Arch.)
 
Environmental Impact Report 101 Workshop (2/5/13)
Environmental Impact Report 101 Workshop (2/5/13)Environmental Impact Report 101 Workshop (2/5/13)
Environmental Impact Report 101 Workshop (2/5/13)
 
Pwer
PwerPwer
Pwer
 
Planning for the Ecosystem in South County By Andrea Mackenzie
Planning for the Ecosystem in South County By Andrea MackenziePlanning for the Ecosystem in South County By Andrea Mackenzie
Planning for the Ecosystem in South County By Andrea Mackenzie
 

Similaire à Windows 8 app bar and live tiles

Building Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdfBuilding Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdfSivarajAmbat1
 
MSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF DemystifiedMSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF DemystifiedDave Bost
 
Develop an app for Windows 8 using HTML5
Develop an app for Windows 8 using HTML5Develop an app for Windows 8 using HTML5
Develop an app for Windows 8 using HTML5Soumow Dollon
 
Windows phone 8 session 3
Windows phone 8 session 3Windows phone 8 session 3
Windows phone 8 session 3hitesh chothani
 
Complete WPF Overview Tutorial with Example - iFour Technolab
Complete WPF Overview Tutorial with Example - iFour TechnolabComplete WPF Overview Tutorial with Example - iFour Technolab
Complete WPF Overview Tutorial with Example - iFour TechnolabiFour Technolab Pvt. Ltd.
 
Exploring Adobe Flex
Exploring Adobe Flex Exploring Adobe Flex
Exploring Adobe Flex senthil0809
 
How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...
 How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi... How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...
How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...Aimore Technologies
 
HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and RunningCodemotion
 
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Re-use Your Skills and Code to Expand the Reach of Your Apps with SilverlightRe-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Re-use Your Skills and Code to Expand the Reach of Your Apps with SilverlightFrank La Vigne
 
Dot Net Training Dot Net35
Dot Net Training Dot Net35Dot Net Training Dot Net35
Dot Net Training Dot Net35Subodh Pushpak
 
Introduction to XAML and WPF
Introduction to XAML and WPFIntroduction to XAML and WPF
Introduction to XAML and WPFDoncho Minkov
 
Building Windows8 Metro Applications
Building Windows8 Metro ApplicationsBuilding Windows8 Metro Applications
Building Windows8 Metro ApplicationsAbhishek Sur
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RPaul Richards
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management systemYesu Raj
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management systemYesu Raj
 

Similaire à Windows 8 app bar and live tiles (20)

Building Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdfBuilding Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdf
 
Silverlight Training
Silverlight TrainingSilverlight Training
Silverlight Training
 
MSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF DemystifiedMSDN Unleashed: WPF Demystified
MSDN Unleashed: WPF Demystified
 
Develop an app for Windows 8 using HTML5
Develop an app for Windows 8 using HTML5Develop an app for Windows 8 using HTML5
Develop an app for Windows 8 using HTML5
 
Windows phone 8 session 3
Windows phone 8 session 3Windows phone 8 session 3
Windows phone 8 session 3
 
Complete WPF Overview Tutorial with Example - iFour Technolab
Complete WPF Overview Tutorial with Example - iFour TechnolabComplete WPF Overview Tutorial with Example - iFour Technolab
Complete WPF Overview Tutorial with Example - iFour Technolab
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
Exploring Adobe Flex
Exploring Adobe Flex Exploring Adobe Flex
Exploring Adobe Flex
 
How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...
 How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi... How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...
How DotNet, SharePoint, and Azure helps to build a Custom Web Application wi...
 
HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and Running
 
Chpater1
Chpater1Chpater1
Chpater1
 
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Re-use Your Skills and Code to Expand the Reach of Your Apps with SilverlightRe-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
 
As pnet
As pnetAs pnet
As pnet
 
mobicon_paper
mobicon_papermobicon_paper
mobicon_paper
 
Dot Net Training Dot Net35
Dot Net Training Dot Net35Dot Net Training Dot Net35
Dot Net Training Dot Net35
 
Introduction to XAML and WPF
Introduction to XAML and WPFIntroduction to XAML and WPF
Introduction to XAML and WPF
 
Building Windows8 Metro Applications
Building Windows8 Metro ApplicationsBuilding Windows8 Metro Applications
Building Windows8 Metro Applications
 
Introduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in RIntroduction to Shiny for building web apps in R
Introduction to Shiny for building web apps in R
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management system
 
Online advertising management system
Online advertising management systemOnline advertising management system
Online advertising management system
 

Windows 8 app bar and live tiles

  • 1. Microsoft Student Partners Windows 8 How to add an App Bar How to use Live Tiles
  • 2. Who am I? Amr Abulnaga British University in Egypt Microsoft Student Partner (MSP)
  • 3. Agenda Introduction Technical Concepts XAML App Bar Standard Styles Handling Button Click Events Live Tiles
  • 4. Technical Windows 8 App Development Concepts
  • 5. Technical Concepts App Pages Data Model (Data Layer) -> Data Source Assets
  • 6. Technical Concepts Languages Supported: WPF & C# HTML & JavaScript WPF & C++
  • 7. Technical Concepts Charms Life Tiles Toast Notifications App Contracts Windows 8 Search Contract
  • 8. XAML is a declarative markup language that simplifies creating a UI for a .NET XAML Application. Using XAML markup you can create visible elements and components
  • 9. XAML • When represented as text, XAML files are XML files that generally have the .xaml extension. The files can be encoded by any XML encoding, but encoding as UTF-8 is typical. • The following example shows how you might create a button as part of a UI. This example is just intended to give you a flavor of how XAML represents common UI programming metaphors (it is not a complete sample). <StackPanel> <Button Content="Click Me"/> </StackPanel> Adding any XAML Component to the XAML file is similar to the above example and to provide more support to the developer Windows 8 comes with a lot of pre-loaded XAML controls.
  • 10. It’s a sliding bar from the bottom or from the top that contains controls or App Bar settings for your application that can be hidden away when they aren't needed.
  • 11. How to add an App Bar • To add an app bar to your app, assign an AppBar control to the TopAppBar or BottomAppBar property of a Page. • Top app bar can be used to show navigation in your app. • Bottom app bar can be used to show commands and tools.
  • 12. How to add an App Bar Add the following XAML Code to your page (BottomAppBar Component) <Page.BottomAppBar> <AppBar x:Name="bottomAppBar" Padding="10,0,10,0"> <Grid> <StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> <Button Style="{StaticResource EditAppBarButtonStyle}" Click="Button_Click"/> <Button Style="{StaticResource RemoveAppBarButtonStyle}" Click="Button_Click"/> <Button Style="{StaticResource AddAppBarButtonStyle}" Click="Button_Click"/> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <Button Style="{StaticResource RefreshAppBarButtonStyle}" Click="Button_Click"/> <Button Style="{StaticResource HelpAppBarButtonStyle}" Click="Button_Click"/> </StackPanel> </Grid> </AppBar> </Page.BottomAppBar>
  • 13. Standard Styles • The app bar button styles used in these examples are located in the StandardStyles.xaml file included with every Microsoft Visual Studio project template. • By default, the app bar button styles are commented out in StandardStyles.xaml. • To use a style, you must un-comment the Extensible Application Markup Language (XAML) for the Style resource in the file.
  • 14. Handling Button Click events Now after adding the AppBar component in the XAML code one thing is left which is to handle the Button_Click event and for different buttons we’ll use different events Just add private void Button_Click(object sender, RoutedEventArgs e) { //Button Function }
  • 15. Windows 8 live tiles is a feature for Modern UI apps that use the internet to bring live updates to users of Windows 8. Live tiles exist on the Windows 8 start screen, and are Live Tiles useful for having instantaneous information on constantly changing data like stock indexes, international weather, as well as local and international news.
  • 16. Live tiles How does the tile change ?! The tile is updated when the application sends a TileNotification followed by updating the tile via TileUpdateManager.
  • 17. Live tiles How can we use the Live Tiles ?! • Local By adding the text and the image you want to be on the tile to the solution. • Through Internet By adding images through the internet and your text on the tile. • Through a Web Service Via NotificationChannelManager by getting the data from the service URI
  • 18. Live tiles • To use the Live Tiles Notifications without a Web Service is easier as you put your content directly by referencing them and passing them to the update function but using a Web service is much more time saving as to be used in other applications and scales down the size of the app. We’ll Use the NotificationsExtensions Library which is a premade library with Tile objects pre-defined to help developers you can find it in the Windows SDK Sample: http://code.msdn.microsoft.com/windowsapps/App-tiles-and-badges-sample- 5fc49148
  • 19. Let’s Work ! Yes !
  • 20. Contact me amr.salah@studentpartner.com http://www.facebook.com/amrabulnaga.0 http://www.twitter.com/amrabulnaga http://amrabulnaga.WordPress.com
  • 21. Thank You  Thank you so much 