[FZ Editor] Show zone size below the zone index (#9449)

This commit is contained in:
Seraphima Zykova
2021-02-03 20:15:16 +03:00
committed by GitHub
parent 4bba8bc173
commit c7b6e51eba
4 changed files with 56 additions and 24 deletions

View File

@@ -73,6 +73,12 @@ namespace FancyZonesEditor
SplitterThickness = Math.Max(spacing, 1);
((App)Application.Current).MainWindowSettings.PropertyChanged += ZoneSettings_PropertyChanged;
SizeChanged += GridZone_SizeChanged;
}
private void GridZone_SizeChanged(object sender, SizeChangedEventArgs e)
{
LabelSize.Content = "(" + Math.Round(ActualWidth).ToString() + "x" + Math.Round(ActualHeight).ToString() + ")";
}
private void ZoneSettings_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)