Hide/Disable close button?

5 posts, 0 answers
  1. Chris
    Chris avatar
    66 posts
    Member since:
    Sep 2008

    Posted 14 Sep 2008 Link to this post

    Is there a way to hide or disable the close button?
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 15 Sep 2008 Link to this post

    Hi Chris,

    The close button is always visible - you can remove it by modifying the control template if you need to.

    All the best,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dan
    Dan avatar
    9 posts
    Member since:
    Oct 2008

    Posted 23 Oct 2008 Link to this post

    Can you provide an example of this?  I have a need for this too, and not quite sure how one would go about this.

    Unless I'm completely misunderstanding how it works, all the information I'm seeing on the web for modifying the control template basically just changes the style of the button.  I suppose you could make the style "invisible", but the implementations I've seen require you to go through xaml to do this rather than being able to modify it programatically (I want the window closeable some times, but not during.. say... an update of the data inside the window).  It also seems that the styling is either performed application wide, or you have to specify the control you want to modify (in this case, the close button that's hidden away as a private member, which also is causing a problem)

    A simple ControlBox property (similar to Winform) would be really nice instead of having to define the change in the xaml..

    Thanks in advance!
    Dan
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 24 Oct 2008 Link to this post

    Hi Dan,

    Yes - we will make this optional by providing a property. For the moment it can be achieved if you change the Control template only.

    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 24 Oct 2008 Link to this post

    Hi Dan,

    Yes - we will make this optional by providing a property. For the moment it can be achieved if you change the Control template only.

    Best wishes,
    Valentin.Stoychev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top