private void RadPageViewLocalizationProvider_CurrentProviderChanged(object sender, EventArgs e)
        {
            RadPageViewLocalizationProvider currentProvider = LocalizationProvider <RadPageViewLocalizationProvider> .CurrentProvider;

            this.showMoreButtons.Text  = currentProvider.GetLocalizedString("ShowMoreButtonsItemCaption");
            this.showFewerButtons.Text = currentProvider.GetLocalizedString("ShowFewerButtonsItemCaption");
            this.addRemoveButtons.Text = currentProvider.GetLocalizedString("AddRemoveButtonsItemCaption");
        }
        private void RadPageViewLocalizationProvider_CurrentProviderChanged(object sender, EventArgs e)
        {
            RadPageViewLocalizationProvider localizationProvider = RadPageViewLocalizationProvider.CurrentProvider;

            this.showMoreButtons.Text  = localizationProvider.GetLocalizedString(RadPageViewStringId.ShowMoreButtonsItemCaption);
            this.showFewerButtons.Text = localizationProvider.GetLocalizedString(RadPageViewStringId.ShowFewerButtonsItemCaption);
            this.addRemoveButtons.Text = localizationProvider.GetLocalizedString(RadPageViewStringId.AddRemoveButtonsItemCaption);
        }
Esempio n. 3
0
        void RadPageViewLocalizationProvider_CurrentProviderChanged(object sender, EventArgs e)
        {
            RadPageViewLocalizationProvider localizationProvider = RadPageViewLocalizationProvider.CurrentProvider;

            this.scrollLeftButton.ToolTipText  = localizationProvider.GetLocalizedString(RadPageViewStringId.LeftScrollButtonTooltip);
            this.scrollRightButton.ToolTipText = localizationProvider.GetLocalizedString(RadPageViewStringId.RightScrollButtonTooltip);
            this.itemListButton.ToolTipText    = localizationProvider.GetLocalizedString(RadPageViewStringId.ItemListButtonTooltip);
            this.closeButton.ToolTipText       = localizationProvider.GetLocalizedString(RadPageViewStringId.CloseButtonTooltip);
        }
Esempio n. 4
0
        private void RadPageViewLocalizationProvider_CurrentProviderChanged(object sender, EventArgs e)
        {
            RadPageViewLocalizationProvider currentProvider = LocalizationProvider <RadPageViewLocalizationProvider> .CurrentProvider;

            this.scrollLeftButton.ToolTipText  = currentProvider.GetLocalizedString("LeftScrollButton");
            this.scrollRightButton.ToolTipText = currentProvider.GetLocalizedString("RightScrollButton");
            this.itemListButton.ToolTipText    = currentProvider.GetLocalizedString("ItemListButton");
            this.closeButton.ToolTipText       = currentProvider.GetLocalizedString("CloseButton");
        }
Esempio n. 5
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            RadPageViewLocalizationProvider localizationProvider = RadPageViewLocalizationProvider.CurrentProvider;

            this.scrollLeftButton             = new RadPageViewStripButtonElement();
            this.scrollLeftButton.ThemeRole   = "StripViewLeftScrollButton";
            this.scrollLeftButton.Image       = Resources.Back;
            this.scrollLeftButton.Tag         = StripViewButtons.LeftScroll;
            this.scrollLeftButton.ToolTipText = localizationProvider.GetLocalizedString(RadPageViewStringId.LeftScrollButtonTooltip);
            this.scrollLeftButton.Click      += OnButtonClick;


            this.scrollRightButton             = new RadPageViewStripButtonElement();
            this.scrollRightButton.ThemeRole   = "StripViewRightScrollButton";
            this.scrollRightButton.Image       = Resources.Next;
            this.scrollRightButton.Tag         = StripViewButtons.RightScroll;
            this.scrollRightButton.ToolTipText = localizationProvider.GetLocalizedString(RadPageViewStringId.RightScrollButtonTooltip);
            this.scrollRightButton.Click      += OnButtonClick;


            this.itemListButton             = new RadPageViewStripButtonElement();
            this.itemListButton.ThemeRole   = "StripViewItemListButton";
            this.itemListButton.Image       = Resources.DropDown2;
            this.itemListButton.Tag         = StripViewButtons.ItemList;
            this.itemListButton.ToolTipText = localizationProvider.GetLocalizedString(RadPageViewStringId.ItemListButtonTooltip);
            this.itemListButton.Click      += OnButtonClick;


            this.closeButton             = new RadPageViewStripButtonElement();
            this.closeButton.ThemeRole   = "StripViewCloseButton";
            this.closeButton.Image       = Resources.Close;
            this.closeButton.Tag         = StripViewButtons.Close;
            this.closeButton.ToolTipText = localizationProvider.GetLocalizedString(RadPageViewStringId.CloseButtonTooltip);
            this.closeButton.Click      += OnButtonClick;

            if (this.RightToLeft && this.ContentOrientation != PageViewContentOrientation.Vertical270 &&
                this.ContentOrientation != PageViewContentOrientation.Vertical90)
            {
                this.Children.Add(this.closeButton);
                this.Children.Add(this.itemListButton);
                this.Children.Add(this.scrollLeftButton);
                this.Children.Add(this.scrollRightButton);
            }
            else
            {
                this.Children.Add(this.scrollLeftButton);
                this.Children.Add(this.scrollRightButton);
                this.Children.Add(this.itemListButton);
                this.Children.Add(this.closeButton);
            }

            RadPageViewLocalizationProvider.CurrentProviderChanged += new EventHandler(RadPageViewLocalizationProvider_CurrentProviderChanged);
        }
