public RuleDesigner(string xaml) { var rule = string.IsNullOrEmpty(xaml) ? null : SimpleXamlSerializer.FromXaml <Rule>(xaml); m_model = RuleModelFactory.CreateModel(rule, m => Changed()); }
public static Rule CreateRule(string xaml) { return(SimpleXamlSerializer.FromXaml <Rule>(xaml)); }