Example #1
0
 private void UserControl_SizeChanged_1(object sender, SizeChangedEventArgs e)
 {
     parentWindow = Window.GetWindow(this);
     try
     {
         GridCenter.Height    = GridCenter.MaxHeight = parentWindow.ActualHeight - 90;
         TabCentro.MaxWidth   = TabCentro.Width = GridCenter.Width = GridCenter.MaxWidth = PainelCentro.ActualWidth - 20;
         TabCentro.Height     = TabCentro.MaxHeight = border_centro.Height = border_centro.MaxHeight = parentWindow.ActualHeight - 150;
         border_centro.Height = border_centro.MaxHeight - 50;
         if (dgbd != null)
         {
             dgbd.tamanhoDataGrid(this.ActualHeight - 175);
         }
         if (dgc != null)
         {
             dgc.tamanhoDataGrid(this.ActualHeight - 175);
         }
         if (dt != null)
         {
             dt.tamanhoDataGrid(this.ActualHeight - 175);
         }
         if (dp != null)
         {
             dp.tamanhoDataGrid(this.ActualHeight - 175);
         }
     }
     catch { }
 }
        private void UserControl_SizeChanged_1(object sender, SizeChangedEventArgs e)
        {
            parentWindow = Window.GetWindow(this);

            try
            {
                GridCenter.Height = GridCenter.MaxHeight = parentWindow.ActualHeight - 90;
                GridCenter.Width  = GridCenter.MaxWidth = PainelCentro.ActualWidth - 20;
                db.Height         = db.MaxHeight = parentWindow.ActualHeight - 150;
                db.Width          = db.MaxWidth = parentWindow.ActualWidth - 323;
                db.tamanhoDataGrid(this.ActualHeight - 175);
            }
            catch { }
        }