// Token: 0x06000695 RID: 1685 RVA: 0x00014E02 File Offset: 0x00013002
 internal static void NewNodeBeginInit(bool treeNodeIsFE, FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE)
 {
     if (treeNodeIsFE)
     {
         treeNodeFE.BeginInit();
         return;
     }
     treeNodeFCE.BeginInit();
 }
Example #2
0
 private static void ClearDimensions(FrameworkElement tabItem)
 {
     // remove any size restrictions from the Header,
     // this is because the TabControl's size restriction properties takes precedence over
     // the individual tab items
     // eg, if the TabControl sets the TabItemMaxWidth property to 300, but the Header
     // has a minWidth of 400, the TabControls value of 300 should be used
     tabItem.BeginInit();
     tabItem.Height = double.NaN;
     tabItem.Width = double.NaN;
     tabItem.MaxHeight = double.PositiveInfinity;
     tabItem.MaxWidth = double.PositiveInfinity;
     tabItem.MinHeight = 0;
     tabItem.MinWidth = 0;
     tabItem.EndInit();
 }
 /// <summary>
 ///     Call BeginInit on the newly-created node to postpone the
 /// "Initialized" event.
 /// </summary>
 internal static void NewNodeBeginInit( bool treeNodeIsFE,
     FrameworkElement treeNodeFE, FrameworkContentElement treeNodeFCE )
 {
     if( treeNodeIsFE )
     {
         // Mark the beginning of the initialization phase
         treeNodeFE.BeginInit();
     }
     else
     {
         // Mark the beginning of the initialization phase
         treeNodeFCE.BeginInit();
     }
 }