What is dock element command? The button icons that are located in the top right corner of the dock control title bar are the visual displaying format of the dock commands. And by clicking these command icons, users can perform some functions toward the PerDock Control. How to Add Built-in Commands in C# Code
The built-in commands refer to those default commands which will conduct some functions without any external programming. In this section, we will introduce several supported built-in dock commands.
Here we attach a programming example which aims to show you how to use one of these supported built-in commands in C# .NET code. PerDock1.DefaultCommands = DefaultCommands.Close | DefaultCommands.ExpandCollapse; How to Use Custom Commands in C# Code
If above built-in commands can not meet your needs, you can add your own command to the dock title bar by using the Command property. Following sample code will show you how to add custom command to the PerDock control. C# CodeDockCommand customCommand = new DockCommand(); Javascript Code<script type="text/javascript"> Related Dock Element Tutorials
Apart from this tutorial page for explaining the dock element command, we also provide developers detailed C# programming guidance on how to customize the settings of another important dock element zone. | ![]() ASP.NET AJAX UI Controls ASP.NET AJAX Chart UI Control ASP.NET AJAX Grid UI Control ASP.NET AJAX Barcode UI Control ASP.NET AJAX Button UI Control ASP.NET AJAX Calendar UI Control ASP.NET AJAX NavigationBar UI Control ASP.NET AJAX Captcha UI Control ASP.NET AJAX Color Editor UI Control ASP.NET AJAX ComboBox UI Control ASP.NET AJAX DataPager UI Control ASP.NET AJAX Dock UI Control OverviewGetting StartedElement ZonesCommandsTemplates TemplatesClient Prpgramming Dock EventServer Programming Dock EventASP.NET AJAX DropDownList UI Control ASP.NET AJAX DropDownTree UI Control ASP.NET AJAX HtmlEditor UI Control ASP.NET AJAX FileManager UI Control ASP.NET AJAX Filter UI Control ASP.NET AJAX Input UI Control ASP.NET AJAX ListBox UI Control ASP.NET AJAX ListView UI Control ASP.NET AJAX ToolBar UI Control ASP.NET AJAX TabControl UI Control ASP.NET AJAX Menu UI Control ASP.NET AJAX ToolTip UI Control |