public override bool CheckCompatibility(HintsCollection hints) { if ((from x in hints.OfType <LockHint>() select x).Any()) { return(false); } else { return(true); } }
public void Initialize(IExampleInfo exampleInfo) { this.exampleObject = null; this.configuratorObject = null; this.hints = null; this.Example = exampleInfo; this.Control = exampleInfo.ExampleGroup.Control; this.ExampleCodeFilesCollectionViewSource = new CollectionViewSource() { Source = ExampleSourceCodeHelper.GetCodeFilesForExample(exampleInfo) }; var warningSuppression = this.RefreshAsyncProperties(); }
public void Initialize(ISubExample exampleInfo) { this.exampleObject = null; this.configuratorObject = null; this.hints = null; this.Example = new ExampleInfo { ControlName = exampleInfo.PackageName, PackageName = exampleInfo.PackageName, Name = exampleInfo.Name, HeaderText = exampleInfo.Title }; // exampleInfo; this.Control = null; // exampleInfo.ExampleGroup.Control; this.ExampleCodeFilesCollectionViewSource = new CollectionViewSource() { Source = ExampleSourceCodeHelper.GetCodeFilesForExample(exampleInfo) }; this.NavigationContext = exampleInfo.NavigationParameter; var warningSuppression = this.RefreshAsyncProperties(); }
public virtual bool CheckCompatibility(HintsCollection hints) { return(true); }
public static void SetHintsCollection(DependencyObject obj, HintsCollection value) { obj.SetValue(HintsCollectionProperty, value); }
public abstract bool CheckCompatibility(HintsCollection hints);
public override bool CheckCompatibility(HintsCollection hints) { return(true); }
public override bool CheckCompatibility(HintsCollection hints) { return(!(from x in hints.OfType <LockHint>() select x).Any()); }