예제 #1
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            StackLayoutElement stackLayoutElement1 = new StackLayoutElement();

            stackLayoutElement1.Orientation         = Orientation.Vertical;
            stackLayoutElement1.StretchHorizontally = true;
            stackLayoutElement1.StretchVertically   = true;
            this.titleElement = this.CreateTitleElement();
            this.actionsBar   = this.CreateActionsBarElement();
            this.ok           = this.CreateOkButton();
            this.cancel       = this.CreateCancelButton();
            StackLayoutElement stackLayoutElement2 = new StackLayoutElement();

            stackLayoutElement2.Orientation = Orientation.Horizontal;
            stackLayoutElement2.Children.Add((RadElement)this.ok);
            stackLayoutElement2.Children.Add((RadElement)this.cancel);
            this.actionsBar.Children.Add((RadElement)stackLayoutElement2);
            this.currentValueElement = this.CreateCurrentValueElement();
            stackLayoutElement1.Children.Add((RadElement)this.titleElement);
            stackLayoutElement1.Children.Add(this.CreateMainElement());
            stackLayoutElement1.Children.Add((RadElement)this.currentValueElement);
            stackLayoutElement1.Children.Add((RadElement)this.actionsBar);
            this.Children.Add((RadElement)stackLayoutElement1);
        }
예제 #2
0
 private void UpdateSelfReferenceLayout()
 {
     if (this.SelfReferenceLayout != null)
     {
         this.SelfReferenceLayout.CreateCellElements(this);
     }
     else
     {
         if (this.IsFirstDataCell)
         {
             return;
         }
         GridDataRowElement rowElement = this.RowElement as GridDataRowElement;
         if (rowElement == null)
         {
             return;
         }
         SelfReferenceCellLayout selfReferenceLayout = rowElement.SelfReferenceLayout;
         if (selfReferenceLayout == null)
         {
             return;
         }
         StackLayoutElement stackLayoutElement = selfReferenceLayout.StackLayoutElement;
         if (stackLayoutElement == null || stackLayoutElement.Parent != this)
         {
             return;
         }
         this.Children.Remove((RadElement)stackLayoutElement);
     }
 }
예제 #3
0
 protected override void CreateChildElements()
 {
     this.caption                               = new LightVisualElement();
     this.caption.Class                         = "Caption";
     this.caption.StretchVertically             = false;
     this.caption.TextAlignment                 = ContentAlignment.TopLeft;
     this.subCaption                            = new LightVisualElement();
     this.subCaption.Class                      = "SubCaption";
     this.subCaption.StretchVertically          = false;
     this.subCaption.TextAlignment              = ContentAlignment.TopLeft;
     this.description                           = new LightVisualElement();
     this.description.Class                     = "Description";
     this.description.StretchVertically         = false;
     this.description.TextAlignment             = ContentAlignment.TopLeft;
     this.elementsLayout                        = new StackLayoutElement();
     this.elementsLayout.Orientation            = Orientation.Horizontal;
     this.elementsLayout.StretchHorizontally    = true;
     this.elementsLayout.StretchVertically      = true;
     this.elementsLayout.ShouldHandleMouseInput = false;
     this.elementsLayout.ClipDrawing            = true;
     this.elementsLayout.FitInAvailableSize     = true;
     this.items               = new RadItemOwnerCollection();
     this.items.Owner         = (RadElement)this.elementsLayout;
     this.items.ItemTypes     = this.GetItemsTypes();
     this.items.DefaultType   = typeof(RatingStarVisualElement);
     this.Orientation         = Orientation.Vertical;
     this.StretchHorizontally = true;
     this.StretchVertically   = true;
     this.Children.Add((RadElement)this.caption);
     this.Children.Add((RadElement)this.subCaption);
     this.Children.Add((RadElement)this.elementsLayout);
     this.Children.Add((RadElement)this.description);
 }
예제 #4
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.arrowButton = this.CreateArrowButtonElement();
            int num1 = (int)this.arrowButton.Border.SetDefaultValueOverride(RadElement.VisibilityProperty, (object)ElementVisibility.Collapsed);

            this.arrowButton.ClickMode           = ClickMode.Press;
            this.arrowButton.Click              += new EventHandler(this.arrow_Click);
            this.arrowButton.ZIndex              = 1;
            this.arrowButton.StretchHorizontally = false;
            this.arrowButton.StretchVertically   = true;
            this.borderPrimitive       = new BorderPrimitive();
            this.borderPrimitive.Class = "DropDownListBorder";
            this.Children.Add((RadElement)this.borderPrimitive);
            this.fillPrimitive                     = new FillPrimitive();
            this.fillPrimitive.Class               = "DropDownFill";
            this.fillPrimitive.ZIndex              = -1;
            this.fillPrimitive.RadPropertyChanged += new RadPropertyChangedEventHandler(this.fillPrimitive_RadPropertyChanged);
            this.Children.Add((RadElement)this.fillPrimitive);
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.CanFocus            = false;
            stackLayoutElement.StretchVertically   = true;
            stackLayoutElement.StretchHorizontally = true;
            stackLayoutElement.Class = "DropDownListStack";
            stackLayoutElement.FitInAvailableSize = true;
            this.Children.Add((RadElement)stackLayoutElement);
            this.containerElement           = new RadDropDownListEditableAreaElement((RadDropDownListElement)null);
            this.editableElement            = (RadTextBoxElement)this.containerElement.TextBox;
            this.editableElement.Visibility = ElementVisibility.Hidden;
            this.containerElement.DrawText  = true;
            stackLayoutElement.Children.Add((RadElement)this.containerElement);
            stackLayoutElement.Children.Add((RadElement)this.arrowButton);
            int num2 = (int)this.BindProperty(RadItem.TextProperty, (RadObject)this.editableElement, RadItem.TextProperty, PropertyBindingOptions.TwoWay);
        }
예제 #5
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            this.converter = TypeDescriptor.GetConverter(typeof(Color));

            this.stack                          = new StackLayoutElement();
            this.stack.Orientation              = Orientation.Horizontal;
            this.stack.StretchVertically        = true;
            this.stack.FitInAvailableSize       = true;
            this.stack.StretchHorizontally      = true;
            this.stack.ShouldHandleMouseInput   = false;
            this.stack.NotifyParentOnMouseInput = true;
            this.stack.ElementSpacing           = 1;

            this.colorBox          = this.CreateColorBoxElement();
            this.colorTextBox      = this.CreateColorTextBoxElement();
            this.colorPickerButton = this.CreateColorPickerButtonElement();

            this.stack.Children.Add(this.colorBox);
            this.stack.Children.Add(this.colorTextBox);
            this.stack.Children.Add(this.colorPickerButton);

            this.Children.Add(this.stack);

            this.WireEvents();
        }
예제 #6
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.stack = this.CreateStackLayoutElement();
     this.messagesViewElement     = this.CreateMessagesListView();
     this.overlayPopupElement     = this.CreateOverlayPopupElement();
     this.suggestedActionsElement = this.CreateSuggestedActionsElement();
     this.inputTextBox            = this.CreateInputTextBox();
     this.toolbarElement          = this.CreateToolbarElement();
     this.typingIndicator         = this.CreateTypingIndicatorElement();
     this.showToolbarButton       = this.CreateShowToolbarButton();
     this.sendButton = this.CreateSendButton();
     this.inputTextBox.ButtonsStack.Children.Add((RadElement)this.showToolbarButton);
     this.inputTextBox.ButtonsStack.Children.Add((RadElement)this.sendButton);
     this.stack.Children.Add((RadElement)this.messagesViewElement);
     this.stack.Children.Add((RadElement)this.overlayPopupElement);
     this.stack.Children.Add((RadElement)this.suggestedActionsElement);
     this.stack.Children.Add((RadElement)this.typingIndicator);
     this.stack.Children.Add((RadElement)this.inputTextBox);
     this.stack.Children.Add((RadElement)this.toolbarElement);
     this.Children.Add((RadElement)this.stack);
     this.overlayElement            = new LightVisualElement();
     this.overlayElement.Visibility = ElementVisibility.Collapsed;
     this.Children.Add((RadElement)this.overlayElement);
 }
예제 #7
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();

            this.openFileDialog = new OpenFileDialog();

            this.stack                          = new StackLayoutElement();
            this.stack.Orientation              = Orientation.Horizontal;
            this.stack.StretchVertically        = true;
            this.stack.FitInAvailableSize       = true;
            this.stack.StretchHorizontally      = true;
            this.stack.ShouldHandleMouseInput   = false;
            this.stack.NotifyParentOnMouseInput = true;
            this.stack.ElementSpacing           = 1;

            this.filePathTextBox      = this.CreateFilePathTextBoxElement();
            this.openFileDialogButton = this.CreateOpenFileDialogButtonElement();

            this.stack.Children.Add(this.filePathTextBox);
            this.stack.Children.Add(this.openFileDialogButton);

            this.Children.Add(this.stack);

            this.WireEvents();
        }
예제 #8
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.captionText               = new TextPrimitive();
            this.captionText.Class         = "TitleCaption";
            this.captionText.TextAlignment = ContentAlignment.MiddleCenter;
            int num1 = (int)this.captionText.SetValue(RibbonBarCaptionLayoutPanel.CaptionTextProperty, (object)true);
            int num2 = (int)this.captionText.BindProperty(TextPrimitive.TextProperty, (RadObject)this, RadItem.TextProperty, PropertyBindingOptions.OneWay);

            this.ribbonTextAndContextGroupPanel = new RibbonBarCaptionLayoutPanel();
            this.ribbonTextAndContextGroupPanel.Children.Add((RadElement)this.captionText);
            this.Children.Add((RadElement)this.ribbonTextAndContextGroupPanel);
            this.systemButtons                     = new StackLayoutElement();
            this.systemButtons.Orientation         = Orientation.Horizontal;
            this.systemButtons.StretchHorizontally = false;
            this.systemButtons.StretchVertically   = true;
            this.systemButtons.FitInAvailableSize  = true;
            this.systemButtons.Class               = "SystemButtonsContainer";
            this.Children.Add((RadElement)this.systemButtons);
            this.helpButton = new RadImageButtonElement();
            this.helpButton.StateManager            = new RibbonBarSystemButtonStateManager().StateManagerInstance;
            this.helpButton.ThemeRole               = "RibbonHelpButton";
            this.helpButton.Class                   = "HelpButton";
            this.helpButton.Click                  += new EventHandler(this.OnHelpButtonClick);
            this.helpButton.ButtonFillElement.Class = "CaptionButtonFill";
            this.helpButton.BorderElement.Class     = "CaptionButtonBorder";
            this.helpButton.StretchHorizontally     = false;
            this.helpButton.Visibility              = ElementVisibility.Collapsed;
            this.systemButtons.Children.Add((RadElement)this.helpButton);
            this.minimizeButton = new RadImageButtonElement();
            this.minimizeButton.StateManager            = new RibbonBarSystemButtonStateManager().StateManagerInstance;
            this.minimizeButton.ThemeRole               = "RibbonMinimizeButton";
            this.minimizeButton.Class                   = "MinimizeButton";
            this.minimizeButton.Image                   = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.ribbon_minimize;
            this.minimizeButton.Click                  += new EventHandler(this.OnMinimize);
            this.minimizeButton.ButtonFillElement.Class = "CaptionButtonFill";
            this.minimizeButton.BorderElement.Class     = "CaptionButtonBorder";
            this.minimizeButton.StretchHorizontally     = false;
            this.systemButtons.Children.Add((RadElement)this.minimizeButton);
            this.maximizeButton = new RadImageButtonElement();
            this.maximizeButton.StateManager            = new RibbonBarSystemButtonStateManager().StateManagerInstance;
            this.maximizeButton.ThemeRole               = "RibbonMaximizeButton";
            this.maximizeButton.Class                   = "MaximizeButton";
            this.maximizeButton.Image                   = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.ribbon_maximize;
            this.maximizeButton.Click                  += new EventHandler(this.OnMaximizeRestore);
            this.maximizeButton.ButtonFillElement.Class = "CaptionButtonFill";
            this.maximizeButton.BorderElement.Class     = "CaptionButtonBorder";
            this.maximizeButton.StretchHorizontally     = false;
            this.systemButtons.Children.Add((RadElement)this.maximizeButton);
            this.closeButton = new RadImageButtonElement();
            this.closeButton.StateManager            = new RibbonBarSystemButtonStateManager().StateManagerInstance;
            this.closeButton.ThemeRole               = "RibbonCloseButton";
            this.closeButton.Class                   = "CloseButton";
            this.closeButton.Image                   = (Image)Telerik\u002EWinControls\u002EUI\u002EResources.ribbon_close;
            this.closeButton.Click                  += new EventHandler(this.OnClose);
            this.closeButton.ButtonFillElement.Class = "CaptionButtonFill";
            this.closeButton.BorderElement.Class     = "CaptionButtonBorder";
            this.closeButton.StretchHorizontally     = false;
            this.systemButtons.Children.Add((RadElement)this.closeButton);
        }
