任務欄助手
任務欄助手組件允許您自定義顯示在Windows任務欄中的應用程序按鈕,還可以創建自定義跳轉列表(當您右鍵單擊任務欄按鈕時),向跳轉列表添加命令類別,在縮略圖預覽中向工具欄添加按鈕,并顯示進度條和覆蓋圖標。
 
 
任務欄跳轉列表
跳轉列表可以包含以下UI元素:
- 通用應用命令。
- 帶有自定義命令的 Tasks類別。
- Frequent或Recent 類別包含Windows shell管理的最近使用的文件。
- 帶有自定義命令的自定義類別。
當您將鼠標懸停在應用程序任務欄按鈕上時,任務欄助手將顯示一個實時縮略圖預覽。預覽窗口可以包含一個工具欄,在預覽圖像下方最多有七個按鈕(見下面的截圖)。
aqhozdv9wqptd954.png) 
 
任務類別
任務欄助手組件附帶集成到Visual Studio IDE中的 Task Category集合編輯器,集合編輯器允許輕松地創建和自定義任務以及重新排序或刪除現有任務。
 
 
使用JumpListTasksCategory屬性來訪問和管理代碼中Tasks類別中顯示的項(任務)。
C#:
using DevExpress.Utils.Taskbar; using DevExpress.Utils.Taskbar.Core; taskbarAssistant1.BeginUpdate(); // Creates a task. JumpListItemTask task = new JumpListItemTask(); task.Caption = "DevExpress Universal Subscription"; task.Description = "Our most comprehensive software development package."; task.Path = "http://www.devexpress.com/subscriptions/universal.xml"; task.ShowCommand = WindowShowCommand.Show; // Adds the task to the Tasks category. taskbarAssistant1.JumpListTasksCategory.Add(task); taskbarAssistant1.EndUpdate();
VB.NET :
Imports DevExpress.Utils.Taskbar Imports DevExpress.Utils.Taskbar.Core taskbarAssistant1.BeginUpdate() ' Creates a task. Dim task As New JumpListItemTask() task.Caption = "DevExpress Universal Subscription" task.Description = "Our most comprehensive software development package." task.Path = "http://www.devexpress.com/subscriptions/universal.xml" task.ShowCommand = WindowShowCommand.Show ' Adds the task to the Tasks category. taskbarAssistant1.JumpListTasksCategory.Add(task) taskbarAssistant1.EndUpdate()
自定義類別
任務欄助手還可以顯示多個自定義類別,使用其Jump List Editor在設計時創建帶有自定義任務的自定義類別。
 
 
使用JumpListCustomCategories屬性在代碼中訪問具有自定義類別的集合。
C#:
using DevExpress.Utils.Taskbar;
using DevExpress.Utils.Taskbar.Core;
taskbarAssistant1.BeginUpdate();
// Creates a custom category.
JumpListCategory jumpListCategory = new JumpListCategory("Become a UI Superhero");
// Creates a new task.
JumpListItemTask task = new JumpListItemTask();
task.Caption = "DevExpress Universal Subscription";
task.Description = "Our most comprehensive software development package.";
task.Path = "http://www.devexpress.com/subscriptions/universal.xml";
task.ShowCommand = DevExpress.Utils.Taskbar.Core.WindowShowCommand.Show;
// Adds the task to the custom category.
jumpListCategory.JumpItems.Add(task);
// Adds the custom category to the 'JumpListCustomCategories' collection.
taskbarAssistant1.JumpListCustomCategories.Add(jumpListCategory);
taskbarAssistant1.EndUpdate();
VB.NET :
Imports DevExpress.Utils.Taskbar
Imports DevExpress.Utils.Taskbar.Core
taskbarAssistant1.BeginUpdate()
' Creates a custom category.
Dim jumpListCategory As New JumpListCategory("Become a UI Superhero")
' Creates a new task.
Dim task As New JumpListItemTask()
task.Caption = "DevExpress Universal Subscription"
task.Description = "Our most comprehensive software development package."
task.Path = "http://www.devexpress.com/subscriptions/universal.xml"
task.ShowCommand = DevExpress.Utils.Taskbar.Core.WindowShowCommand.Show
' Adds the task to the custom category.
jumpListCategory.JumpItems.Add(task)
' Adds the custom category to the 'JumpListCustomCategories' collection.
taskbarAssistant1.JumpListCustomCategories.Add(jumpListCategory)
taskbarAssistant1.EndUpdate()
縮略圖預覽按鈕
任務欄助手可以顯示縮略圖按鈕,使用ThumbnailButtons屬性來訪問和管理縮略圖按鈕,處理Click事件來響應按鈕單擊。
 
 
進度提示
任務欄助手可以傳達應用程序狀態,并顯示數據密集型操作的反饋,使用ProgressMode屬性指定進度可視化的類型。
使用ProgressCurrentValue和ProgressMaximumValue屬性來配置進度指示。
顯示疊加圖標
OverlayIcon屬性指定一個覆蓋圖標,任務欄助手在應用程序圖標上顯示疊加圖標。
 
 

 QQ交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網安備
            50010702500608號
渝公網安備
            50010702500608號
             
            
 客服熱線
客服熱線