question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

metrowindow topmost property binding issue

See original GitHub issue

I am using MahApps for my WPF application and when the metro window is used, the TopMost property is not able to bind. If i set it as a static value it works though.

<Controls:MetroWindow x:Class="SabreContractSearch.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:prism="http://prismlibrary.com/"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
        prism:ViewModelLocator.AutoWireViewModel="True"
        Topmost= "{Binding Pin}" Title="{Binding Title}" Height="350" Width="525" Name="FrmMainWindow" >

Pin is a boolean property here.

If i remove the metro window and use the normal window tag for WPF, it works. Is this a bug?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
punker76commented, Feb 13, 2020

@sg2707 It’s fixed now and available with ControlzEx v4.2.2

1reaction
punker76commented, Feb 13, 2020

@sg2707 I found the bug. It happens at WindowChromeBehavior from ControlzEx. The Binding will be broken by our Topmost hack. I will fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MahApps MetroWindow Topmost property Binding issue
It was a bug in ControlzEx v4.2.1. There is a Topmost hack which doesn't set the Topmost property of the Window using the...
Read more >
Wpf window like metro window
Yes, it is possible to emulate a metro-like window in WPF. ... VerticalAlignment="Top" IsExpanded="{Binding IsMouseOver, ...
Read more >
chqiuu/MahApps.Metro
[Fix] Issue where Binding issues on DateTimePicker/TimePicker are shown on ... New dependency properties for MetroWindow to set the brush and opacity for ......
Read more >
News
This issue appears when binding to a property of DateTime and the date is DateTime.MinValue . Z-Order was wrong if MetroWindow is ignoring...
Read more >
MetroWindow
The MetroWindow can be used with different borders. You can change the behavior by using the BorderBrush , GlowBrush and BorderThickness properties.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found