how to pinned the radpane when clicking on Autohidearea.

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

    Posted 24 Sep 2012 Link to this post

    Hi,
    I have a requirement to pinned the RadPane when i clicked on AutoHideArea,( i have overrided the OnMourEnter of Radpane and changed the moueseenter event)
    public class CustomPane : RadPane
    {
    protected override void OnMouseEnter(System.Windows.Input.MouseEventArgs e)
    {
    this.ChangeVisualState(true);
                
    }
            
    now i want to pinned the CustomPane when i click on the auto hide area. can any one help me ? 

    I have attached a image please check for more information

    Thanks in Advance.
    Srinivas.
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 27 Sep 2012 Link to this post

    Hi Srinivas,

    In order to achieve this you can override the OnMouseUp event of your CustomPane and add some custom code:
    protected override void OnMouseUp(System.Windows.Input.MouseButtonEventArgs e)
    {
        base.OnMouseUp(e);
     
        if (!this.IsPinned)
        {
            this.IsPinned = true;
        }
    }

    I would also ask you to write about a single issue into a single thread. Posting the same question into several threads will only slow down our response.

    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.

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

    Posted 27 Sep 2012 Link to this post

    Hi Ivo ,

    Thank you so much for you help, i appreciate you..Its working. 

    Regards,
    Srinivas.


Back to Top