private void OnSizeChanged(object sender, SizeChangedEventArgs e) { var changeRatio = (e.PreviousSize.Width == 0 || e.PreviousSize.Height == 0) ? 1 : (e.NewSize.Height + e.NewSize.Width) / (e.PreviousSize.Height + e.PreviousSize.Width); ChangeTextSize.RecurseChangeRatio(MainUpdateNannyGrid, changeRatio);; }
private void OnWindowSizeChanged(Object sender, SizeChangedEventArgs e) { var ChangeRatio = (e.PreviousSize.Width == 0 || e.PreviousSize.Height == 0) ? 1 : (e.NewSize.Height + e.NewSize.Width) / (e.PreviousSize.Height + e.PreviousSize.Width); ChangeTextSize.RecurseChangeRatio(MotherOptionsGrid, ChangeRatio); }
private void NewMotherWindow_OnSizeChanged(object sender, SizeChangedEventArgs e) { var changeRatio = (e.PreviousSize.Width == 0 || e.PreviousSize.Height == 0) ? 1 : (e.NewSize.Height + e.NewSize.Width) / (e.PreviousSize.Height + e.PreviousSize.Width); ChangeTextSize.RecurseChangeRatio(NewMotherGrid, changeRatio * 0.95);; }