Exemple #1
0
        public RuleDesigner(string xaml)
        {
            var rule = string.IsNullOrEmpty(xaml) ? null : SimpleXamlSerializer.FromXaml <Rule>(xaml);

            m_model = RuleModelFactory.CreateModel(rule, m => Changed());
        }
Exemple #2
0
 protected CompositeCollectionPropertyBinding <TProp> CreateCollectionBinding <TProp>(Expression <Func <ICollection <IModel <TProp> > > > property, Expression <Func <ICollection <TProp> > > modelProperty)
 {
     return(new CompositeCollectionPropertyBinding <TProp>(this, Changed, x => RuleModelFactory.CreateModel(x, m => Changed()), property, modelProperty));
 }