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

Is there a MessageBox implementation that uses ChromelessWindow

Hi,

I'm trying to substitute the standard MessageBox calls in my Apps with similar methods that uses ChromelessWindow and whose style is changeable with SfSkinManager.
Have you in your library such a class or method ?

Thanks,

S. Scattaglia

3 Replies

KJ Keerthana Jegannathan Syncfusion Team January 18, 2017 12:45 PM UTC

Hi Silvio, 
 
Thank you for contacting Syncfusion support. 
 
We suspect your requirement is to apply SfSkinManager themes to all the windows used in your application. If so, we request you to apply the style through “App.Xaml” using Style file of the controls. We have prepared a simple sample in which we have applied the style using App.Xaml and this style has been used inside the window using “Style” property of it and it can be downloaded from the below location. 
 
 
Regards, 
Keerthana J  



SW SwabianInstruments June 29, 2021 03:31 PM UTC

Hello Syncfusion Team,


We have a similar requirement. Could I get a copy of the sample? The attached sample is not downloadable.


Best Regards,

Yash



VR Vijayalakshmi Roopkumar Syncfusion Team July 2, 2021 01:07 PM UTC

Hi Yash 
 
Thank you for your update. 
 
From your update, we could understood that you want to have MessageBox based on ChromelessWindow. Here we have shown the chromelesswindow and customized it as MessageBox and also applied the skinmanager style for ChromelessWindow in  App.xaml . However we have customized background of ChromelessWindow as shown in following code. 
 
Code : Apply background for ChromelessWindow 
 
 
<Style x:Key="SyncfusionChromelessWindowStyleCustomized" TargetType="{x:Type local1:ChromelessWindow}"> 
<Setter Property="ResizeGripStyle" Value="{StaticResource ResizeStyle}" /> 
<Setter Property="TitleTextAlignment" Value="Right" /> 
<Setter Property="ResizeBorderThickness" Value="2" /> 
<Setter Property="SnapsToDevicePixels" Value="False" /> 
<Setter Property="Icon" Value="pack://application:,,,/Syncfusion.Shared.WPF;component/Controls/ChromelessWindow/Resources/app.png" /> 
<Setter Property="CornerRadius" Value="0" /> 
<Setter Property="FontFamily" Value="{StaticResource MetroFontFamily}" /> 
<Setter Property="TitleBarForeground" Value="{StaticResource  MetroForegroundBrush}" /> 
<Setter Property="MinWidth" Value="140" /> 
<Setter Property="MinHeight" Value="40" /> 
<Setter Property="Margin" Value="25" /> 
<Setter Property="TitleBarBackground" Value="{StaticResource SyncMetroTitleBarBackgroundBrush}" /> 
<Setter Property="Background" Value="Red" /> 
<Setter Property="ResizeBorderBrush" Value="{StaticResource  SyncMetroTitleBarBackgroundBrush}" /> 
<Setter Property="MinimizeButtonTemplate" Value="{StaticResource MinimizeBlue}" /> 
<Setter Property="MaximizeButtonTemplate" Value="{StaticResource MaximizeBlue}" /> 
<Setter Property="RestoreButtonTemplate" Value="{StaticResource RestoreBlue}" /> 
<Setter Property="CloseButtonTemplate" Value="{StaticResource CloseBlue}" /> 
<Setter Property="TitleBarTemplate" Value="{StaticResource Office2010BlueTitleBarTemplate}" /> 
<Setter Property="BorderThickness" Value="0.5" /> 
<Setter Property="IconAlignment" Value="Right"/> 
 
 
 
And apply this style in using Style property. 
 
 
<syncfusion:ChromelessWindow x:Class="ChromelessWindow_Check.Chromeless" 
xmlns:local="clr-namespace:ChromelessWindow_Check" 
mc:Ignorable="d" xmlns:syncfusion=http://schemas.syncfusion.com/wpf 
TitleTextAlignment="Center" WindowStartupLocation="CenterScreen" 
Title="Chromeless_MessageBox" Height="250" Width="350" Style="{StaticResource MetroChromelessWindowStyle}"> 
 
 
 
 
 
Please try this solution and let us know if it is helpful. 
 
Regards, 
Vijayalakshmi VR. 


Loader.
Live Chat Icon For mobile
Up arrow icon