minimize button disappears, when setting IsEnabled property

6 posts, 1 answers
  1. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 27 Jun 2012 Link to this post

    Hello,

    I have a Radwindow which only has a minimize button in the header. If I set now the IsEnabled property for the window to false, the minimize button disappears! I attached a picture of my window.

    How can I fix the header height or something else, so that the window is not resizing every time I set the property?

    best regards,
    Richard Koslik
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 28 Jun 2012 Link to this post

    Hi Richard,

    I am sure not I understand the exact scenario of your project.

    The IsEnabled="False" property sets the hole RadWindow to be disabled and hides all ifs functionality (the header buttons). If the purpose of your project is to disable the controls in the RadWindow and remove the closing button, you can add the IsEnabled="False" property on the separate controls and set the CanClose property of the RadWindow to false value.

    More information on closing in RadWindow in this article and on the header in this article.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 28 Jun 2012 Link to this post

    Hello Vladi,

    my problem is that the height of the title bar is changing everytime I set the IsEnabled property. Since I use the disabling for refreshing my content, the whole content is jumping up and down every ten seconds (my refresh rate).

    So how can I fix the height of the title bar????

    regards, Richard Koslik
  5. Answer
    Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 29 Jun 2012 Link to this post

    Hi Richard,

    You can customize the RadWindowTemplate and edit the boarder height of the header buttons to the height you desire. This should resolve the issue.

    We would suggest to use Implicit Styles to style our controls, this article goes through in details on this topic.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Richard Koslik
    Richard Koslik avatar
    71 posts
    Member since:
    Apr 2010

    Posted 02 Jul 2012 Link to this post

    Hi,

    I added now an Implicit Theme to my project and set for "PART_HeaderButtonsBorder" the height = 25 and so now my header height is fixed. This works, thanks!

    Can I also set this height without of use of a fix theme, because now we have no fix themes used?

    best regards, Richard
  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 05 Jul 2012 Link to this post

    Hi Richard,

    I am afraid that the only way to set header height is by editing RadWindow template. But you can reference the theme dll and merge the needed XAML files directly from the dll. The approach is explained in details here - check the the third Note. Then you can create a style for the RadWindow based on the default style and add only the customized template. Please check Basing Styles on theme style section of the article.

    Kind regards,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner