Calling a parameterized constructor from XAML

.NET 4.0 brings a new feature that challenges the answer – but apparently only for UWP applications (not WPF).

x:Arguments Directive

<object ...>
    <x:Arguments>
        oneOrMoreObjectElements
    </x:Arguments>
</object>

Leave a Comment