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


C# Xceed.GetDefaultStyleKey方法代码示例

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


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

示例1: PrepareDefaultStyleKey

    protected internal override void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
    {
      object currentThemeKey = view.GetDefaultStyleKey( typeof( DataCell ) );

      if( currentThemeKey.Equals( this.DefaultStyleKey ) == false )
      {
        this.DefaultStyleKey = currentThemeKey;
      }
    }
开发者ID:Torion,项目名称:WpfExToolkit,代码行数:9,代码来源:DataCell.cs

示例2: PrepareDefaultStyleKey

 protected internal override void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( DetailIndicator ) );
 }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:4,代码来源:DetailIndicator.cs

示例3: PrepareDefaultStyleKey

 protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( HierarchicalGroupByControl ) );
 }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:4,代码来源:HierarchicalGroupByControl.cs

示例4: PrepareDefaultStyleKey

 protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( GroupNavigationControl ) );
 }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:4,代码来源:GroupNavigationControl.cs

示例5: OnViewChanged

    private void OnViewChanged( Xceed.Wpf.DataGrid.Views.ViewBase oldView, Xceed.Wpf.DataGrid.Views.ViewBase newView )
    {
      if( oldView != null )
      {
        oldView.ThemeChanged -= new DependencyPropertyChangedEventHandler( this.View_ThemeChanged );
        oldView.FixedHeaders.CollectionChanged -= new NotifyCollectionChangedEventHandler( this.View_FixedHeadersCollectionChanged );
        oldView.FixedFooters.CollectionChanged -= new NotifyCollectionChangedEventHandler( this.View_FixedFootersCollectionChanged );
      }

      if( newView == null )
      {
        newView = this.GetDefaultView();
      }
      else
      {
        newView.ThemeChanged += new DependencyPropertyChangedEventHandler( this.View_ThemeChanged );
        newView.FixedHeaders.CollectionChanged += new NotifyCollectionChangedEventHandler( this.View_FixedHeadersCollectionChanged );
        newView.FixedFooters.CollectionChanged += new NotifyCollectionChangedEventHandler( this.View_FixedFootersCollectionChanged );
      }

      // Cache if the view requires to preserve container size
      this.ViewPreservesContainerSize = ( newView != null )
        ? newView.PreserveContainerSize
        : true;

      if( ( newView == null ) || ( newView is UIViewBase ) )
      {
        this.m_cachedView = ( UIViewBase )newView;
      }

      object newDefaultStyleKey = newView.GetDefaultStyleKey( typeof( DataGridControl ) );
      if( !object.Equals( newDefaultStyleKey, this.DefaultStyleKey ) )
      {
        this.ClearValue( FrameworkElement.DefaultStyleKeyProperty );

        if( !object.Equals( newDefaultStyleKey, this.DefaultStyleKey ) )
        {
          this.DefaultStyleKey = newDefaultStyleKey;
        }
      }

      this.InvalidateViewStyle();

      // We cannot be sure that the grid elements default style key are different with
      // this new View/Theme (for instance, if the new View/Theme are of the same type 
      // as the old ones). So, we have to force the new templates. This is mainly to 
      // setup the new ViewBindings.
      this.ReapplyTemplate();


      if( this.ViewChanged != null )
        this.ViewChanged( this, EventArgs.Empty );

      // Reset the size states since we do not want to apply old size states to a new view/new container style.
      this.DataGridContext.ClearSizeStates();

      // Reset the flag
      this.ForceGeneratorReset = false;

      // Make sure the current item is into view.
      this.DelayBringIntoViewAndFocusCurrent( DispatcherPriority.Render );
    }
开发者ID:wangws556,项目名称:duoduo-chat,代码行数:62,代码来源:DataGridControl.cs

示例6: PrepareDefaultStyleKey

 internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( RowSelectorPane ) );
 }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:4,代码来源:RowSelectorPane.cs

示例7: PrepareDefaultStyleKey

 internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( HierarchicalGroupLevelIndicatorPane ) );
 }
开发者ID:wangws556,项目名称:duoduo-chat,代码行数:4,代码来源:HierarchicalGroupLevelIndicatorPane.cs

示例8: PrepareDefaultStyleKey

    protected internal override void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
    {
      var newThemeKey = view.GetDefaultStyleKey( typeof( DataCell ) );
      if( object.Equals( this.DefaultStyleKey, newThemeKey ) )
        return;

      this.DefaultStyleKey = newThemeKey;
    }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:8,代码来源:DataCell.cs

示例9: PrepareDefaultStyleKey

 protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( GroupLevelIndicator ) );
 }
开发者ID:austinedeveloper,项目名称:WpfExtendedToolkit,代码行数:4,代码来源:GroupLevelIndicator.cs

示例10: PrepareDefaultStyleKey

 protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
 {
   this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( ScrollTip ) );
 }
开发者ID:Torion,项目名称:WpfExToolkit,代码行数:4,代码来源:ScrollTip.cs


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