Open Sasikumar3595 opened 4 years ago
@hartez , Any update on this?
@hartez , Any update on this?
@Sasikumar3595 No. If anything changes with this issue, it will be updated here.
Question, though - in your method for converting a Forms element to an IVisualElementRenderer:
internal static IVisualElementRenderer Convert(Xamarin.Forms.View source, Xamarin.Forms.VisualElement valid, Context context)
{
var render = Platform.GetRenderer(source);
render = Platform.CreateRendererWithContext(source, context);
Platform.SetRenderer(source, render);
return render;
}
Why do you call var render = Platform.GetRenderer(source);
and immediately overwrite the result with render = Platform.CreateRendererWithContext(source, context);
?
@hartez ,
render = Platform.GetRenderer(source);
as not needed.
Replace the following code
var render = Platform.GetRenderer(source);
render = Platform.CreateRendererWithContext(source, context);
with
var render = Platform.CreateRendererWithContext(source, context);
Note: Is this issue raised due to this conversion?
when will the issue resolved?
@hartez , Any update on this?
@hartez, Any update on this?
@hartez / @samhouts Any update on this?
Description
In our custom control, we are providing the DataTemplate property for view customization support. But the template does not rendering properly.
If we set the HorizontalOptions or VerticalOptions to label inside the AbsoluteLayout then the empty view shown. else the template rendered properly.
Steps to Reproduce
Expected Behavior
Custom View(DataTemplate) rendered properly
Actual Behavior
Custom View(DataTemplate) rendered properly
Basic Information
Screenshots
Issue:
Reproduction Link
Sample Link : CustomControl (4).zip
Code Snippet for converting Xamarin forms view to Native forms view
In Sample
Set HorizontalOptions or VerticalOptions inside the AbsoluteLayout makes issue eg.,
If we does not set HorizontalOptions or VerticalOptions then it does not reproduced eg.,