Skip to content

Commit 67cf243

Browse files
authored
Fixes #413 (#1050)
Updating ControlsEx commit references.
1 parent 2089f6f commit 67cf243

File tree

7 files changed

+26
-10
lines changed

7 files changed

+26
-10
lines changed

MaterialDesignToolkit.Wpf.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ EndProject
2929
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{55087897-5F09-45CA-8E12-12B36B45F262}"
3030
ProjectSection(SolutionItems) = preProject
3131
.editorconfig = .editorconfig
32+
paket.dependencies = paket.dependencies
33+
paket.lock = paket.lock
3234
EndProjectSection
3335
EndProject
3436
Global

paket-files/ControlzEx/ControlzEx/src/ControlzEx/PopupEx.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static readonly DependencyProperty CloseOnMouseLeftButtonDownProperty
2424
typeof(bool),
2525
typeof(PopupEx),
2626
new PropertyMetadata(false));
27-
27+
2828
/// <summary>
2929
/// Gets/sets if the popup can be closed by left mouse button down.
3030
/// </summary>
@@ -34,6 +34,18 @@ public bool CloseOnMouseLeftButtonDown
3434
set { SetValue(CloseOnMouseLeftButtonDownProperty, value); }
3535
}
3636

37+
public static readonly DependencyProperty AllowTopMostProperty
38+
= DependencyProperty.Register(nameof(AllowTopMost),
39+
typeof(bool),
40+
typeof(PopupEx),
41+
new PropertyMetadata(true));
42+
43+
public bool AllowTopMost
44+
{
45+
get { return (bool)GetValue(AllowTopMostProperty); }
46+
set { SetValue(AllowTopMostProperty, value); }
47+
}
48+
3749
public PopupEx()
3850
{
3951
this.Loaded += this.PopupEx_Loaded;
@@ -84,7 +96,7 @@ private void PopupEx_Loaded(object sender, RoutedEventArgs e)
8496

8597
private void PopupEx_Opened(object sender, EventArgs e)
8698
{
87-
this.SetTopmostState(true);
99+
this.SetTopmostState(hostWindow?.IsActive ?? true);
88100
}
89101

90102
private void hostWindow_Activated(object sender, EventArgs e)
@@ -142,6 +154,7 @@ private void hostWindow_SizeOrLocationChanged(object sender, EventArgs e)
142154

143155
private void SetTopmostState(bool isTop)
144156
{
157+
isTop &= AllowTopMost;
145158
// Don’t apply state if it’s the same as incoming state
146159
if (this.appliedTopMost.HasValue && this.appliedTopMost == isTop)
147160
{

paket-files/ControlzEx/ControlzEx/src/ControlzEx/paket.dependencies

Whitespace-only changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e687c6ac4279c4e513b7ef9a75622411350db874
1+
e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa

paket-files/paket.restore.cached

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NUGET
77
Dragablz (0.0.3.203)
88
MahApps.Metro (1.6.5)
99
ControlzEx (>= 3.0.2.4 < 4.0)
10-
Microsoft.NETCore.Platforms (2.1) - restriction: == net45
10+
Microsoft.NETCore.Platforms (2.1.1) - restriction: == net45
1111
Moq (4.9)
1212
Castle.Core (>= 4.3.1)
1313
System.Threading.Tasks.Extensions (>= 4.3)
@@ -18,6 +18,7 @@ NUGET
1818
NSubstitute (2.0.3)
1919
RhinoMocks (3.6.1)
2020
Shouldly (2.8.3)
21+
ShowMeTheXAML (1.0.10)
2122
ShowMeTheXAML.AvalonEdit (1.0.10)
2223
AvalonEdit (>= 5.0.4 < 5.1)
2324
ShowMeTheXAML (>= 1.0.10 < 1.1)

paket.dependencies

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ nuget ShowMeTheXAML ~> 1.0.10
1313
nuget ShowMeTheXAML.AvalonEdit ~> 1.0.10
1414
nuget ShowMeTheXAML.MSBuild ~> 1.0.10
1515

16-
github ControlzEx/ControlzEx:e687c6ac4279c4e513b7ef9a75622411350db874 src/ControlzEx/PopupEx.cs
17-
github ControlzEx/ControlzEx:e687c6ac4279c4e513b7ef9a75622411350db874 src/ControlzEx/PackIconBase.cs
18-
github ControlzEx/ControlzEx:e687c6ac4279c4e513b7ef9a75622411350db874 src/ControlzEx/BadgedEx.cs
16+
github ControlzEx/ControlzEx:e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa src/ControlzEx/PopupEx.cs
17+
github ControlzEx/ControlzEx:e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa src/ControlzEx/PackIconBase.cs
18+
github ControlzEx/ControlzEx:e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa src/ControlzEx/BadgedEx.cs
1919
github samueldjack/VirtualCollection:e63d891c252c2ac1a3ebb26dddb9a3d89effe3f2 VirtualCollection/VirtualCollection/VirtualizingWrapPanel.cs

paket.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ NUGET
4949
xunit.runner.visualstudio (2.4)
5050
GITHUB
5151
remote: ControlzEx/ControlzEx
52-
src/ControlzEx/BadgedEx.cs (e687c6ac4279c4e513b7ef9a75622411350db874)
53-
src/ControlzEx/PackIconBase.cs (e687c6ac4279c4e513b7ef9a75622411350db874)
54-
src/ControlzEx/PopupEx.cs (e687c6ac4279c4e513b7ef9a75622411350db874)
52+
src/ControlzEx/BadgedEx.cs (e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa)
53+
src/ControlzEx/PackIconBase.cs (e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa)
54+
src/ControlzEx/PopupEx.cs (e641c9e9346d7ae8c21ca1bf7fa5fb1b86496baa)
5555
remote: samueldjack/VirtualCollection
5656
VirtualCollection/VirtualCollection/VirtualizingWrapPanel.cs (e63d891c252c2ac1a3ebb26dddb9a3d89effe3f2)

0 commit comments

Comments
 (0)