2012-07-15 200 views

回答

2

我從這個link

void ribbon_Loaded(object sender, RoutedEventArgs e) 
    { 
     Grid child = VisualTreeHelper.GetChild((DependencyObject)sender, 0) as Grid; 
     if (child != null) 
     { 
      child.RowDefinitions[0].Height = new GridLength(0); 
     } 
    } 
+0

我同意的解決方案。我已經使用這個,它運作良好。 – Xcalibur37 2012-07-15 22:14:53