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

[ChromelessWindow] [Metro] Align title to left

Hi,

How to align the title of the ChromelessWindow to the left side with Metro style?

Regards,
A

6 Replies

DK Dinesh Kumar P Syncfusion Team May 7, 2013 04:04 AM UTC

Hi Caupin,

Thanks for using Syncfusion products.

We have created a simple sample to achieve your requirement. Please download the same along with this forum.

In the sample, we have created a new style, BasedOn 'Metro' Theme in App.xaml. In the new style 'ChromelessWindowStyle' Icon and Title is placed at the left side like in normal windows. 

Please let us know in case of any other queries,

Thanks and Regards,
Dinesh Kumar P


CW_Metro_Align_Title_Left(108642)_7773f9a3.rar


JD Jennifer DeVol October 29, 2013 07:57 PM UTC

I'm having the same issue, but the sample attachment no longer seems to be downloadable.


YA Yasvanth Syncfusion Team November 11, 2013 07:42 PM UTC

Hi Jennifer , 

Sorry for the inconvenience caused. 

We are currently working on it  and the sample will be updated in one business day (11/12/2013) . 

Please let us know in case of any assistance.

Regards,
Yasvanth. 


SB Suresh B Syncfusion Team November 12, 2013 10:19 AM UTC

Hi Jennifer , 

Thanks for using Syncfusion products.

We have created a simple sample to achieve your requirement. Please download the sample from the following link:

In the sample, we have created a new style, BasedOn 'Metro' Theme in App.xaml. In the new style 'ChromelessWindowStyle' Icon and TitleText is placed at the left side using 'TitleTextAlignment' property set it as Left.

Please let us know if you need any further assistance.

Thanks and Regards,
Suresh B


CL Chen Leo August 17, 2017 05:21 AM UTC

I'm having the same issue, but the sample attachment no longer seems to be downloadable.



KR Kannan R Syncfusion Team August 18, 2017 09:58 AM UTC



Hi Chen   
   
Sorry for the inconvenience caused.    
   
Yes, we can achieve this reported requirement by customizing TitleBarTemplate in ChromelessWindow for its Metro Theme appearance. Please make use below code example for your reference.    
   
Code Example: [C#]   
   
   
<syncfusion:ChromelessWindow x:Class="ChromelessWindow_Metro.MainWindow"   
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
        Title="ChromelessWindow" Height="350" Width="525"   
        xmlns:syncfusion="http://schemas.syncfusion.com/wpf"   
        syncfusion:SkinStorage.VisualStyle="Metro"     
        TitleTextAlignment="Left"    
        WindowStartupLocation="CenterScreen"   
        Template="{StaticResource ChromelessWindowTemplate1}">   
   
<TextBlock Focusable="False" Grid.Column="1" Foreground="{Binding RelativeSource={RelativeSource FindAncestor,  AncestorType={x:Typesyncfusion:ChromelessWindow}}, Path=TitleBarForeground}" Text="{TemplateBinding Title}" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"HorizontalAlignment="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type syncfusion:ChromelessWindow}}, Path=TitleTextAlignment}"   
x:Name="TitlePresenter" FontFamily="{DynamicResource MetroFontFamily}" Margin="5,5,5,5" />   
   
   
Screenshot   
   
     
   
We have also prepared sample for your reference.    
   
Sample: ChromelessWindowExample    
   
Kindly check with above solution and let us know if it helps.   
   
Regards   
Kannan   



Loader.
Live Chat Icon For mobile
Up arrow icon