Example #1
0
        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>();
        }
Example #2
0
        static public void Initilize(WPFEngine engine)
        {
            engine.AddSimpleInstancer <ScrollViewer>();

            engine.AddChildren <ScrollViewer, UIElement>(v => v.Content = null, (v, e) => v.Content = e);
        }
Example #3
0
 static public void Initilize(WPFEngine engine)
 {
     engine.AddChildren <Panel>(p => p.Children);
 }
Example #4
0
 static public void Initilize(WPFEngine engine)
 {
     engine.AddChildren <ItemsControl>(i => i.Items);
 }
Example #5
0
 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);
 }
Example #6
0
 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);
 }