Exemple #1
0
        protected internal override void PrepareDefaultStyleKey(Views.ViewBase view)
        {
            object currentThemeKey = view.GetDefaultStyleKey(typeof(DataRow));

            if (currentThemeKey.Equals(this.DefaultStyleKey) == false)
            {
                this.DefaultStyleKey = currentThemeKey;
            }
        }
Exemple #2
0
        private static object GetDefaultStyleKey(Type viewType, Theme theme, Type elementType)
        {
            if (theme == null)
            {
                return(ViewBase.GetDefaultStyleKey(viewType, elementType));
            }

            return(theme.GetDefaultStyleKey(viewType, elementType));
        }
Exemple #3
0
        protected internal override void PrepareDefaultStyleKey(Xceed.Wpf.DataGrid.Views.ViewBase view)
        {
            var currentThemeKey = view.GetDefaultStyleKey(typeof(ColumnManagerRow));

            if (currentThemeKey.Equals(this.DefaultStyleKey))
            {
                return;
            }

            this.DefaultStyleKey = currentThemeKey;
        }
Exemple #4
0
        private static void ThemeChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            ViewBase view = ( ViewBase )sender;

            object newDefaultStyleKey = view.GetDefaultStyleKey(null);

            if (!object.Equals(newDefaultStyleKey, view.DefaultStyleKey))
            {
                view.ClearValue(FrameworkContentElement.DefaultStyleKeyProperty);

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

            view.OnThemeChanged(e);
        }
Exemple #5
0
 protected internal virtual void PrepareDefaultStyleKey(Xceed.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupByItem));
 }
 internal virtual void PrepareDefaultStyleKey(Xceed.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupLevelIndicatorPane));
 }
    protected internal override void PrepareDefaultStyleKey( ViewBase view )
    {
      object currentThemeKey = view.GetDefaultStyleKey( typeof( ColumnManagerRow ) );

      if( currentThemeKey.Equals( this.DefaultStyleKey ) == false )
      {
        this.DefaultStyleKey = currentThemeKey;
      }
    }
 protected internal virtual void PrepareDefaultStyleKey(Xceed.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(HierarchicalGroupByControlNode));
 }
 internal virtual void PrepareDefaultStyleKey(Xceed.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(RowSelectorPane));
 }
    protected internal override void PrepareDefaultStyleKey( ViewBase view )
    {
      var newThemeKey = view.GetDefaultStyleKey( typeof( ColumnManagerCell ) );
      if( object.Equals( this.DefaultStyleKey, newThemeKey ) )
        return;

      this.DefaultStyleKey = newThemeKey;
    }
Exemple #11
0
 internal object GetDefaultStyleKey(Type elementType)
 {
     return(ViewBase.GetDefaultStyleKey(this.ViewTypeForThemeKey, this.Theme, elementType));
 }
Exemple #12
0
 internal static object GetDefaultStyleKey(Type viewType, Type elementType)
 {
     return(ViewBase.GetDefaultStyleKey(viewType, null, elementType));
 }