|
|
|
@ -20,16 +20,26 @@ namespace Perspex.Styling |
|
|
|
public Selector() |
|
|
|
{ |
|
|
|
this.GetObservable = _ => Observable.Return(true); |
|
|
|
this.Priority = BindingPriority.Style; |
|
|
|
} |
|
|
|
|
|
|
|
public Selector(Selector previous, bool stopTraversal = false) |
|
|
|
: this() |
|
|
|
{ |
|
|
|
this.Previous = previous; |
|
|
|
this.Priority = previous.Priority; |
|
|
|
this.InTemplate = previous != null ? previous.InTemplate : false; |
|
|
|
this.stopTraversal = stopTraversal; |
|
|
|
} |
|
|
|
|
|
|
|
public Selector(Selector previous, BindingPriority priority) |
|
|
|
: this() |
|
|
|
{ |
|
|
|
this.Previous = previous; |
|
|
|
this.Priority = priority; |
|
|
|
this.InTemplate = previous != null ? previous.InTemplate : false; |
|
|
|
} |
|
|
|
|
|
|
|
public bool InTemplate |
|
|
|
{ |
|
|
|
get; |
|
|
|
@ -48,6 +58,12 @@ namespace Perspex.Styling |
|
|
|
private set; |
|
|
|
} |
|
|
|
|
|
|
|
public BindingPriority Priority |
|
|
|
{ |
|
|
|
get; |
|
|
|
private set; |
|
|
|
} |
|
|
|
|
|
|
|
public string SelectorString |
|
|
|
{ |
|
|
|
get; |
|
|
|
|