Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void UserControl_SizeChanged(object sender, System.Windows.SizeChangedEventArgs e)
- {
- if (e.HeightChanged)
- {
- this.Width = this.ActualHeight;
- }
- else
- {
- this.Height = this.ActualWidth;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment