Esempio n. 1
0
 public static DataTemplate GetDataTemplate(System.Linq.Expressions.Expression <Func <FrameworkElement> > constructor)
 {
     return(new DataTemplate
     {
         VisualTree = FrameworkElementFactoryGenerator.Generate(constructor)
     });
 }
Esempio n. 2
0
 public static FrameworkElementFactory GetFrameworkElementFactory(System.Linq.Expressions.Expression <Func <FrameworkElement> > constructor)
 {
     return(FrameworkElementFactoryGenerator.Generate(constructor));
 }