/// <inheritdoc /> protected override void OnSizeChanged(EventArgs e) { base.OnSizeChanged(e); PWindow.SetModelValue(this, PWindow.WidthProperty, Width, EBindingSourceUpdateReason.PropertyChanged); PWindow.SetModelValue(this, PWindow.HeightProperty, Height, EBindingSourceUpdateReason.PropertyChanged); }
/// <inheritdoc /> protected override void OnLocationChanged(EventArgs e) { base.OnLocationChanged(e); PWindow.SetModelValue(this, PWindow.TopLocationProperty, Location.Y, EBindingSourceUpdateReason.PropertyChanged); PWindow.SetModelValue(this, PWindow.LeftLocationProperty, Location.X, EBindingSourceUpdateReason.PropertyChanged); }