Amoeba.Windows.StoreControl_StyleSelector.SelectStyle C# (CSharp) Метод

SelectStyle() публичный Метод

public SelectStyle ( object item, DependencyObject container ) : System.Windows.Style
item object
container System.Windows.DependencyObject
Результат System.Windows.Style
        public override Style SelectStyle(object item, DependencyObject container)
        {
            if (item is StoreCategorizeTreeViewModel)
            {
                return this.StoreCategorizeTreeViewModelStyle;
            }
            else if (item is StoreTreeViewModel)
            {
                return this.StoreTreeViewModelStyle;
            }
            else if (item is BoxTreeViewModel)
            {
                return this.BoxTreeViewModelStyle;
            }

            return null;
        }
StoreControl_StyleSelector