XAML - setting a constructor parameter

Stan_OkunevicStan_Okunevic GBUniversity ✭✭

Hey everyone,

I have a custom label CustomLabel. It may not have a default constructor, a parameter has to be specified (CustomLabel(string parameter)). How would one add a constructor parameter when creating the label via Xaml?

Answers

  • TorbenKruseTorbenKruse DEMember ✭✭✭

    Try:

    <CustomLabel>
        <x:Arguments>
            // Your Parameters
        </x:Arguments>
    </CustomLabel>
    
Sign In or Register to comment.