fx cop for Fz Editor part2 (#11293)

* disposable not being disposed

* CA1305 fixes

Co-authored-by: crutkas <crutkas@microsoft.com>
This commit is contained in:
Clint Rutkas
2021-05-18 04:39:38 -07:00
committed by GitHub
parent 58d41d40e5
commit f29b8dc50c
4 changed files with 49 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
@@ -29,8 +30,9 @@ namespace FancyZonesEditor
private void CanvasZone_SizeChanged(object sender, SizeChangedEventArgs e)
{
WidthLabel.Text = Width.ToString();
HeightLabel.Text = Height.ToString();
// using current culture as this is end user facing
WidthLabel.Text = Width.ToString(CultureInfo.CurrentCulture);
HeightLabel.Text = Height.ToString(CultureInfo.CurrentCulture);
}
private CanvasLayoutModel model;