SlideShare a Scribd company logo
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 

More Related Content

PPT
Btb017 David
PPS
Transforming Power Point Show with VBA
PPTX
LightSwitch - different way to create business applications
PPTX
WPF For Beginners - Learn in 3 days
PPTX
Visual Programming
PPTX
Exploring Layouts and Providers
PPT
Vb basics
PPTX
DODN2009 - Jump Start Silverlight
Btb017 David
Transforming Power Point Show with VBA
LightSwitch - different way to create business applications
WPF For Beginners - Learn in 3 days
Visual Programming
Exploring Layouts and Providers
Vb basics
DODN2009 - Jump Start Silverlight

What's hot (20)

PPTX
Visusual basic
PPT
Introduction To Rich Internet Applications
PPT
E learning excel vba programming lesson 1
PPT
Meaning Of VB
PPT
Apache Flex: Overview
PPT
Microsoft Office 2003 Creating Macros
PPTX
Visual Basic Controls ppt
PPS
Vb6.0 Introduction
PDF
PPT
Best practices for upgrading vb 6.0 projects to vb.net
PDF
TF - Silvio Luiz
PPTX
Introduction to visual basic
PPTX
Vba Class Level 3
PDF
Project Rui Full Size
PDF
Visual Basic IDE Introduction
PPT
Introduction to visual basic programming
PPTX
E learning excel vba programming lesson 2
PPT
CIS 451: Introduction to ASP.NET
PPT
EMF Client Platform
Visusual basic
Introduction To Rich Internet Applications
E learning excel vba programming lesson 1
Meaning Of VB
Apache Flex: Overview
Microsoft Office 2003 Creating Macros
Visual Basic Controls ppt
Vb6.0 Introduction
Best practices for upgrading vb 6.0 projects to vb.net
TF - Silvio Luiz
Introduction to visual basic
Vba Class Level 3
Project Rui Full Size
Visual Basic IDE Introduction
Introduction to visual basic programming
E learning excel vba programming lesson 2
CIS 451: Introduction to ASP.NET
EMF Client Platform
Ad

Viewers also liked (17)

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

Similar to Windows 8 app bar and live tiles (20)

PDF
Designing XAML apps using Blend for Visual Studio 2013
PPTX
Unique features of windows 8
PPTX
Windows 8 DevUnleashed - Session 1
PPTX
Building Your First Store App with XAML and C#
PPTX
Designing Windows apps with Xaml
PDF
07.Notifications & Reminder, Contact
PPTX
"Discover windows phone" 01. Project Template
PPTX
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
PPTX
Developing on Windows 8
PDF
Building & Designing Windows 10 Universal Windows Apps using XAML and C#
PPTX
Session 5#
PDF
What’s new in XAML and Tooling for Windows 8.1
PDF
Windows Phone 7: Navigating Between Pages
PPTX
Windows Store apps development
PPTX
Introduction to Silverlight for Windows Phone
PDF
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
PDF
Windows Store App Development C And Xaml 1st Edition Pete Brown
PPTX
WPF - An introduction
PPT
MSDN Unleashed: WPF Demystified
PPTX
Introduction to Silverlight
Designing XAML apps using Blend for Visual Studio 2013
Unique features of windows 8
Windows 8 DevUnleashed - Session 1
Building Your First Store App with XAML and C#
Designing Windows apps with Xaml
07.Notifications & Reminder, Contact
"Discover windows phone" 01. Project Template
Windows Phone 8 - 8 Tiles and Lock Screen Notifications
Developing on Windows 8
Building & Designing Windows 10 Universal Windows Apps using XAML and C#
Session 5#
What’s new in XAML and Tooling for Windows 8.1
Windows Phone 7: Navigating Between Pages
Windows Store apps development
Introduction to Silverlight for Windows Phone
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
Windows Store App Development C And Xaml 1st Edition Pete Brown
WPF - An introduction
MSDN Unleashed: WPF Demystified
Introduction to Silverlight

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 