コード例 #1
0
        public ImageDetailsPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _deleteIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.delete.png", UriKind.Relative));
            _deleteIconButton.Text = _localizedStrings.ControlsText.Remove;
            _deleteIconButton.Click += _deleteIconButton_Click;

            _positionIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.positionMedia.png", UriKind.Relative));
            _positionIconButton.Text = _localizedStrings.Prompts.MediaPlacement;
            _positionIconButton.Click += _positionIconButton_Click;

            _featureIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.feature.png", UriKind.Relative));
            _featureIconButton.Text = _localizedStrings.ControlsText.FeatureImage;
            _featureIconButton.Click += featureIconButton_Click;

            _unfeatureIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.unfeature.png", UriKind.Relative));
            _unfeatureIconButton.Text = _localizedStrings.ControlsText.UnfeatureImage;
            _unfeatureIconButton.Click += unfeatureIconButton_Click;

            // Order of the list items should match the order of WordPress.Model.eMediaPlacement
            _positionListOptions = new List<string>(2);
            _positionListOptions.Add(_localizedStrings.Options.MediaOptions_PlaceBefore);
            _positionListOptions.Add(_localizedStrings.Options.MediaOptions_PlaceAfter);
        }
        public SelectCategoriesPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _refreshIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.refresh.png", UriKind.Relative));
            _refreshIconButton.Text = _localizedStrings.ControlsText.Refresh;
            _refreshIconButton.Click += OnRefreshButtonClick;
            ApplicationBar.Buttons.Add(_refreshIconButton);

            _addIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.add.png", UriKind.Relative));
            _addIconButton.Text = _localizedStrings.ControlsText.Add;
            _addIconButton.Click += OnAddButtonClick;
            ApplicationBar.Buttons.Add(_addIconButton);

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);

            Loaded += OnPageLoaded;
        }
        public ModerateCommentsPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _deleteIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.delete.png", UriKind.Relative));
            _deleteIconButton.Text = _localizedStrings.ControlsText.Delete;
            _deleteIconButton.Click += OnDeleteIconButtonClick;

            _spamIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.spam.png", UriKind.Relative));
            _spamIconButton.Text = _localizedStrings.ControlsText.Spam;
            _spamIconButton.Click += OnSpamIconButtonClick;

            _approveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.approve.png", UriKind.Relative));
            _approveIconButton.Text = _localizedStrings.ControlsText.Approve;
            _approveIconButton.Click += OnApproveIconButtonClick;

            _unapproveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.unapprove.png", UriKind.Relative));
            _unapproveIconButton.Text = _localizedStrings.ControlsText.Unapprove;
            _unapproveIconButton.Click += OnUnapproveIconButtonClick;

            Loaded += OnPageLoaded;
            allCommentsListBox.Loaded += OnListLoaded;
            approvedCommentsListBox.Loaded += OnListLoaded;
            allCommentsListBox.Loaded += OnListLoaded;
            allCommentsListBox.Loaded += OnListLoaded;
        }
コード例 #4
0
        public EditPagePage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);

            _mediaUploadRPCs = new List<UploadFileRPC>();

            Loaded += OnPageLoaded;

            photoChooserTask = new PhotoChooserTask();
            photoChooserTask.ShowCamera = true;
            photoChooserTask.Completed += new EventHandler<PhotoResult>(OnChoosePhotoTaskCompleted);

            uploadImagesAsGalleryCheckbox.Visibility = Visibility.Collapsed;
            gallerySettingsButton.Visibility = Visibility.Collapsed;
        }
コード例 #5
0
        public BlogSettingsPage()
        {
            InitializeComponent();

            DataContext = App.MasterViewModel;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            _thumbnailSizes = new List<string>();
            _thumbnailSizes.Add(_localizedStrings.ControlsText.OriginalSize);
            int limit = 10;
            for (int i = 1; i < limit; i++)
            {
                _thumbnailSizes.Add((i * 100).ToString());
            }

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);

            Loaded += OnPageLoaded;
        }
コード例 #6
0
        public ReaderBrowserPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            Loaded += OnPageLoaded;
        }
