Beispiel #1
0
        private static object GetDefaultStyleKey(Type viewType, Theme theme, Type elementType)
        {
            if (theme == null)
            {
                return(ViewBase.GetDefaultStyleKey(viewType, elementType));
            }

            return(theme.GetDefaultStyleKey(viewType, elementType));
        }
Beispiel #2
0
        protected internal override void PrepareDefaultStyleKey(Views.ViewBase view)
        {
            object currentThemeKey = view.GetDefaultStyleKey(typeof(DataRow));

            if (currentThemeKey.Equals(this.DefaultStyleKey) == false)
            {
                this.DefaultStyleKey = currentThemeKey;
            }
        }
Beispiel #3
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);
        }
 protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupNavigationControlItem));
 }
Beispiel #5
0
 protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(HierarchicalGroupByItem));
 }
Beispiel #6
0
 internal object GetDefaultStyleKey(Type elementType)
 {
     return(ViewBase.GetDefaultStyleKey(this.ViewTypeForThemeKey, this.Theme, elementType));
 }
Beispiel #7
0
 protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(ScrollTip));
 }
Beispiel #8
0
 internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(RowSelector));
 }
 internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view)
 {
     this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupLevelIndicatorPane));
 }