TextWrapping Not Working Since Update

3 posts, 1 answers
  1. Benedikt
    Benedikt avatar
    39 posts
    Member since:
    Feb 2018

    Posted 23 Sep 2019 Link to this post

    Hi together,

    I have previously used the following lines to get the MaskedTextInput to wrapp the text.

    I have no installed the last update (R3) and now it says: "The object reference is not declared onto a object instance."

    The code still works but in the designer it marks it as wrong and doesn't update the preview anymore.


    If I let the BasedOn apart it shows everything as it should bot the code not works anymore as it should. So the MaskedInput is empty and I can't click it anymore.

    Without Wrapping the too long lines, well, are too long.


                                            <Style TargetType="maskedInput:PreviewInputTextBox" BasedOn="{StaticResource MaskedInputTextBoxStyle}">
                                                <Setter Property="TextWrapping" Value="Wrap" />
                                                <Setter Property="AcceptsReturn" Value="True" />




  2. Answer
    Dilyan Traykov
    Dilyan Traykov avatar
    1170 posts

    Posted 24 Sep 2019 Link to this post

    Hi Benedikt,

    Thank you for the provided code snippet.

    Based on it, I've prepared a small sample project which uses our latest update (R3), however, I do not observe the error you described.

    Can you please have a look at the attached project and let me know if the error is displayed at your end? If that is the case, please let me know which version of Visual Studio you're using as well as whether clearing the shadow cache of the program provides a different result.

    If the sample project runs without any errors on your machine, please let me know how it differs from the one you're running and if possible, try to modify it to replicate the error message.

    Thank you in advance for your cooperation on the matter. I will be looking forward to your reply.

    Dilyan Traykov
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. Benedikt
    Benedikt avatar
    39 posts
    Member since:
    Feb 2018

    Posted 25 Sep 2019 in reply to Dilyan Traykov Link to this post

    Hi Dilyan,  clearing the cache was the solution. Never had to do so. 

    Thank you.




Back to Top