<Compile Include="$(MSBuildThisFileDirectory)Issue6368.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue6077.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue3548.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Issue6472.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue6614.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Issue5239.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)Issue6738.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="$(MSBuildThisFileDirectory)Bugzilla22229.xaml">
view.ClipToOutline = value;
}
+ public static bool SetElevation(this AView view, float value)
+ {
+ if (view.IsDisposed() || !Forms.IsLollipopOrNewer)
+ return false;
+
+ view.Elevation = value;
+ return true;
+ }
++
+ internal static void MaybeRequestLayout(this AView view)
+ {
+ var isInLayout = false;
+ if ((int)Build.VERSION.SdkInt >= 18)
+ isInLayout = view.IsInLayout;
+
+ if (!isInLayout && !view.IsLayoutRequested)
+ view.RequestLayout();
+ }
}
}
if (AutoTrack && Tracker == null)
SetTracker(new VisualElementTracker(this));
- SendVisualElementInitialized(element, this);
+ if (oldElement != null)
+ Tracker?.UpdateLayout();
+
+ if (element != null)
+ SendVisualElementInitialized(element, this);
EffectUtilities.RegisterEffectControlProvider(this, oldElement, element);