Hi,
I want to place a arrow icon on Button which is on AutoHideArea, can any one of you please tell me how i can do this ?
i have attached ascreenshot in which i tried to illustrate the requirement.
Thanks in advance,
Srinivas.
I want to place a arrow icon on Button which is on AutoHideArea, can any one of you please tell me how i can do this ?
i have attached ascreenshot in which i tried to illustrate the requirement.
Thanks in advance,
Srinivas.
5 Answers, 1 is accepted
0
Hi Srinivas,
To show icon on RadPane's header you should use the HeaderTemplate property of the RadPane.
The attached example demonstrates the approach.
Hope this helps.
All the best,
Maria
the Telerik team
To show icon on RadPane's header you should use the HeaderTemplate property of the RadPane.
The attached example demonstrates the approach.
Hope this helps.
All the best,
Maria
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
0
Ravi
Top achievements
Rank 1
answered on 24 Sep 2012, 08:19 AM
Hi Maria,
Thank you for reply,
I want to add this icon in the autohide area style, so taht it will be available for all projects automatically.where i can edit the style for AutoHideArea ?
how i can doc the rad pane when i click on autohide area ? for example if i click on the Pane Left 1 the docpanel has to doc(Pinned).
by the help of another thread i was able to ovverride the mouse enter event of docpanel, but now i want to little bit enhance that behaviour, " i want to pinned the dockpanel when i clicked on the autohide area.
Can you please help me.
Thanks again.
Thank you for reply,
I want to add this icon in the autohide area style, so taht it will be available for all projects automatically.where i can edit the style for AutoHideArea ?
how i can doc the rad pane when i click on autohide area ? for example if i click on the Pane Left 1 the docpanel has to doc(Pinned).
by the help of another thread i was able to ovverride the mouse enter event of docpanel, but now i want to little bit enhance that behaviour, " i want to pinned the dockpanel when i clicked on the autohide area.
Can you please help me.
Thanks again.
0
Hi Srinivas,
I would suggest you to create a project for your resources that will be referenced by all of your projects. Inside it you can create a ResourceDictionary with an implicit style for your RadPanes. After this you can merge this dictionary into all of your projects so all your RadPanes will have the icon you want.
In order to achieve the pin functionality on click you will have to write custom code into your class that inherits RadPane.
All the best,
Ivo
the Telerik team
I would suggest you to create a project for your resources that will be referenced by all of your projects. Inside it you can create a ResourceDictionary with an implicit style for your RadPanes. After this you can merge this dictionary into all of your projects so all your RadPanes will have the icon you want.
In order to achieve the pin functionality on click you will have to write custom code into your class that inherits RadPane.
protected
override
void
OnMouseUp(System.Windows.Input.MouseButtonEventArgs e)
{
base
.OnMouseUp(e);
if
(!
this
.IsPinned)
{
this
.IsPinned =
true
;
}
}
All the best,
Ivo
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
0
Ravi
Top achievements
Rank 1
answered on 27 Sep 2012, 10:42 AM
Hi Ivo ,
Thanks for your precious reply, i appreciate you.
by the way the pin functionality is working fine,
i am trying to create/find the RadPane's unpinned(button which is on the autohide area)but un able see that in my expression blend.
Can you please tell me where i can see that template ?
please find the attached image for more information.
Regards,
Srinivas.
Thanks for your precious reply, i appreciate you.
by the way the pin functionality is working fine,
i am trying to create/find the RadPane's unpinned(button which is on the autohide area)but un able see that in my expression blend.
Can you please tell me where i can see that template ?
please find the attached image for more information.
Regards,
Srinivas.
0
Hi Srinivas,
You have to create a new project holding a implicit style targeting RadPanes that sets the RadPane's HeaderTemplate. After this you will have to merge this style in every project using RadDocking. You can find an example attached.
Kind regards,
Ivo
the Telerik team
You have to create a new project holding a implicit style targeting RadPanes that sets the RadPane's HeaderTemplate. After this you will have to merge this style in every project using RadDocking. You can find an example attached.
Kind regards,
Ivo
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.