Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationBarBehavior" /> class.
        /// </summary>
        public ApplicationBarBehavior()
        {
            Buttons   = new ApplicationBarIconButtonCollection(_applicationBar.Buttons);
            MenuItems = new ApplicationBarMenuItemCollection(_applicationBar.MenuItems);

            _applicationBar.StateChanged += new EventHandler <ApplicationBarStateChangedEventArgs>(ApplicationBar_StateChanged);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationBar" /> class.
        /// </summary>
        public ApplicationBar()
        {
            InternalApplicationBar = new Microsoft.Phone.Shell.ApplicationBar();

            Buttons   = new ApplicationBarIconButtonCollection(InternalApplicationBar.Buttons);
            MenuItems = new ApplicationBarMenuItemCollection(InternalApplicationBar.MenuItems);

            InternalApplicationBar.StateChanged += ApplicationBarStateChanged;
        }