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())); }
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())); }
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())); }