Completed
Last Updated: 09 Jun 2021 05:45 by ADMIN
Release R2 2021 SP1
Albie
Created on: 01 Jun 2021 08:48
Category: UI for WPF
Type: Bug Report
1
Window: Titlebar controls in wrong position when one or more disabled and RadWindowInteropHelper is used

When using a RadWindow with ResizeMode="CanMinimise" and RadWindowInteropHelper.ShowInTaskbar="True" the close button is moved to the left, which is an unexpected behaviour. Note this doesn't occur when the RadWindowInteropHelper is not used

 

Attached Files:
1 comment
ADMIN
Martin Ivanov
Posted on: 08 Jun 2021 07:51

Hello Albie,

Thank you for the report. This is an issue in the Material theme of RadWindow and it appears because of a MinWidth setting in the ControlTemplate of the window.

To work it around, you can extract the ControlTemplate of RadWindow (for the Material theme) and remove or alter the following trigger.

<MultiDataTrigger>
	<MultiDataTrigger.Conditions>
		<Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=(navigation:RadWindowInteropHelper.ShowInTaskbar)}" Value="True"/>
		<Condition Value="True">
			<Condition.Binding>
				<MultiBinding Converter="{StaticResource MultiBindingBooleanOrConverter}" Mode="OneWay">
					<Binding Path="WindowState" RelativeSource="{RelativeSource Self}" Mode="OneWay" Converter="{StaticResource EnumToBooleanConverter}" ConverterParameter="Normal"/>
					<Binding Path="WindowState" RelativeSource="{RelativeSource Self}" Mode="OneWay" Converter="{StaticResource EnumToBooleanConverter}" ConverterParameter="Maximized"/>
				</MultiBinding>
			</Condition.Binding>
		</Condition>
	</MultiDataTrigger.Conditions>
	<Setter TargetName="HeaderButtonsColumn" Property="MinWidth" Value="144"/>
</MultiDataTrigger>
The troublesome behavior comes from the MinWidth Setter in the trigger.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.