Exemplo n.º 1
0
 private void OnLoad(object sender, System.Windows.RoutedEventArgs e)
 {
     WindowAspectRatio.Register((Window)this);
 }
Exemplo n.º 2
0
 private void Window_SourceInitialized(object sender, EventArgs ea)
 {
     WindowAspectRatio.Register((Window)sender);
 }
Exemplo n.º 3
0
        /* Aspect Ratio */

        private void Window_SourceInitialized(object sender, EventArgs e)
        {
            WindowAspectRatio.Register((Window)sender, new Rect(0, TitleBar.ActualHeight, 0, 0));
        }