protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.minValue                                        = new DateTime(DateTime.MinValue.Year, DateTime.MinValue.Month, DateTime.MinValue.Day, 0, 0, 0);
            this.maxValue                                        = new DateTime(DateTime.MaxValue.Year, DateTime.MaxValue.Month, DateTime.MaxValue.Day, 23, 59, 59);
            this.containerHours                                  = new TimeTableElementHours();
            this.containerHours.Class                            = "TimePickerContainerHours";
            this.containerHours.StretchVertically                = false;
            this.containerHours.ContentElement.Class             = "TimePickerContainerHoursContent";
            this.containerHours.ContentElement.StretchVertically = false;
            this.containerHours.TableHeader.Class                = "TimePickerContainerHoursHeader";
            int num1 = (int)this.containerHours.ContentElement.BindProperty(RadElement.PaddingProperty, (RadObject)this, RadElement.PaddingProperty, PropertyBindingOptions.TwoWay);

            this.buttonPanel                           = new TimePickerDoneButtonElement(this);
            this.containerMinutes                      = new TimeTableElement();
            this.containerMinutes.Class                = "TimePickerContainerMinutes";
            this.containerMinutes.StretchVertically    = true;
            this.containerMinutes.ContentElement.Class = "TimePickerContainerMinutesContent";
            this.containerMinutes.TableHeader.Class    = "TimePickerContainerMinutesHeader";
            int num2 = (int)this.containerMinutes.ContentElement.BindProperty(RadElement.PaddingProperty, (RadObject)this, RadElement.PaddingProperty, PropertyBindingOptions.TwoWay);

            this.twoTablesStack       = new TimeTableStackLayoutElement();
            this.twoTablesStack.Class = "TimePickerHourAndMinustesTablesStack";
            this.twoTablesStack.FitInAvailableSize  = true;
            this.twoTablesStack.Orientation         = Orientation.Vertical;
            this.twoTablesStack.StretchVertically   = true;
            this.twoTablesStack.StretchHorizontally = true;
            this.twoTablesStack.Children.Add((RadElement)this.containerHours);
            this.twoTablesStack.Children.Add((RadElement)this.containerMinutes);
            this.clockStack                             = new StackLayoutElement();
            this.clockStack.Orientation                 = Orientation.Vertical;
            this.clockStack.StretchHorizontally         = false;
            this.clockStack.StretchVertically           = true;
            this.clockStack.Class                       = "TimePickerClockStack";
            this.clockHeaderElement                     = new LightVisualElement();
            this.clockHeaderElement.Class               = "ClockHeaderElement";
            this.clockHeaderElement.Text                = " ";
            this.clockHeaderElement.StretchHorizontally = true;
            this.clockHeaderElement.StretchVertically   = false;
            this.clockStack.Children.Add((RadElement)this.clockHeaderElement);
            this.clockElement = new RadClockElement();
            this.clockElement.StretchVertically = true;
            this.clockElement.ShowSystemTime    = false;
            this.clockElement.Alignment         = ContentAlignment.MiddleCenter;
            this.clockStack.Children.Add((RadElement)this.clockElement);
            this.clockAndTablesStack       = new StackLayoutElement();
            this.clockAndTablesStack.Class = "TimePickerClockAndTablesStack";
            this.clockAndTablesStack.FitInAvailableSize  = true;
            this.clockAndTablesStack.StretchHorizontally = true;
            this.clockAndTablesStack.StretchVertically   = true;
            this.clockAndTablesStack.Children.Add((RadElement)this.clockStack);
            this.clockAndTablesStack.Children.Add((RadElement)this.twoTablesStack);
            this.mainStack = (StackLayoutElement) new TimeTableStackLayoutElement();
            this.mainStack.FitInAvailableSize  = false;
            this.mainStack.StretchVertically   = true;
            this.mainStack.StretchHorizontally = true;
            this.mainStack.Orientation         = Orientation.Vertical;
            this.mainStack.Children.Add((RadElement)this.clockAndTablesStack);
            this.mainStack.Children.Add((RadElement)this.buttonPanel);
            this.Children.Add((RadElement)this.mainStack);
        }
示例#2
0
 protected override void CreateChildItems(RadElement parent)
 {
     base.CreateChildItems(parent);
     this.timePickerElement = new RadClockElement();
     parent.Children.Add((RadElement)this.timePickerElement);
 }