示例#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 { }
 }
示例#2
0
 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;
         dt.Height         = dt.MaxHeight = parentWindow.ActualHeight - 150;
         dt.Width          = dt.MaxWidth = parentWindow.ActualWidth - 323;
         dt.tamanhoDataGrid(this.ActualHeight - 175);
     }
     catch { }
 }