Esempio n. 6
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            RadPageViewLocalizationProvider currentProvider = LocalizationProvider <RadPageViewLocalizationProvider> .CurrentProvider;

            this.scrollLeftButton              = new RadPageViewStripButtonElement();
            this.scrollLeftButton.ThemeRole    = "StripViewLeftScrollButton";
            this.scrollLeftButton.Image        = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.Back;
            this.scrollLeftButton.Tag          = (object)StripViewButtons.LeftScroll;
            this.scrollLeftButton.ToolTipText  = currentProvider.GetLocalizedString("LeftScrollButton");
            this.scrollLeftButton.Click       += new EventHandler(this.OnButtonClick);
            this.scrollRightButton             = new RadPageViewStripButtonElement();
            this.scrollRightButton.ThemeRole   = "StripViewRightScrollButton";
            this.scrollRightButton.Image       = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.Next;
            this.scrollRightButton.Tag         = (object)StripViewButtons.RightScroll;
            this.scrollRightButton.ToolTipText = currentProvider.GetLocalizedString("RightScrollButton");
            this.scrollRightButton.Click      += new EventHandler(this.OnButtonClick);
            this.itemListButton             = new RadPageViewStripButtonElement();
            this.itemListButton.ThemeRole   = "StripViewItemListButton";
            this.itemListButton.Image       = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.DropDown2;
            this.itemListButton.Tag         = (object)StripViewButtons.ItemList;
            this.itemListButton.ToolTipText = currentProvider.GetLocalizedString("ItemListButton");
            this.itemListButton.Click      += new EventHandler(this.OnButtonClick);
            this.closeButton             = new RadPageViewStripButtonElement();
            this.closeButton.ThemeRole   = "StripViewCloseButton";
            this.closeButton.Image       = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.Close;
            this.closeButton.Tag         = (object)StripViewButtons.Close;
            this.closeButton.ToolTipText = currentProvider.GetLocalizedString("CloseButton");
            this.closeButton.Click      += new EventHandler(this.OnButtonClick);
            if (this.RightToLeft && this.ContentOrientation != PageViewContentOrientation.Vertical270 && this.ContentOrientation != PageViewContentOrientation.Vertical90)
            {
                this.Children.Add((RadElement)this.closeButton);
                this.Children.Add((RadElement)this.itemListButton);
                this.Children.Add((RadElement)this.scrollLeftButton);
                this.Children.Add((RadElement)this.scrollRightButton);
            }
            else
            {
                this.Children.Add((RadElement)this.scrollLeftButton);
                this.Children.Add((RadElement)this.scrollRightButton);
                this.Children.Add((RadElement)this.itemListButton);
                this.Children.Add((RadElement)this.closeButton);
            }
            LocalizationProvider <RadPageViewLocalizationProvider> .CurrentProviderChanged += new EventHandler(this.RadPageViewLocalizationProvider_CurrentProviderChanged);
        }
        protected override void InitializeFields()
        {
            base.InitializeFields();
            this.overflowButtonElement                   = new RadPageViewOutlookOverflowButton();
            this.overflowButtonElement.ThemeRole         = "OverflowMenuButton";
            this.overflowButtonElement.StretchVertically = true;
            this.overflowMenu     = new RadDropDownMenu();
            this.buttonsContainer = new StackLayoutPanel();
            RadPageViewLocalizationProvider currentProvider = LocalizationProvider <RadPageViewLocalizationProvider> .CurrentProvider;

            this.showMoreButtons = new RadMenuItem(currentProvider.GetLocalizedString("ShowMoreButtonsItemCaption"));
            int num1 = (int)this.showMoreButtons.SetDefaultValueOverride(RadButtonItem.ImageAlignmentProperty, (object)ContentAlignment.MiddleCenter);

            this.showFewerButtons = new RadMenuItem(currentProvider.GetLocalizedString("ShowFewerButtonsItemCaption"));
            int num2 = (int)this.showFewerButtons.SetDefaultValueOverride(RadButtonItem.ImageAlignmentProperty, (object)ContentAlignment.MiddleCenter);

            this.addRemoveButtons = new RadMenuItem(currentProvider.GetLocalizedString("AddRemoveButtonsItemCaption"));
            this.overflowMenu.Items.Add((RadItem)this.showMoreButtons);
            this.overflowMenu.Items.Add((RadItem)this.showFewerButtons);
            this.overflowMenu.Items.Add((RadItem)this.addRemoveButtons);
            this.WireEvents();
        }