You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow Extension properties setters in initializers #301
Idea 6200089: Allow Extension properties setters in initializers
Status : completed Submitted by Paul on 7/21/2014 12:00:00 AM 6 votes
I suggest we consider allowing ExtensionProperty=expr property setters in initializers.
For example
C(ExtensionProperty = [1;2;3])
Or for example to provide c# “add” pattern like support
type StackLayout with
member x.ChildrenInitializer with set (values : UIElement seq)=
values |> Seq.iter x.Children.Add
let layout = StackLayout (Orientation = StackOrientation.Horizonta,
ChildrenInitializer = [Entry(Placeholder = “Username”);Entry()])
Activity