modifying the style or AutoHide area and placing a icon on button

6 posts, 0 answers
  1. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 24 Sep 2012 Link to this post

    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.
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 24 Sep 2012 Link to this post

    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

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 24 Sep 2012 Link to this post

    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.
     
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 27 Sep 2012 Link to this post

    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.
    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.

  6. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 27 Sep 2012 Link to this post

    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.

  7. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 02 Oct 2012 Link to this post

    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

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready