Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Bug] Replace all uses of IsDesignerContext

Open PureWeen opened this issue 6 years ago • 0 comments

Description

This check here

else if ($"{context}".Contains("com.android.layoutlib.bridge.android.BridgeContext"))

Is expensive and we should be able to achieve the same thing a couple different ways

  • by checking IsInEditMode and setting it's result to a static variable
  • We could also set a flag ImNotRunningInTheDesignerSoDontCallToString from FormsAppCompatActivity because Designer doesn't run any of the code inside FormsAppCompatActivity

PureWeen avatar Aug 15 '19 22:08 PureWeen