static public void Initilize(WPFEngine engine) { engine.AddSimpleInstancer <Grid>(); engine.AddAttributeLink <Grid, string>("columns", (g, s) => g.SetColumnDefinitionString(s), g => g.GetColumnDefinitionString()); engine.AddAttributeLink <Grid, string>("rows", (g, s) => g.SetRowDefinitionString(s), g => g.GetRowDefinitionString()); engine.AddChildren <Grid>(g => g.Children); engine.AddAttributeLink <UIElement, int>("column", Grid.ColumnProperty); engine.AddAttributeLink <UIElement, int>("row", Grid.RowProperty); engine.AddAttributeLink <UIElement, int>("column_span", Grid.ColumnSpanProperty); engine.AddAttributeLink <UIElement, int>("row_span", Grid.RowSpanProperty); engine.AddSimpleInstancer <GridSplitter>(); }
static public void Initilize(WPFEngine engine) { engine.AddSimpleInstancer <ScrollViewer>(); engine.AddChildren <ScrollViewer, UIElement>(v => v.Content = null, (v, e) => v.Content = e); }
static public void Initilize(WPFEngine engine) { engine.AddChildren <Panel>(p => p.Children); }
static public void Initilize(WPFEngine engine) { engine.AddChildren <ItemsControl>(i => i.Items); }
static public void Initilize(WPFEngine engine) { engine.AddAttributeLink <ContentControl, object>("content", ContentControl.ContentProperty); engine.AddChildren <ContentControl, UIElement>(c => c.Content = null, (c, e) => c.Content = e); }
static public void Initilize(WPFEngine engine) { engine.AddAttributeValue<Decorator, UIElement>("child", (d, e) => d.Child = e); engine.AddChildren<Decorator, UIElement>(d => d.Child = null, (d, e) => d.Child = e); }