예제 #9
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.Class                                        = nameof(DescriptionTextListVisualItem);
            this.DrawText                                     = true;
            this.Text                                         = string.Empty;
            this.ClipDrawing                                  = true;
            this.horizontalStackLayout                        = new StackLayoutElement();
            this.horizontalStackLayout.Orientation            = Orientation.Horizontal;
            this.horizontalStackLayout.StretchHorizontally    = true;
            this.horizontalStackLayout.StretchVertically      = true;
            this.horizontalStackLayout.ShouldHandleMouseInput = false;
            this.Children.Add((RadElement)this.horizontalStackLayout);
            this.imageContent                     = new LightVisualElement();
            this.imageContent.DrawText            = false;
            this.imageContent.StretchVertically   = true;
            this.imageContent.StretchHorizontally = false;
            this.imageContent.ImageLayout         = ImageLayout.None;
            this.imageContent.ImageAlignment      = ContentAlignment.MiddleCenter;
            int num1 = (int)this.imageContent.BindProperty(LightVisualElement.ImageAlignmentProperty, (RadObject)this, LightVisualElement.ImageAlignmentProperty, PropertyBindingOptions.OneWay);

            this.imageContent.Class = "ImageContent";
            this.imageContent.ShouldHandleMouseInput = false;
            this.horizontalStackLayout.Children.Add((RadElement)this.imageContent);
            this.verticalStackLayout                        = new StackLayoutElement();
            this.verticalStackLayout.Orientation            = Orientation.Vertical;
            this.verticalStackLayout.StretchHorizontally    = true;
            this.verticalStackLayout.StretchVertically      = false;
            this.verticalStackLayout.ShouldHandleMouseInput = false;
            this.horizontalStackLayout.Children.Add((RadElement)this.verticalStackLayout);
            this.mainContent = new LightVisualElement();
            this.mainContent.StretchVertically        = false;
            this.mainContent.TextAlignment            = ContentAlignment.MiddleLeft;
            this.mainContent.NotifyParentOnMouseInput = true;
            this.mainContent.TextWrap = true;
            this.mainContent.Class    = "MainContent";
            this.mainContent.ShouldHandleMouseInput = false;
            this.verticalStackLayout.Children.Add((RadElement)this.mainContent);
            this.separator = new LinePrimitive();
            this.separator.NotifyParentOnMouseInput = true;
            this.separator.StretchHorizontally      = true;
            this.separator.StretchVertically        = false;
            this.separator.ShouldHandleMouseInput   = false;
            this.verticalStackLayout.Children.Add((RadElement)this.separator);
            this.descriptionContent = new DescriptionContentListVisualItem();
            this.descriptionContent.TextAlignment            = ContentAlignment.MiddleLeft;
            this.descriptionContent.ForeColor                = Color.FromArgb((int)byte.MaxValue, 128, 128, 128);
            this.descriptionContent.NotifyParentOnMouseInput = true;
            this.descriptionContent.ShouldHandleMouseInput   = false;
            this.descriptionContent.TextWrap = true;
            this.descriptionContent.Class    = "DescriptionContent";
            int num2 = (int)this.descriptionContent.BindProperty(DescriptionContentListVisualItem.ActiveProperty, (RadObject)this, RadListVisualItem.ActiveProperty, PropertyBindingOptions.OneWay);
            int num3 = (int)this.descriptionContent.BindProperty(DescriptionContentListVisualItem.SelectedProperty, (RadObject)this, RadListVisualItem.SelectedProperty, PropertyBindingOptions.OneWay);
            int num4 = (int)this.descriptionContent.BindProperty(RadElement.ContainsMouseProperty, (RadObject)this, RadElement.ContainsMouseProperty, PropertyBindingOptions.OneWay);

            this.verticalStackLayout.Children.Add((RadElement)this.descriptionContent);
            RadListVisualItem.SynchronizationProperties.Add(DescriptionTextListVisualItem.DescriptionFontProperty);
        }
