protected virtual RadStackViewport CreateCommandsStackViewport() { RadStackViewport radStackViewport = new RadStackViewport(); radStackViewport.Orientation = Orientation.Vertical; return(radStackViewport); }
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(); }