コード例 #7
0
        public EditContent()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
            ApplicationBar = new ApplicationBar();
            ApplicationBar.IsVisible = false;
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _addLinkIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.link.png", UriKind.Relative));
            _addLinkIconButton.Text = _localizedStrings.ControlsText.Link;
            _addLinkIconButton.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.Buttons.Add(_addLinkIconButton);

            _boldIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.bold.png", UriKind.Relative));
            _boldIconButton.Text = _localizedStrings.ControlsText.BoldAppBarItem;
            _boldIconButton.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.Buttons.Add(_boldIconButton);

            _italicIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.italic.png", UriKind.Relative));
            _italicIconButton.Text = _localizedStrings.ControlsText.ItalicAppBarItem;
            _italicIconButton.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.Buttons.Add(_italicIconButton);

            _quoteIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.blockquote.png", UriKind.Relative));
            _quoteIconButton.Text = _localizedStrings.ControlsText.BlockQuoteAppBarItem;
            _quoteIconButton.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.Buttons.Add(_quoteIconButton);

            //Menu items
            _moreMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.MoreTag);
            _moreMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_moreMenuItem);

            _ulMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.UnorderedListMenuItem);
            _ulMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_ulMenuItem);

            _olMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.OrderedListMenuItem);
            _olMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_olMenuItem);

            _underlineMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.UnderlineMenuItem);
            _underlineMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_underlineMenuItem);

            _strikethroughMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.StrikeThroughMenuItem);
            _strikethroughMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_strikethroughMenuItem);

            _discardChangesMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.DiscardChangesMenuItem);
            _discardChangesMenuItem.Click += OnButtonOrMenuitemClicked;
            ApplicationBar.MenuItems.Add(_discardChangesMenuItem);

            browser.Loaded += WebBrowser_OnLoaded;
        }
        public GallerySettingsPage()
        {
            InitializeComponent();

            _post = App.MasterViewModel.CurrentPost;
            DataContext = _post;
            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            InitializeApplicationBar();
            InitializePickers();
        }
コード例 #9
0
        public BlogsPage()
        {
            InitializeComponent();

            App.MasterViewModel.Blogs.Sort(x => x.BlogNameLower);
            DataContext = App.MasterViewModel;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _addBlogIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.add.png", UriKind.Relative));
            _addBlogIconButton.Text = _localizedStrings.ControlsText.AddBlog;
            _addBlogIconButton.Click += OnAddAccountIconButtonClick;
            ApplicationBar.Buttons.Add(_addBlogIconButton);

            _preferencesIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.settings.png", UriKind.Relative));
            _preferencesIconButton.Text = _localizedStrings.ControlsText.Preferences;
            _preferencesIconButton.Click += OnPreferencesIconButtonClick;
            ApplicationBar.Buttons.Add(_preferencesIconButton);

            ApplicationBarMenuItem deleteBlogMenuItem = new ApplicationBarMenuItem(_localizedStrings.ControlsText.DeleteBlog);
            deleteBlogMenuItem.Click += OnDeleteBlogMenuItemClick;
            ApplicationBar.MenuItems.Add(deleteBlogMenuItem);

            ApplicationBarIconButton aboutIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.about.png", UriKind.Relative));
            aboutIconButton.Text = _localizedStrings.ControlsText.About;
            aboutIconButton.Click += OnAboutMenuItemClick;
            ApplicationBar.Buttons.Add(aboutIconButton);

            //check is there is a WP.COM blog
            List<Blog> blogs = DataService.Current.Blogs.ToList();
            bool presence = false;
            foreach (Blog currentBlog in blogs)
            {
                if (currentBlog.Xmlrpc.EndsWith("wordpress.com/xmlrpc.php"))
                {
                    presence = true;
                    break;
                }
            }
            if (presence)
            {
                _readerIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.reader.png", UriKind.Relative));
                _readerIconButton.Text = _localizedStrings.ControlsText.Reader;
                _readerIconButton.Click += OnReaderIconButtonClick;
                //  ApplicationBar.Buttons.Add(_readerIconButton);
            }

            CrashReporter.CheckForPreviousException();
        }
コード例 #10
0
        public AboutPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            string version = Constants.WORDPRESS_USERAGENT.Split('/')[1];
            AppVersion.Text = string.Format("{0} {1}", _localizedStrings.ControlsText.Version, version);
            AppCopyright.Text = ((AssemblyCopyrightAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(AssemblyCopyrightAttribute), false)).Copyright;
            Loaded += OnPageLoaded;
        }
        public AddExistingWordPressBlogPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _saveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.save.png", UriKind.Relative));
            _saveIconButton.Text = _localizedStrings.ControlsText.Save;
            _saveIconButton.Click += OnSaveButtonClick;
            ApplicationBar.Buttons.Add(_saveIconButton);
        }