예제 #10
0
        protected virtual StackLayoutElement CreateTotalStackElement()
        {
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.Orientation            = Orientation.Horizontal;
            stackLayoutElement.StretchHorizontally    = true;
            stackLayoutElement.ShouldHandleMouseInput = false;
            return(stackLayoutElement);
        }
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.stack                     = new StackLayoutElement();
     this.stack.Orientation         = Orientation.Vertical;
     this.stack.StretchHorizontally = true;
     this.stack.StretchVertically   = true;
     this.Children.Add((RadElement)this.stack);
 }
        protected virtual StackLayoutElement CraeteTopCommandsStackElement()
        {
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.Orientation         = Orientation.Horizontal;
            stackLayoutElement.StretchHorizontally = false;
            stackLayoutElement.StretchVertically   = false;
            return(stackLayoutElement);
        }
예제 #13
0
        protected virtual StackLayoutElement CreateStackLayoutElement()
        {
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.FitInAvailableSize  = true;
            stackLayoutElement.Orientation         = Orientation.Vertical;
            stackLayoutElement.StretchHorizontally = true;
            stackLayoutElement.StretchVertically   = true;
            return(stackLayoutElement);
        }
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.topCommandsStackElement = this.CraeteTopCommandsStackElement();
     this.commandsStackViewport   = this.CreateCommandsStackViewport();
     this.scrollViewer            = this.CreateScrollViewer();
     this.commandsStackViewport.Children.Add((RadElement)this.topCommandsStackElement);
     this.scrollViewer.Viewport = (RadElement)this.commandsStackViewport;
     this.Children.Add((RadElement)this.scrollViewer);
     this.CreateTopCommands();
     this.CreateCommands();
 }
예제 #15
0
        protected virtual RadPopupControlBase CreatePopup()
        {
            RadPopupControlBase popupControlBase = new RadPopupControlBase((RadElement)this);

            this.popupStack = this.CreatePopupStack();
            popupControlBase.RootElement.Children.Add((RadElement)this.popupStack);
            popupControlBase.AnimationEnabled           = true;
            popupControlBase.DropDownAnimationDirection = RadDirection.Right;
            popupControlBase.AnimationType = PopupAnimationTypes.Easing;
            popupControlBase.PopupClosing += new RadPopupClosingEventHandler(this.Popup_PopupClosing);
            return(popupControlBase);
        }
예제 #16
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.CreateCloseButton();
     this.CreatePinButton();
     this.buttonsPanel                = new StackLayoutElement();
     this.buttonsPanel.Orientation    = Orientation.Horizontal;
     this.buttonsPanel.ElementSpacing = 3;
     this.buttonsPanel.Children.Add((RadElement)this.pinButton);
     this.buttonsPanel.Children.Add((RadElement)this.closeButton);
     this.Children.Add((RadElement)this.buttonsPanel);
 }
예제 #17
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.buttonsLayout                    = new StackLayoutElement();
     this.buttonsLayout.Alignment          = ContentAlignment.MiddleRight;
     this.buttonsLayout.FitInAvailableSize = true;
     this.errorIndicator                   = new PropertyGridErrorIndicatorElement();
     this.buttonsLayout.Children.Add((RadElement)this.errorIndicator);
     this.propertyValueButton        = new PropertyValueButtonElement();
     this.propertyValueButton.Click += new EventHandler(this.propertyValueButton_Click);
     this.buttonsLayout.Children.Add((RadElement)this.propertyValueButton);
     this.Children.Add((RadElement)this.buttonsLayout);
 }
