stuk06

dialog.cs

Aug 21st, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. private void UserControl_SizeChanged(object sender, System.Windows.SizeChangedEventArgs e)
  2.         {
  3.             if (e.HeightChanged)
  4.             {
  5.                 this.Width = this.ActualHeight;
  6.             }
  7.             else
  8.             {
  9.                 this.Height = this.ActualWidth;
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment