public RuleDesigner(string xaml) { var rule = string.IsNullOrEmpty(xaml) ? null : SimpleXamlSerializer.FromXaml <Rule>(xaml); m_model = RuleModelFactory.CreateModel(rule, m => Changed()); }
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)); }