예제 #18
0
 protected override void DisposeManagedResources()
 {
     base.DisposeManagedResources();
     this.DisposeLinks();
     this.UnbindRowProperties();
     if (this.DataCell == null || this.stackLayoutElement.IsDisposed)
     {
         return;
     }
     this.DataCell.Children.Remove((RadElement)this.stackLayoutElement);
     this.stackLayoutElement.Dispose();
     this.stackLayoutElement = (StackLayoutElement)null;
     this.expander           = (GridTreeExpanderItem)null;
 }
예제 #19
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.scrollableRows = new ScrollableVirtualRowsContainer();
     this.Children.Add((RadElement)this.scrollableRows);
     this.topPinnedRows                = new StackLayoutElement();
     this.topPinnedRows.Orientation    = Orientation.Vertical;
     this.topPinnedRows.ElementSpacing = -1;
     this.Children.Add((RadElement)this.topPinnedRows);
     this.bottomPinnedRows                = new StackLayoutElement();
     this.bottomPinnedRows.Orientation    = Orientation.Vertical;
     this.bottomPinnedRows.ElementSpacing = -1;
     this.Children.Add((RadElement)this.bottomPinnedRows);
 }
예제 #20
0
        public SelfReferenceCellLayout(GridRowElement rowElement)
        {
            this.rowElement         = rowElement;
            this.hierarchyLinks     = new List <GridLinkItem>();
            this.linksCache         = new List <GridLinkItem>();
            this.stackLayoutElement = new StackLayoutElement();
            this.stackLayoutElement.StretchVertically   = true;
            this.stackLayoutElement.StretchHorizontally = true;
            int num = (int)this.stackLayoutElement.SetDefaultValueOverride(RadElement.FitToSizeModeProperty, (object)RadFitToSizeMode.FitToParentBounds);

            this.expander                   = new GridTreeExpanderItem(rowElement.TableElement);
            this.expander.ThemeRole         = "SelfReferencingExpander";
            this.expander.StretchVertically = true;
            this.stackLayoutElement.Children.Add((RadElement)this.expander);
            this.BindRowProperties();
        }
예제 #21
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.converter = TypeDescriptor.GetConverter(typeof(Color));
     this.stack     = new StackLayoutElement();
     this.stack.StretchHorizontally = true;
     this.stack.StretchVertically   = true;
     this.stack.Class = "ColorBoxLayout";
     this.stack.FitInAvailableSize     = true;
     this.stack.ShouldHandleMouseInput = false;
     this.Children.Add((RadElement)this.stack);
     this.colorBox          = this.CreateColorBoxElement();
     this.colorDialog       = this.CreateColorDialog();
     this.colorPickerButton = this.CreateColorPickerButtonElement();
     this.WireEvents();
 }
예제 #22
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.descriptionContent = new LightVisualElement();
     this.descriptionContent.TextAlignment     = ContentAlignment.MiddleLeft;
     this.descriptionContent.TextWrap          = true;
     this.descriptionContent.StretchVertically = true;
     this.verticalStack                    = new StackLayoutElement();
     this.verticalStack.Alignment          = ContentAlignment.MiddleLeft;
     this.verticalStack.FitInAvailableSize = true;
     this.verticalStack.Orientation        = Orientation.Vertical;
     this.verticalStack.Children.Add((RadElement)this.Label);
     this.verticalStack.Children.Add((RadElement)this.descriptionContent);
     this.descriptionContent.ForeColor = Color.Gray;
     this.StackLayout.Children.Add((RadElement)this.verticalStack);
 }
