Beispiel #1
0
 public static NElement RowDefinitions(this NElement self, params Func <NElement, NElement>[] ctors)
 {
     return(self.RowDefinitions(ctors.Select((ctor, idx) => SafeCall(new NXaml <RowDefinition>(idx), ctor)).ToArray()));
 }
Beispiel #2
0
 public static NElement RowDefinitions(this NElement self, int count, Func <NElement, NElement> ctor = null)
 {
     return(self.RowDefinitions(Enumerable.Range(1, count).Select(idx => SafeCall(CreateElement <RowDefinition>(idx), ctor)).ToArray()));
 }
Beispiel #3
0
 public static NElement Rows(this NElement self, params double[] heights)
 {
     return(self.RowDefinitions(heights.Select((w, idx) => new NXaml <RowDefinition>(idx).Height(w, GridUnitType.Star)).ToArray()));
 }