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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[ChromelessWindow] [Metro] Align title to left

Thread ID:

Created:

Updated:

Platform:

Replies:

108642 May 4,2013 08:24 PM UTC Aug 18,2017 09:58 AM UTC WPF 6
loading
Tags: ChromelessWindow
Chaupin
Asked On May 4, 2013 08:24 PM UTC

Hi,

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

Regards,
A

Dinesh Kumar P [Syncfusion]
Replied On 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

Jennifer DeVol
Replied On October 29, 2013 07:57 PM UTC

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

Yasvanth [Syncfusion]
Replied On 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. 

Suresh B [Syncfusion]
Replied On 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

Chen Leo
Replied On August 17, 2017 05:21 AM UTC

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


Kannan R [Syncfusion]
Replied On 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   



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

;