コード例 #12
0
        public LicensesPage()
        {
            InitializeComponent();
            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            var rs = Application.GetResourceStream(new Uri("/WordPress;component/Resources/licenses.html", UriKind.Relative));
            using (StreamReader sr = new StreamReader(rs.Stream))
            {
                webBrowser.NavigateToString(sr.ReadToEnd());
            }

            Loaded += OnPageLoaded;

            webBrowser.Loaded += WebBrowser_OnLoaded;
        }
        public PushNotificationCommentPage()
        {
            InitializeComponent();

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            replyEditPanel.Visibility = Visibility.Collapsed;

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _deleteIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.delete.png", UriKind.Relative));
            _deleteIconButton.Text = _localizedStrings.ControlsText.Delete;
            _deleteIconButton.Click += OnDeleteIconButtonClick;

            _replyIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.edit.png", UriKind.Relative));
            _replyIconButton.Text = _localizedStrings.ControlsText.Reply;
            _replyIconButton.Click += OnReplyIconButtonClick;

            _spamIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.spam.png", UriKind.Relative));
            _spamIconButton.Text = _localizedStrings.ControlsText.Spam;
            _spamIconButton.Click += OnSpamIconButtonClick;

            _approveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.approve.png", UriKind.Relative));
            _approveIconButton.Text = _localizedStrings.ControlsText.Approve;
            _approveIconButton.Click += OnApproveIconButtonClick;

            _unapproveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.unapprove.png", UriKind.Relative));
            _unapproveIconButton.Text = _localizedStrings.ControlsText.Unapprove;
            _unapproveIconButton.Click += OnUnapproveIconButtonClick;

            ApplicationBarMenuItem menuItem = new ApplicationBarMenuItem();
            menuItem.Text = _localizedStrings.ControlsText.EditComment;
            menuItem.Click += OnEditCommentMenuItemClick;
            ApplicationBar.MenuItems.Add(menuItem);

            authorEmailTextBlock.MouseLeftButtonDown += new MouseButtonEventHandler(authorEmailTextBlock_MouseLeftButtonDown);
            authorURLTextBlock.MouseLeftButtonDown += new MouseButtonEventHandler(authorURLTextBlock_MouseLeftButtonDown);
            Loaded += OnPageLoaded;

            App.WaitIndicationService.RootVisualElement = LayoutRoot;
        }
コード例 #14
0
        public ViewStatsPage()
        {
            InitializeComponent();

            DataContext = App.MasterViewModel;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            _statisticTypeOptions = new List<string>(5);
            _statisticTypeOptions.Add(_localizedStrings.Options.StatisticType_Views);
            _statisticTypeOptions.Add(_localizedStrings.Options.StatisticType_PostViews);
            _statisticTypeOptions.Add(_localizedStrings.Options.StatisticType_Referrers);
            _statisticTypeOptions.Add(_localizedStrings.Options.StatisticType_SearchTerms);
            _statisticTypeOptions.Add(_localizedStrings.Options.StatisticType_Clicks);

            _statisticPeriodOptions = new List<string>(5);
            _statisticPeriodOptions.Add(_localizedStrings.Options.StatisticPeriod_LastWeek);
            _statisticPeriodOptions.Add(_localizedStrings.Options.StatisticPeriod_LastMonth);
            _statisticPeriodOptions.Add(_localizedStrings.Options.StatisticPeriod_LastQuarter);
            _statisticPeriodOptions.Add(_localizedStrings.Options.StatisticPeriod_LastYear);
            _statisticPeriodOptions.Add(_localizedStrings.Options.StatisticPeriod_AllTime);
        }
 public StatisticPeriodToStringConverter()
 {
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
 }
コード例 #16
0
 public CategoryContentConverter()
 {
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
 }
 public ThumbnailSizeToStringConverter()
 {
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
 }
