How can you extract the Default ControlTemplate from a Xamarin.Forms control?

longlostbrolonglostbro USMember ✭✭

This question is the same as this but applied to xamarin forms. https://stackoverflow.com/questions/8825030/how-to-extract-default-control-template-in-visual-studio

I would like to create a control template based on the original/default control template. For example, what is the default control template for ContentPage?

Answers

  • VovaKamishnikovVovaKamishnikov USMember ✭✭✭
    edited March 17

    Xamarin Forms doesn't use control templates for basic controls as it does WPF
    Instead XF uses native controls.
    For example Xamarin.Forms.Button is UIButton for iOS and Android.Button for Android

  • longlostbrolonglostbro USMember ✭✭
    If I understand you correctly, on xamarin.forms it gives you the option to set a controltemplate but that doesnt do anything?
  • VovaKamishnikovVovaKamishnikov USMember ✭✭✭

    If I understand you correctly, on xamarin.forms it gives you the option to set a controltemplate but that doesnt do anything?

    ... but doesn't have default controltemplate

Sign In or Register to comment.