-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual bug while using RightWindowCommands #2449
Comments
@PavelLvou So you customize the custom MahApps solution. Here some points which you should know (latest source)
|
@punker76 Could you please help to fix #2449 (comment) |
@sergey-tihon @PavelLvou Here is my testcase with the latest source and using the TitleTemplate instead the RightWindowCommands <controls:MetroWindow x:Class="MetroDemo.ExampleWindows.AllowTransparencyDemo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
Width="450"
Height="630"
Background="Transparent"
BorderBrush="Transparent"
EnableDWMDropShadow="False"
Initialized="AllowTransparencyDemo_OnInitialized"
NonActiveBorderBrush="Transparent"
NonActiveWindowTitleBrush="Transparent"
ResizeMode="NoResize"
ShowCloseButton="False"
ShowIconOnTitleBar="False"
ShowMaxRestoreButton="False"
ShowMinButton="False"
TitlebarHeight="100"
WindowTitleBrush="Transparent"
WindowTransitionsEnabled="False">
<controls:MetroWindow.TitleTemplate>
<DataTemplate>
<Border x:Name="RootBorder"
Background="Green"
BorderBrush="Red"
BorderThickness="2 2 2 0"
CornerRadius="7,7,0,0">
<Label Content="Title" />
</Border>
</DataTemplate>
</controls:MetroWindow.TitleTemplate>
<Border Background="DarkGreen"
BorderBrush="Red"
BorderThickness="2 0 2 2"
CornerRadius="0, 0, 7, 7">
<Label Content="Body" />
</Border>
</controls:MetroWindow> public partial class AllowTransparencyDemo : MetroWindow
{
public AllowTransparencyDemo()
{
InitializeComponent();
}
private void AllowTransparencyDemo_OnInitialized(object sender, EventArgs e)
{
this.AllowsTransparency = true;
}
} |
@punker76 |
Hi, can you answer, is it possible avoid both of problems, please? |
@PavelLvou @JinOptimist The problem is the introduced thumb for drag&move, it will be fixed with #2477 |
What steps will reproduce this issue?
Hello,
I have a problem.
Gray rectangle appears if window lose focus
I try find this elements and find next
Here xaml
Expected outcome
All my elements have width 450
Why I have element whose width more than my elements and how I can fix it?
And why I have this gray rectangle after window lose focus?
Thank you
Environment
The text was updated successfully, but these errors were encountered: