Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }