当前位置: 首页>>代码示例>>C#>>正文


C# FrameworkElement.BeginInit方法代码示例

本文整理汇总了C#中System.Windows.FrameworkElement.BeginInit方法的典型用法代码示例。如果您正苦于以下问题:C# FrameworkElement.BeginInit方法的具体用法?C# FrameworkElement.BeginInit怎么用?C# FrameworkElement.BeginInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.FrameworkElement的用法示例。


在下文中一共展示了FrameworkElement.BeginInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ClearDimensions

 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();
 }
开发者ID:Kayomani,项目名称:FAP,代码行数:16,代码来源:TabPanel.cs

示例2: NewNodeBeginInit

 /// <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();
     }
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:18,代码来源:FrameworkElementFactory.cs


注:本文中的System.Windows.FrameworkElement.BeginInit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。