The default Window control exposes an TaskbarItemInfo (https://msdn.microsoft.com/en-us/library/system.windows.window.taskbariteminfo%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396) which is useful for manipulating the taskbar item of the Window instance.
Hello Horvardson,
You can use the HostCreated event of RadWindow. In the event handler, you can get the Window control that hosts the RadWindow visual and set its TaskBarItemInfo property. For example:
private void RadWindow_HostCreated(object sender, HostWindowCreatedEventArgs e)
{
Window hostWindow = e.HostWindow;
hostWindow.TaskbarItemInfo = new System.Windows.Shell.TaskbarItemInfo()
{
Description = "some description here"
};
}
Regards,
Martin Ivanov
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
I was wondering, if there is any solution from Progress-Telerik. I just used a workaround for this:
In code behind file I made a property:
TaskbarItemInfo = new Lazy<TaskbarItemInfo>(() => { return System.Windows.Application.Current.MainWindow.TaskbarItemInfo = new TaskbarItemInfo(); });
Then in WorkerProgressChanged I set the states:
TaskbarItemInfo.Value.ProgressState = TaskbarItemProgressState.Normal;
TaskbarItemInfo.Value.ProgressValue = (double)progressUserState.Progress / 100;
This works for me. But I am wondering if there is an official solution for it?
Would be very useful!