예제 #23
0
 public VirtualGridRowElement()
 {
     this.leftPinnedColumns = this.CreateLeftPinnedColumnsContainer();
     this.leftPinnedColumns.StretchVertically = true;
     this.leftPinnedColumns.ElementSpacing    = -1;
     this.Children.Add((RadElement)this.leftPinnedColumns);
     this.rightPinnedColumns = this.CreateRightPinnedColumnsContainer();
     this.rightPinnedColumns.StretchVertically = true;
     this.rightPinnedColumns.ElementSpacing    = -1;
     this.Children.Add((RadElement)this.rightPinnedColumns);
     this.scrollableColumns            = this.CreateScrollableColumnsContainer();
     this.scrollableColumns.RowElement = this;
     this.Children.Add((RadElement)this.scrollableColumns);
     this.detailsElement            = this.CreateDetailViewCellElementContainer();
     this.detailsElement.Visibility = ElementVisibility.Collapsed;
     this.Children.Add((RadElement)this.detailsElement);
     this.HotTracking = false;
 }
예제 #24
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.buttonOk      = new RadButtonElement();
            this.buttonOk.Text = LocalizationProvider <RadGridLocalizationProvider> .CurrentProvider.GetLocalizedString("FilterMenuButtonOK");

            this.buttonOk.Padding  = new Padding(20, 0, 20, 0);
            this.buttonCancel      = new RadButtonElement();
            this.buttonCancel.Text = LocalizationProvider <RadGridLocalizationProvider> .CurrentProvider.GetLocalizedString("FilterMenuButtonCancel");

            this.buttonCancel.Margin  = new Padding(2, 0, 2, 0);
            this.buttonCancel.Padding = new Padding(10, 0, 10, 0);
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.Alignment = ContentAlignment.MiddleRight;
            stackLayoutElement.Children.Add((RadElement)this.buttonOk);
            stackLayoutElement.Children.Add((RadElement)this.buttonCancel);
            this.Children.Add((RadElement)stackLayoutElement);
        }
예제 #25
0
 protected override void CreateChildElements()
 {
     this.textElement                        = new PropertyGridGroupTextElement();
     this.expanderElement                    = new PropertyGridGroupExpanderElement();
     this.stack                              = new StackLayoutElement();
     this.stack.FitInAvailableSize           = true;
     this.stack.StretchHorizontally          = true;
     this.stack.StretchVertically            = true;
     this.stack.NotifyParentOnMouseInput     = true;
     this.stack.ShouldHandleMouseInput       = false;
     this.stack.FitToSizeMode                = RadFitToSizeMode.FitToParentBounds;
     this.textElement.DrawBorder             = true;
     this.textElement.DrawFill               = true;
     this.textElement.TextAlignment          = ContentAlignment.MiddleLeft;
     this.expanderElement.ExpanderItem.Class = "PropertyGridGroupExpanderItem";
     this.stack.Children.Add((RadElement)this.expanderElement);
     this.stack.Children.Add((RadElement)this.textElement);
     this.Children.Add((RadElement)this.stack);
 }
예제 #26
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.scrollViewer = new RadScrollViewer();
            this.scrollViewer.StretchHorizontally = true;
            this.scrollViewer.StretchVertically   = true;
            this.scrollViewer.ShowBorder          = false;
            this.scrollViewer.ShowFill            = false;
            this.Children.Add((RadElement)this.scrollViewer);
            this.panel                     = new StackLayoutElement();
            this.panel.Orientation         = Orientation.Vertical;
            this.panel.StretchHorizontally = true;
            this.panel.StretchVertically   = true;
            LightVisualElement lightVisualElement = new LightVisualElement();

            lightVisualElement.Children.Add((RadElement)this.panel);
            this.scrollViewer.Viewport = (RadElement)lightVisualElement;
            this.filterTextBox         = this.CreateFilterTextBox();
            this.Children.Add((RadElement)this.filterTextBox);
        }
