Posted 8 years ago by Bruno Vermeersch
Version: 16.1.0632
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Hi,

I'm in the process of applying the theming on my application and I encounter an issue. Minimalistic application:

<Window x:Class="WpfApplication2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
		<Expander Grid.Column="0" ExpandDirection="Right">
			<Expander.Header>
				<TextBlock Text="Conditions">
					<TextBlock.LayoutTransform>
						<RotateTransform Angle="-90"/>
					</TextBlock.LayoutTransform>
				</TextBlock>
			</Expander.Header>
		</Expander>
	</Grid>
</Window>

 and in code behind:

namespace WpfApplication2
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow()
		{
			ActiproSoftware.Windows.Themes.ThemeManager.AreNativeThemesEnabled = true;
			InitializeComponent();
		}
	}
}

 The text ends up upside down. If the 'AreNativeThemesEnabled' line is commented out you can see what the result should be.

Anyone knows how this can be fixed?

many thanks,

Bruno

Comments (2)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Bruno,

Our custom style/template for that control is a little different than the native one, as we build in the rotation into our template.  You don't need to do a layout transform at all when using ours.


Actipro Software Support

Posted 8 years ago by Bruno Vermeersch
Avatar

Perfect, even better :-D

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.