Windows 8 Apps Revealed Using XAML and C# by Adam Freeman

Windows 8 Apps Revealed Using XAML and C# by Adam Freeman

Author:Adam Freeman [Freeman, Adam]
Language: eng
Format: epub, pdf
Tags: Computers, Programming Languages, Programming, Microsoft Programming, C#
ISBN: 9781430250340
Publisher: Apress
Published: 2012-11-21T05:00:00+00:00


Writing the User Control Code

User controls still have code-behind files, even though they present fragments of XAML. Listing 3-8 shows the contents of the HomeZipCodeFlyout.xaml.cs file.

Listing 3-8. The HomeZipCodeFlyout.xaml.cs File

using Windows.UI.Xaml;

using Windows.UI.Xaml.Controls;

namespace GrocerApp.Flyouts {

public sealed partial class HomeZipCodeFlyout : UserControl {

public HomeZipCodeFlyout() {

this.InitializeComponent();

}

public void Show(Page page, AppBar appbar, Button button) {

HomeZipCodePopup.IsOpen = true;

FlyoutHelper.ShowRelativeToAppBar(HomeZipCodePopup, page, appbar, button);

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.