public FBReaderApplicationBar()
        {
            InitializeComponent();
            Tap += OnTap;
            Slider.PageSelected += SliderOnPageSelected;

            MenuItems = new FBReaderApplicationBarItemCollection<FBReaderApplicationBarMenuItem>(this);
            IconButtons = new FBReaderApplicationBarItemCollection<FBReaderApplicationBarIconButton>(this);
        }
Пример #2
0
        private FBReaderApplicationBarItemCollection<FBReaderApplicationBarIconButton> CreateAppBarIconsForTrial()
        {
            var appBarIcons = new FBReaderApplicationBarItemCollection<FBReaderApplicationBarIconButton>(AppBar)
                {
                    new FBReaderApplicationBarIconButton
                        {
                            AppBar = AppBar,
                            Text = UIStrings.ReadPage_AppBar_Search,
                            Icon = new BitmapImage(new Uri(SEARCH_ICON, UriKind.Relative)),
                            Message = "GoToSearch"
                        },
                    new FBReaderApplicationBarIconButton
                        {
                            AppBar = AppBar,
                            Text = UIStrings.ReadPage_AppBar_TableOfContent,
                            Icon = new BitmapImage(new Uri(TABLE_OF_CONTENT_ICON, UriKind.Relative)),
                            Message = "GoToTableOfContents"
                        }
                };

            return appBarIcons;
        }