This is a migrated thread and some comments may be shown as answers.

minimize button disappears, when setting IsEnabled property

5 Answers 74 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 27 Jun 2012, 10:12 AM
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

5 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 28 Jun 2012, 01:50 PM
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 >>

0
Richard Koslik
Top achievements
Rank 1
answered on 28 Jun 2012, 02:05 PM
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
0
Accepted
Vladi
Telerik team
answered on 29 Jun 2012, 12:11 PM
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 >>

0
Richard Koslik
Top achievements
Rank 1
answered on 02 Jul 2012, 07:45 AM
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
0
Vladi
Telerik team
answered on 05 Jul 2012, 07:50 AM
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 >>

Tags
Window
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Richard Koslik
Top achievements
Rank 1
Share this question
or