This Code is Working in WP8.0 but in WP8.1 Universal Apps i got the error.
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
//Some Statements
}
Exception
Cannot change access modifiers when overriding 'protected' inherited member 'Windows.UI.Xaml.FrameworkElement.OnApplyTemplate()
"Error CS0507 can also occur if a class attempts to override a method marked as protected internal defined in referenced metadata. In this situation, the overriding method should be marked as protected."
So, just simply remove the "internal" keyword from your overriding method, and keep it only "protected".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With