Ejemplo n.º 1
0
        private void CreateMainApplicationBar()
        {
            _mainApplicationBar = new ApplicationBar()
            {
                IsVisible       = true,
                IsMenuEnabled   = true,
                BackgroundColor = ConstantPool.AppForeColor,
                Opacity         = 0.99
            };
            Util.AddApplicationBarButton(_mainApplicationBar, "/Assets/Icons/new.png", "新建笔记", OnAddNewNoteAppbarButtonClicked);
            Util.AddApplicationBarButton(_mainApplicationBar, "/Assets/Icons/settings.png", "设置", OnSettingsAppbarButtonClicked);
            Util.AddApplicationBarButton(_mainApplicationBar, "/Assets/Icons/about.png", "关于", OnAboutAppbarButtonClicked);
            Util.AddApplicationBarButton(_mainApplicationBar, "/Assets/Icons/sync.png", "同步", OnSyncAppbarButtonClicked);

            Util.AddApplicationBarMenuItem(_mainApplicationBar, "讨论区", OnDiscussionMenuItemClicked);

            ApplicationBar = _mainApplicationBar;
        }