Ejemplo n.º 1
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.itemsLayout = new StackLayoutPanel();
     this.Children.Add((RadElement)this.itemsLayout);
     this.scrollBar               = new RadScrollBarElement();
     this.scrollBar.ScrollType    = ScrollType.Horizontal;
     this.scrollBar.ValueChanged += new EventHandler(this.scrollBar_ValueChanged);
     this.Children.Add((RadElement)this.scrollBar);
     this.scrollService = new ScrollService((RadElement)this, this.scrollBar);
     this.scrollService.EnableInertia = true;
 }
Ejemplo n.º 2
0
 protected override void CreateChildElements()
 {
     base.CreateChildElements();
     this.scrollBar               = new RadScrollBarElement();
     this.scrollBar.ZIndex        = 1000;
     this.scrollBar.ScrollType    = ScrollType.Horizontal;
     this.scrollBar.ValueChanged += new EventHandler(this.scrollBar_ValueChanged);
     this.Children.Add((RadElement)this.scrollBar);
     this.itemsLayout = new GridLayout();
     this.itemsLayout.StretchHorizontally = this.itemsLayout.StretchVertically = true;
     this.itemsLayout.RadPropertyChanged += new RadPropertyChangedEventHandler(this.layout_RadPropertyChanged);
     this.Children.Add((RadElement)this.itemsLayout);
     this.groupsLayout = new StackLayoutPanel();
     this.groupsLayout.RadPropertyChanged += new RadPropertyChangedEventHandler(this.layout_RadPropertyChanged);
     this.backgroundImage                     = new ImagePrimitive();
     this.backgroundImage.Class               = "PanoramaBackgroundImage";
     this.backgroundImage.ZIndex              = -5;
     this.backgroundImage.ImageLayout         = ImageLayout.Stretch;
     this.backgroundImage.StretchHorizontally = this.backgroundImage.StretchVertically = true;
     this.Children.Add((RadElement)this.backgroundImage);
     this.items = new RadItemOwnerCollection();
     this.items.ItemsChanged += new ItemChangedDelegate(this.items_ItemsChanged);
     this.items.ItemTypes     = new System.Type[2]
     {
         typeof(RadTileElement),
         typeof(RadLiveTileElement)
     };
     this.items.Owner      = (RadElement)this.itemsLayout;
     this.groups           = new RadItemOwnerCollection();
     this.groups.ItemTypes = new System.Type[1]
     {
         typeof(TileGroupElement)
     };
     this.groups.Owner                = (RadElement)this.groupsLayout;
     this.dragDropService             = (RadDragDropService) new TileDragDropService(this);
     this.scrollService               = new ScrollService((RadElement)this, this.scrollBar);
     this.scrollService.EnableInertia = true;
     this.AllowDrop = true;
 }
Ejemplo n.º 3
0
 public void Add(ScrollService scrollService)
 {
     this.list.Add(scrollService);
 }