src/Microsoft.PowerShell.GraphicalHost/ManagementList/FilterProviders/FilterRulePanel.cs
/// <summary>
/// Associates a DataTemplate with a Type so that objects of that Type
/// that are displayed in FilterRulePanel use the specified DataTemplate.
/// </summary>
/// <param name="type">
/// The type to associate the DataTemplate with.
/// </param>
/// <param name="dataTemplate">
/// The DataTemplate to associate the type with.
/// </param>
Associates a DataTemplate with a Type so that objects of that Type
that are displayed in FilterRulePanel use the specified DataTemplate.
Associates a DataTemplate with a Type so that objects of that Type that are displayed in FilterRulePanel use the specified DataTemplate .
public void AddFilterRulePanelItemContentTemplate(Type type, DataTemplate dataTemplate)
        {
            if (null == type)
            {
                throw new ArgumentNullException("type");
            }
            if (null == dataTemplate)
            {
                throw new ArgumentNullException("dataTemplate");
            }
            this.filterRuleTemplateSelector.TemplateDictionary.Add(new KeyValuePair<Type, DataTemplate>(type, dataTemplate));
        }
public void AddFilterRulePanelItemContentTemplate ( Type type , DataTemplate dataTemplate ) { if ( null == type ) { throw new ArgumentNullException ( " " ) ; } if ( null == dataTemplate ) { throw new ArgumentNullException ( " " ) ; } this . filterRuleTemplateSelector . TemplateDictionary . Add ( new KeyValuePair < Type , DataTemplate > ( type , dataTemplate ) ) ; }
Associates a DataTemplate with a Type so that objects of that Type
that are displayed in FilterRulePanel use the specified DataTemplate.
Associates a DataTemplate with a Type so that objects of that Type that are displayed in FilterRulePanel use the specified DataTemplate .
type
Type
The type to associate the DataTemplate with.
The type to associate the DataTemplate with .
dataTemplate
DataTemplate
The DataTemplate to associate the type with.
The DataTemplate to associate the type with .