예제 #27
0
 protected override void CreateChildElements()
 {
     this.stack = new StackLayoutElement();
     this.stack.FitInAvailableSize       = true;
     this.stack.StretchHorizontally      = true;
     this.stack.StretchVertically        = true;
     this.stack.NotifyParentOnMouseInput = true;
     this.stack.ShouldHandleMouseInput   = false;
     this.stack.FitToSizeMode            = RadFitToSizeMode.FitToParentBounds;
     this.headerElement   = this.CreatePropertyGridRowHeaderElement();
     this.indentElement   = this.CreatePropertyGridIndentElement();
     this.expanderElement = this.CreatePropertyGridExpanderElement();
     this.textElement     = this.CreatePropertyGridTextElement();
     this.valueElement    = this.CreatePropertyGridValueElement();
     this.stack.Children.Add((RadElement)this.headerElement);
     this.stack.Children.Add((RadElement)this.indentElement);
     this.stack.Children.Add((RadElement)this.expanderElement);
     this.stack.Children.Add((RadElement)this.textElement);
     this.stack.Children.Add((RadElement)this.valueElement);
     this.Children.Add((RadElement)this.stack);
 }
예제 #28
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.colorBox                           = new ColorEditorColorBox();
            this.contentElement                     = new PropertyGridContentElement();
            this.contentElement.DrawBorder          = false;
            this.contentElement.DrawFill            = false;
            this.contentElement.DrawText            = true;
            this.contentElement.StretchHorizontally = true;
            StackLayoutElement stackLayoutElement = new StackLayoutElement();

            stackLayoutElement.Orientation        = Orientation.Horizontal;
            stackLayoutElement.FitInAvailableSize = true;
            stackLayoutElement.AutoSizeMode       = RadAutoSizeMode.FitToAvailableSize;
            stackLayoutElement.Padding            = new Padding(3);
            stackLayoutElement.Alignment          = ContentAlignment.MiddleLeft;
            stackLayoutElement.Children.Add((RadElement)this.colorBox);
            stackLayoutElement.Children.Add((RadElement)this.contentElement);
            this.ValueElement.Children.Add((RadElement)stackLayoutElement);
            this.ValueElement.DrawText = false;
        }
예제 #29
0
        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.fillPrimitive = new FillPrimitive();
            int num = (int)this.fillPrimitive.BindProperty(RadElement.AutoSizeModeProperty, (RadObject)this, RadElement.AutoSizeModeProperty, PropertyBindingOptions.TwoWay);

            this.fillPrimitive.Class  = "TimePickerFill";
            this.fillPrimitive.ZIndex = -1;
            this.Children.Add((RadElement)this.fillPrimitive);
            this.borderPrimitive       = new BorderPrimitive();
            this.borderPrimitive.Class = "TimePickerBorder";
            this.Children.Add((RadElement)this.borderPrimitive);
            this.layout = new StackLayoutElement();
            this.layout.StretchHorizontally = true;
            this.layout.StretchVertically   = true;
            this.layout.Class = "TimePickerLayout";
            this.layout.FitInAvailableSize = true;
            this.Children.Add((RadElement)this.layout);
            this.CreateTextEditorElement();
            this.CreateArrowButtonElement();
            this.CreateSpinButtons();
        }
예제 #30
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.stackElement              = this.CreateStackElement();
     this.passengerElement          = this.CreatePassengerElement();
     this.nameElement               = this.CreateNameElement();
     this.topHorizontalStackElement = this.CreateTopHorizontalStackElement();
     this.departureElement          = this.CreateDepartureElement();
     this.arrivalElement            = this.CreateArrivalElement();
     this.totalStackElement         = this.CreateTotalStackElement();
     this.totalElement              = this.CreateTotalElement();
     this.totalSumElement           = this.CreateTotalSumElement();
     this.topHorizontalStackElement.Children.Add((RadElement)this.departureElement);
     this.topHorizontalStackElement.Children.Add((RadElement)this.arrivalElement);
     this.totalStackElement.Children.Add((RadElement)this.totalElement);
     this.totalStackElement.Children.Add((RadElement)this.totalSumElement);
     this.stackElement.Children.Add((RadElement)this.passengerElement);
     this.stackElement.Children.Add((RadElement)this.nameElement);
     this.stackElement.Children.Add((RadElement)this.topHorizontalStackElement);
     this.stackElement.Children.Add((RadElement)this.totalStackElement);
     this.Children.Add((RadElement)this.stackElement);
 }