private void CellStyleBuilding()
        {
            //var gridCellThemeKey = new GridRowThemeKeyExtension
            //{
            //    ThemeName = ThemeManager.ApplicationThemeName,
            //    ResourceKey = GridRowThemeKeys.CellStyle
            //};

            //CellStyle = new Style(typeof(CellContentPresenter))
            //{
            //    BasedOn = AssociatedObject.TryFindResource(gridCellThemeKey) as Style
            //};

            //ver. 14.1
            var gridCellThemeKey = new GridRowThemeKeyExtension
            {
                ThemeName   = ThemeManager.ApplicationThemeName,
                ResourceKey = GridRowThemeKeys.LightweightCellStyle
            };

            CellStyle = new Style(typeof(LightweightCellEditor))
            {
                BasedOn = AssociatedObject.TryFindResource(gridCellThemeKey) as Style
            };
        }
        public Object Convert(Object[] values, Type targetType, Object parameter, CultureInfo culture)
        {
            if (values.Length < 2 || !(values[0] is Boolean shadow) ||
                !(values[1] is SelectionState selection))
            {
                return(null);
            }

            Brush selectionBrush = null;

            if (selection.In(SelectionState.Focused, SelectionState.FocusedAndSelected))
            {
                var themeKey = new GridRowThemeKeyExtension();
                themeKey.ThemeName   = ThemeManager.ActualApplicationThemeName;
                themeKey.ResourceKey = GridRowThemeKeys.BorderFocusedBrush;
                selectionBrush       = (Brush)FindResource(themeKey);
            }

            if (shadow)
            {
                if (selectionBrush != null)
                {
                    return(CreateStripedBrush(ShadowBaseBrush, selectionBrush));
                }
                return(ShadowBrush);
            }

            if (selectionBrush != null)
            {
                return(selectionBrush);
            }

            return(DefaultBrush);
        }