Exemplo n.º 1
0
 protected override bool IsCommandProperty(ReferenceStep referenceStep)
 {
     if (base.IsCommandProperty(referenceStep))
     {
         return(EditStylesListCommand.IsCommandProperty(this.TargetElement, referenceStep));
     }
     return(false);
 }
 protected override bool IsCommandProperty(ReferenceStep referenceStep)
 {
     if (base.IsCommandProperty(referenceStep) && EditTemplatesListCommand.IsCommandProperty(this.TargetElement, referenceStep))
     {
         return(true);
     }
     if (EditStylesListCommand.IsCommandProperty(this.TargetElement, referenceStep))
     {
         return(ControlStylingOperations.DoesStyleTargetControl(this.ViewModel.ProjectContext, this.TargetElement.Type, (IPropertyId)referenceStep));
     }
     return(false);
 }