4 using System.Collections.Generic;
6 using System.Windows.Markup;
8 namespace SiliconStudio.Presentation.View
13 [ContentProperty(
"Template")]
21 OverriddenProviderNames =
new List<string>();
26 public abstract string Name {
get; }
29 public DataTemplate Template {
get; set; }
35 public List<string> OverriddenProviderNames {
get;
private set; }
38 public abstract bool Match(
object obj);
42 if (other == null)
throw new ArgumentNullException(
"other");
73 bool thisOverrides = OverriddenProviderNames.Contains(other.Name);
74 bool otherOverrides = other.OverriddenProviderNames.Contains(Name);
77 if (thisOverrides && otherOverrides)
81 if (!thisOverrides && !otherOverrides)
92 return thisOverrides ? -1 : 1;
OverrideRule
This enum describes how an ITemplateProvider should override other providers that matches the same ob...
int CompareTo(ITemplateProvider other)
An abstract implementation of the ITemplateProvider interface.
OverrideRule OverrideRule
Gets or sets the rule to use when this provider can potentially override other providers that matches...
An interface for a class that can provide a template for a given object that matches some prerequisit...
TemplateProviderBase()
Initializes a new instance of the TemplateProviderBase class.