Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Phone

Windows Phone 8 : Phone-Specific Design (part 1) - The ApplicationBar in Blend

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
4/30/2013 4:49:56 PM

Although designing an application using Blend should be similar whether you are building a traditional XAML application or a Windows Phone application, some things are applicable only to the phone. These include the ApplicationBar, the Panorama control, the Pivot control, and launching the emulator.

1. The ApplicationBar in Blend

Although having a user interface that compels users to move, swipe, and pan their way to getting the most from your application is nice, sometimes users need simple operations. This is where the ApplicationBar comes in. The ApplicationBar is a standard part of many applications. A mix of a menu and a toolbar, the ApplicationBar can hold both icons (like a toolbar) and menu items. The ApplicationBar starts in a minimized (or closed) state and can be opened by the user to reveal more information, as shown in Figure 1.

Figure 1. ApplicationBar explained

Image

By default, the ApplicationBar takes up a small portion of the user interface (labeled #1 in Figure 1). On the ApplicationBar are icons that can perform certain tasks. In this mode only the icons are visible; the menu items are not. You can see the icons in the ApplicationBar (#2). To the right of the icons is an ellipse (#3) that alerts the user that pressing it will open the ApplicationBar (#4). In this open view, the menu items are shown below the icons (#5). Finally, you should notice that, when opened, the icons have text associated with them (this is not visible when closed but is shown when the application bar is opened, as shown in #6). In this example, all the text is lowercase. The ApplicationBar forces any text in the menu items or icon text to be lowercase (to preserve the Metro-style guide).

You can add an ApplicationBar to a XAML file with the context menu on the PhoneApplicationPage element in the Objects and Timeline panel, as shown in Figure 2.

Figure 2. Adding an ApplicationBar

Image

This adds the bar to your application as just another part of your object tree. From that point, you can use the context menu to add both icons and menu items, as shown in Figure 3.

Figure 3. Adding items to the ApplicationBar

Image

Adding an ApplicationBarIconButton creates the icons you see on the bar (whether closed or opened). Blend supports a number of built-in icons you can choose, or you can supply your own. With an ApplicationBarIconButton selected in the Objects and Timeline panel, you can use the drop-down to pick an icon to use for your application, as shown in Figure 4.

Figure 4. Selecting a built-in icon for an ApplicationBar icon

Image

Selecting a built-in icon will add that icon to your project (in an Icons folder). You can simply supply your own IconUri to point to an icon of your choosing (located in your project). The built-in icons are useful, but be careful not to reuse a built-in icon for a use that is not natural. It will confuse users if you reuse an icon that is commonly used for some other function.

Typically, these should follow the Metro style and be monochrome (for example, white on black or black on white) in the PNG format. If you choose white with PNG transparency, Windows Phone will change your icons to black on white when the user switches his theme to a light theme. Otherwise, you will need to modify the icon at runtime manually.

Other -----------------
- Windows Phone 7 : AlienShooter Enhancements (part 2) - Tombstone Support, Particle System
- Windows Phone 7 : AlienShooter Enhancements (part 1) - Load and Save Game State
- Windows Phone 7 Programming Model : Application Execution Model
- Windows Phone 7 Programming Model : Bing Maps Control
- Windows Phone 8 : Designing for the Phone - Blend Basics (part 4) - Working with Behaviors
- Windows Phone 8 : Designing for the Phone - Blend Basics (part 3) - Creating Animations
- Windows Phone 8 : Designing for the Phone - Blend Basics (part 2) - Brushes
- Windows Phone 8 : Designing for the Phone - Blend Basics (part 1) - Layout
- Windows Phone 8 : Designing for the Phone - Microsoft Expression Blend
- Windows Phone 7 Programming Model : Asynchronous Programming - Background Threads
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server