We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove Minimize and Maximize buttons on a ChromelessWindow

Thread ID:

Created:

Updated:

Platform:

Replies:

128612 Feb 1,2017 08:52 AM UTC Feb 3,2017 12:43 PM UTC WPF 5
loading
Tags: ChromelessWindow
Silvio
Asked On February 1, 2017 08:52 AM UTC

HI,

is there the possibility not to have the "Minimize" and "Maximize" buttons on a ChromelessWindow?

Silvio

Kannan R [Syncfusion]
Replied On February 1, 2017 09:03 AM UTC

Hi Silvio, 

Thank you for contacting Syncfusion support. 

Can you please check with below Knowledge Base article for achieving this requirement? And let us know if it helps. 


Regards 
Kannan 


Silvio
Replied On February 1, 2017 12:07 PM UTC

Thanks! it works.

Vijayalakshmi Roopkumar [Syncfusion]
Replied On February 2, 2017 04:25 AM UTC

Hi Silvio,

Thank you for your update.

Please let us know if you need any further assistance.

Regards,
Vijayalakshmi V.R.

Silvio
Replied On February 2, 2017 11:42 AM UTC

Now I've tried to use SfSkinManager to change the style of the window (for example settinga Blend style).
But this seems not to work.
Please find the attached example I've changed in order to test this feature.
What am I mistaking ?
If you run the example you obtain a runtime exception.


Attachment: ChromelessWndwMaxMinBtnSampleCopy_843e788e.zip

Vijayalakshmi Roopkumar [Syncfusion]
Replied On February 3, 2017 12:43 PM UTC

Hi Silvio,

We have analyzed your sample and found that you have used the default Template of the ChromelessWindow from App.XAML. So on applying the Blend theme using the SfSkinManager, it won’t reflect. Now we have modified the sample by replaced the Default Template with the Blend theme Template. Please download the sample from the following location: 
Screenshot: 
  
  
Query 2: If you run the example you obtain a runtime exception

This type of exception will occur when using two or more references which contains same namespace and classes. Since in the previously used template , the TitleBar is there in both Shared.WPF Assembly and also Tools.WPF assembly which contains the same "TitleBar" object.

So in order to avoid this exception, refer the Shared.WPF assembly alone in your application and use the namespace containing the Shared.WPF
Namespace: 
Code snippet[XAML] 
 
 
xmlns:syncfusion=" clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF"  
  
Regards, 
Vijayalakshmi V.R. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;