mirror of
https://github.com/VitalickS/BrightSharp.Toolkit.git
synced 2026-03-21 02:21:15 +00:00
Menu popup position fix;
move minmaxsize logic from behavior to avoid use behavior in MarkupExtensionProperties; WindowHeaderBrush improve for DevLab colors
This commit is contained in:
@@ -3,7 +3,6 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Interactivity;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace BrightSharp.Extensions
|
||||
@@ -157,12 +156,11 @@ namespace BrightSharp.Extensions
|
||||
if (window == null) return;
|
||||
if ((bool)e.NewValue)
|
||||
{
|
||||
Interaction.GetBehaviors(window).Add(new WindowMinMaxSizeBehavior());
|
||||
new MinMaxSize_Logic(window).OnAttached();
|
||||
}
|
||||
else
|
||||
{
|
||||
var beh = Interaction.GetBehaviors(window).OfType<WindowMinMaxSizeBehavior>().FirstOrDefault();
|
||||
if (beh != null) Interaction.GetBehaviors(window).Remove(beh);
|
||||
// Not supported yet
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user