コード例 #1
0
 /// <summary>
 /// Override in derived classes to respond to the Resize events.
 /// </summary>
 /// <param name="e">Contains information about the Resize event.</param>
 protected virtual void OnResize(ResizeEventArgs e)
 {
 }
コード例 #2
0
        /// <summary>
        /// Raises the Resize event.
        /// </summary>
        /// <param name="e">Contains information about the Resize event.</param>
        private void OnResizeInternal(ResizeEventArgs e)
        {
            Debug.Print("Firing GameWindow.Resize event: {0}.", e.ToString());

            this.width = e.Width;
            this.height = e.Height;
            
            if (this.Resize != null)
                this.Resize(this, e);

            OnResize(e);
        }