Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to set alignment for window title

$
0
0

Hi,

I am using a WPF window with 'Report' title but I want that title to be left aligned always.
but it is showing different behavior in 2010(Win 7 system) and 2013(Win 8 system) word application. in 2010 it is left aligned by default and in 2013 it is center aligned. I want same alignment in both.

is there any property for this? or any other solution??

<Window x:Class="ABC.ReportWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:WPFToolkit="http://schemas.microsoft.com/wpf/2008/toolkit"
            xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
            x:Name="window"
             mc:Ignorable="d"
           Width="650"  WindowStartupLocation="CenterScreen" Height="500"
        WindowStyle="SingleBorderWindow" ResizeMode="CanResize"
        Background="White" Title="Report" Icon="Resources/Icon.ico"  WindowState="Normal" Cursor="{Binding cursor}" Visibility="{Binding IsCursorVisible}">

Thanks,


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>