We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[UWP] Incorrect rendering after changing content by code in a particular state

Thread ID:

Created:

Updated:

Platform:

Replies:

150356 Jan 3,2020 07:11 AM UTC Jan 7,2020 11:13 AM UTC Xamarin.Forms 1
loading
Tags: SfTextInputLayout
Marco Negroni
Asked On January 3, 2020 07:11 AM UTC

Good morning,

as you can see in the attached video, i'm using the version 17.4.0.40, there is a rendering bug when i change the Editor content by code inside a SfTextInputLayout, once pasted data, deleted the content pressing for example "Control + A" and "Del" and setted a new data by code.

<sfTextInputLayout:SfTextInputLayout x:Name="sfTextInputLayout_Settings_LicenseData" ContainerType="Outlined" OutlineCornerRadius="5" ReserveSpaceForAssistiveLabels="False" FocusedColor="#007bff" ErrorColor="#dc3545" LeadingViewPosition="Inside">
<sfTextInputLayout:SfTextInputLayout.LeadingView>
<ImageButton x:Name="imageButton_Settings_PasteLicenseDataFromClipboard" HeightRequest="20" Aspect="AspectFit" Source="glyphicons_30_clipboard.png" Clicked="ImageButton_Settings_PasteLicenseDataFromClipboard_Clicked"/>
</sfTextInputLayout:SfTextInputLayout.LeadingView>

<Editor x:Name="editor_LicenseData" AutoSize="TextChanges"/>
</sfTextInputLayout:SfTextInputLayout>

private async void ImageButton_Settings_PasteLicenseDataFromClipboard_Clicked(object sender, System.EventArgs e)
{
string pastedData = await Clipboard.GetTextAsync();

this.editor_LicenseData.Text = pastedData.Trim();
}

Thanks in advance

Attachment: 20200103_080113_61ffdf58.7z

Divya Venkatesan [Syncfusion]
Replied On January 7, 2020 11:13 AM UTC

  
Hi Marco, 
  
Greetings from Syncfusion. 
  
We are able to reproduce the reported issue and we will check and fix this internally. You can resolve this issue in sample by using IsHintAlwaysFloated property of TextInputLayout as shown in the below code snippet. 
  
Code snippet [C#]: 
  
private async void ImageButton_Settings_PasteLicenseDataFromClipboard_Clicked(object sender, System.EventArgs e) 
{ 
    string pastedData = await Clipboard.GetTextAsync(); 
 
    if (Device.RuntimePlatform == Device.UWP) 
    { 
        sfTextInputLayout_Settings_LicenseData.IsHintAlwaysFloated = true; 
        this.editor_LicenseData.Text = pastedData.Trim(); 
        sfTextInputLayout_Settings_LicenseData.IsHintAlwaysFloated = false; 
    } 
    else 
    { 
        this.editor_LicenseData.Text = pastedData.Trim(); 
    } 
} 
 
  
  
Please let us know if you need any further assistance. 
  
Regards, 
Divya Venkatesan 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon