For more information, see Manage custom task panes in application windows.Īccess the application from the Task Pane
Codejock docking pane with ribbon code#
This makes it important to consider where to instantiate the custom task pane in your code to ensure that the task pane appears with the appropriate documents or items in the application. Some Office applications require explicit instructions for when to create or display your task pane when more than one window is open. To associate the task pane with a document that is hosted by a specified window, use the Add method. To associate the task pane with the active window, use the Add method. To determine which window displays the custom task pane, use the appropriate Add method overload when you create the task pane: The task pane is visible only when the associated window is visible. Control the task pane in multiple windowsĬustom task panes are associated with a document frame window, which presents a view of a document or item to the user. You can use this object to modify the appearance of the task pane and to respond to user events. The Add methods return a new CustomTaskPane object. M圜ustomTaskPane = (myUserControl1, "My Task Pane") M圜ustomTaskPane = Me.CustomTaskPanes.Add(myUserControl1, "My Task Pane") The following code example is intended to be run from the ThisAddIn class. This collection is exposed as the CustomTaskPanes field of the ThisAddIn class. To do this, pass the user control to the CustomTaskPaneCollection in your VSTO Add-in by calling one of the Add methods. Instantiate the custom task paneĪfter you create a user control that contains the user interface of the custom task pane, you have to instantiate a CustomTaskPane.
Codejock docking pane with ribbon windows#
If you create the user control at design time, you can use the Windows Forms Designer to construct the user interface of your task pane. You can create the user control at design time or at run time.
This user control provides the user interface of your custom task pane. This collection returns a new CustomTaskPane object that you can use to modify the appearance of the task pane and respond to user events.įor more information, see How to: Add a custom task pane to an application.Īll custom task panes that are created by using the Office development tools in Visual Studio contain a UserControl object. Instantiate the custom task pane by passing the user control to the CustomTaskPaneCollection object in your VSTO Add-in. You can create a basic custom task pane in two steps:Ĭreate a user interface for your custom task pane by adding Windows Forms controls to a UserControl object. You can also use the data binding support in Windows Forms to bind a data source to controls on the task pane. You can use the familiar Windows Forms Designer to design the user interface for a custom task pane.
The user interface of a custom task pane that you create by using the Office development tools in Visual Studio is based on Windows Forms controls. You can create a VSTO Add-in that displays multiple custom task panes at the same time, and users can control each task pane individually. Users can dock custom task panes to different sides of the application window, or they can drag custom task panes to any location in the window. Custom task panes behave like other task panes in the Microsoft Office system. Users of applications in the Microsoft Office system are already familiar with using task panes such as the Styles and Formatting task pane in Word. You can create a custom task pane quickly by using Visual Studio tools. Benefits of custom task panesĬustom task panes let you integrate your features into a familiar user interface. For more information, see Actions pane overview. The actions pane is part of document-level customizations for Microsoft Office Word and Microsoft Office Excel.
Shortcut Bar : Features include an expandable navigation bar, list of shortcuts, the ability to show and hide the panel, shortcut icons, title bar, support for Office and Windows themes, and more.A custom task pane differs from the actions pane. Report Control : Features include integrated field selector, virtual list mode, reusable layouts, multiple selection, tree view mode, office theme support, different cell types, column attributes, and more. Property Grid : Ability to use the integrated toolbar and Help panel, hierarchically editable list, local button controls, data sorting, composite lists, separator sizes, editing mask and… Calendar : Provides various options to choose from integrated time scales and date selector, multiple scheduling, calendar views daily and monthly, Microsoft Office and its custom theme support, various data formats including XML, MySQL, SQL Server and Outlook and moreĭocking Pane : Ability to use Visual Studio and Office Connection Panel, Visio Connected Style, Auto Hide Window, Pinnacle Panels, Drag and Drop Location, Cascading Panels and…