mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-11 05:52:19 +02:00
fixed rest of info items
This commit is contained in:
@@ -16,15 +16,22 @@ namespace FancyZonesEditor
|
||||
/// </summary>
|
||||
public partial class CanvasZone : UserControl
|
||||
{
|
||||
public CanvasLayoutModel Model { get; set; }
|
||||
|
||||
public int ZoneIndex { get; set; }
|
||||
|
||||
private readonly Settings _settings = ((App)Application.Current).ZoneSettings;
|
||||
|
||||
private static readonly int _minZoneWidth = 64;
|
||||
private static readonly int _minZoneHeight = 72;
|
||||
private static int _zIndex = 0;
|
||||
|
||||
public CanvasZone()
|
||||
{
|
||||
InitializeComponent();
|
||||
Panel.SetZIndex(this, _zIndex++);
|
||||
}
|
||||
|
||||
public CanvasLayoutModel Model;
|
||||
public int ZoneIndex;
|
||||
|
||||
private void Move(double xDelta, double yDelta)
|
||||
{
|
||||
Int32Rect rect = Model.Zones[ZoneIndex];
|
||||
@@ -138,10 +145,6 @@ namespace FancyZonesEditor
|
||||
Model.Zones[ZoneIndex] = rect;
|
||||
}
|
||||
|
||||
private static int _zIndex = 0;
|
||||
private static int _minZoneWidth = 64;
|
||||
private static int _minZoneHeight = 72;
|
||||
|
||||
protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
|
||||
{
|
||||
Panel.SetZIndex(this, _zIndex++);
|
||||
@@ -200,7 +203,5 @@ namespace FancyZonesEditor
|
||||
((Panel)Parent).Children.Remove(this);
|
||||
Model.RemoveZoneAt(ZoneIndex);
|
||||
}
|
||||
|
||||
private Settings _settings = ((App)Application.Current).ZoneSettings;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user