Amoeba.Windows.ChatControl_StyleSelector.SelectStyle C# (CSharp) Method

SelectStyle() public method

public SelectStyle ( object item, DependencyObject container ) : System.Windows.Style
item object
container System.Windows.DependencyObject
return System.Windows.Style
        public override Style SelectStyle(object item, DependencyObject container)
        {
            if (item is ChatCategorizeTreeViewModel)
            {
                return this.ChatCategorizeTreeViewModelStyle;
            }
            else if (item is ChatTreeViewModel)
            {
                return this.ChatTreeViewModelStyle;
            }

            return null;
        }
ChatControl_StyleSelector