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. Image for the cookie policy date

How to remove Minimize and Maximize buttons on a ChromelessWindow

HI,

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

Silvio

5 Replies

KR Kannan R Syncfusion Team 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 



SI Silvio February 1, 2017 12:07 PM UTC

Thanks! it works.


VR Vijayalakshmi Roopkumar Syncfusion Team 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.


SI Silvio 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


VR Vijayalakshmi Roopkumar Syncfusion Team 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. 


Loader.
Up arrow icon