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. Image for the cookie policy date

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

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

1 Reply

DV Divya Venkatesan Syncfusion Team 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 
 


Loader.
Live Chat Icon For mobile
Up arrow icon