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
SIGN IN To post a reply.
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.
Link: https://www.syncfusion.com/kb/7206/how-to-hide-maximize-and-minimize-buttons-in-chromelesswindow
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.
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).
Attachment: ChromelessWndwMaxMinBtnSampleCopy_843e788e.zip
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:
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:
Sample: : http://www.syncfusion.com/downloads/support/forum/128612/ze/ChromelessWindow_record-710735349
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.
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.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
SI Silvio
- Feb 1, 2017 08:52 AM UTC
- Feb 3, 2017 12:43 PM UTC