Esempio n. 1
0
 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();
        }
Esempio n. 4
0
 public virtual bool CheckCompatibility(HintsCollection hints)
 {
     return(true);
 }
 public static void SetHintsCollection(DependencyObject obj, HintsCollection value)
 {
     obj.SetValue(HintsCollectionProperty, value);
 }
Esempio n. 6
0
 public abstract bool CheckCompatibility(HintsCollection hints);
Esempio n. 7
0
 public override bool CheckCompatibility(HintsCollection hints)
 {
     return(true);
 }
Esempio n. 8
0
 public override bool CheckCompatibility(HintsCollection hints)
 {
     return(!(from x in hints.OfType <LockHint>()
              select x).Any());
 }