コード例 #18
0
        public BlogPanoramaPage()
        {
            InitializeComponent();

            #if WINPHONE8
            panoramaBlogTitle.Margin = new Thickness(0, 12, 0, 0);
            commentsTitle.Margin = new Thickness(0, -36, 0, 25);
            postsTitle.Margin = new Thickness(0, -36, 0, 25);
            pagesTitle.Margin = new Thickness(0, -36, 0, 25);
            #endif
            DataContext = App.MasterViewModel;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;

            _refreshListOptions = new List<string>(3);
            _refreshListOptions.Add(_localizedStrings.Options.RefreshEntity_Comments);
            _refreshListOptions.Add(_localizedStrings.Options.RefreshEntity_Posts);
            _refreshListOptions.Add(_localizedStrings.Options.RefreshEntity_Pages);

            _postListOptions = new List<string>(5);
            _postListOptions.Add(_localizedStrings.Options.PostOptions_ViewPost);
            _postListOptions.Add(_localizedStrings.Options.PostOptions_ViewComments);
            _postListOptions.Add(_localizedStrings.Options.PostOptions_EditPost);
            _postListOptions.Add(_localizedStrings.Options.PostOptions_DeletePost);

            _draftListOptions = new List<string>(2);
            _draftListOptions.Add(_localizedStrings.Options.PostOptions_EditDraft);
            _draftListOptions.Add(_localizedStrings.Options.PostOptions_DeleteDraft);

            _pageListOptions = new List<string>(5);
            _pageListOptions.Add(_localizedStrings.Options.PageOptions_ViewPage);
            _pageListOptions.Add(_localizedStrings.Options.PageOptions_ViewComments);
            _pageListOptions.Add(_localizedStrings.Options.PageOptions_EditPage);
            _pageListOptions.Add(_localizedStrings.Options.PageOptions_DeletePage);

            ApplicationBar = new ApplicationBar();
            ApplicationBar.BackgroundColor = (Color)App.Current.Resources["AppbarBackgroundColor"];
            ApplicationBar.ForegroundColor = (Color)App.Current.Resources["WordPressGrey"];

            _pinBlogIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.pin.png", UriKind.Relative)); // todo: icon
            _pinBlogIconButton.Text =_localizedStrings.ControlsText.Pin;
            _pinBlogIconButton.Click += OnPinIconButtonClick;

            _unpinBlogIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.unpin.png", UriKind.Relative)); // todo: icon
            _unpinBlogIconButton.Text = _localizedStrings.ControlsText.Unpin;
            _unpinBlogIconButton.Click += OnUnpinIconButtonClick;

            _addIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.add.png", UriKind.Relative));
            _addIconButton.Text = _localizedStrings.ControlsText.Add;
            _addIconButton.Click += OnAddIconButtonClick;

            _refreshIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.refresh.png", UriKind.Relative));
            _refreshIconButton.Text = _localizedStrings.ControlsText.Refresh;
            _refreshIconButton.Click += OnRefreshIconButtonClick;

            // comment moderation
            _moderateIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.moderate.list.png", UriKind.Relative));
            _moderateIconButton.Text = _localizedStrings.ControlsText.Moderate;
            _moderateIconButton.Click += OnModerateIconButtonClick;

            _spamIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.spam.png", UriKind.Relative));
            _spamIconButton.Text = _localizedStrings.ControlsText.Spam;
            _spamIconButton.Click += OnSpamIconButtonClick;

            _approveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.approve.png", UriKind.Relative));
            _approveIconButton.Text = _localizedStrings.ControlsText.Approve;
            _approveIconButton.Click += OnApproveIconButtonClick;

            _unapproveIconButton = new ApplicationBarIconButton(new Uri("/Images/appbar.unapprove.png", UriKind.Relative));
            _unapproveIconButton.Text = _localizedStrings.ControlsText.Unapprove;
            _unapproveIconButton.Click += OnUnapproveIconButtonClick;

            _delMenuItem = new ApplicationBarMenuItem();
            _delMenuItem.Text = _localizedStrings.ControlsText.DeleteSelected;
            _delMenuItem.Click += OnDeleteMenuItemClick;

            _filterAllMenuItem = new ApplicationBarMenuItem();
            _filterAllMenuItem.Text = _localizedStrings.ControlsText.FilterAll;
            _filterAllMenuItem.Click += OnFilterAllMenuItemClick;

            _filterApprovedMenuItem = new ApplicationBarMenuItem();
            _filterApprovedMenuItem.Text = _localizedStrings.ControlsText.FilterApproved;
            _filterApprovedMenuItem.Click += OnFilterApprovedMenuItemClick;

            _filterUnapprovedMenuItem = new ApplicationBarMenuItem();
            _filterUnapprovedMenuItem.Text = _localizedStrings.ControlsText.FilterUnapproved;
            _filterUnapprovedMenuItem.Click += OnFilterUnapprovedMenuItemClick;

            _filterSpamMenuItem = new ApplicationBarMenuItem();
            _filterSpamMenuItem.Text = _localizedStrings.ControlsText.FilterSpam;
            _filterSpamMenuItem.Click += OnFilterSpamMenuItemClick;

            blogPanorama.SelectionChanged += OnBlogPanoramaSelectionChanged;

            Loaded += OnPageLoaded;
            postsScrollerView.Loaded += enableInfiniteScrolling;
            pagesScrollerView.Loaded += enableInfiniteScrolling;
            commentsScrollerView.Loaded += enableInfiniteScrolling;
        }
コード例 #19
0
 public PageTitleConverter()
 {
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
 }
 public PostStatusInListConverter()
 {
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
 }
コード例 #21
0
        public UserSettings()
        {
            Settings = IsolatedStorageSettings.ApplicationSettings;

            _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
        }
コード例 #22
0
 public ErrorPage()
 {
     InitializeComponent();
     _localizedStrings = App.Current.Resources["StringTable"] as StringTable;
     this.DebugLog("end constructor");
 }