本文整理汇总了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;
}
}
示例2: PrepareDefaultStyleKey
protected internal override void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( DetailIndicator ) );
}
示例3: PrepareDefaultStyleKey
protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( HierarchicalGroupByControl ) );
}
示例4: PrepareDefaultStyleKey
protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( GroupNavigationControl ) );
}
示例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 );
}
示例6: PrepareDefaultStyleKey
internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( RowSelectorPane ) );
}
示例7: PrepareDefaultStyleKey
internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( HierarchicalGroupLevelIndicatorPane ) );
}
示例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;
}
示例9: PrepareDefaultStyleKey
protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( GroupLevelIndicator ) );
}
示例10: PrepareDefaultStyleKey
protected internal virtual void PrepareDefaultStyleKey( Xceed.Wpf.DataGrid.Views.ViewBase view )
{
this.DefaultStyleKey = view.GetDefaultStyleKey( typeof( ScrollTip ) );
}