Hi,
We've a problem that a few PC can't showing the value completely when textwarpping is opened. They have same string which is "out of Range." If they changed the width of field to wider, the string "Range" still can't showing. But can showing the string "Range" if narrowing the width of field.
I did some tests for their PC like following:
<!--
<igDP:Field Name="Description" Label="{x:Static resourceRepository:Resources.RMC_Model_WarningResultItem_Description}"> <igDP:Field.Settings> <igDP:FieldSettings> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="IsReadOnly" Value="True" /> <Setter Property="TextWrapping" Value="NoWrap"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
-->
Thanks,
Was this ever resolved? because 4 years later I have same issue...
Hello Bardon,
Thank you for your post.
I have been looking into the code snippet that you have provided. I modified my previous project in order to test with this code and it works on my side. I tested this project with the latest Service Release of Infragistics 15.1 and 15.2 on Windows 7. Would you please provide me with more detailed information regarding the specific version and build(Service Release) of Infragistics that you are using, Operating system and any other information that might help reproducing your issue in order to be able to identify what might be causing this behavior?
Looking forward to hearing from you.
Thank you for using Infragistics Components!
Hi Zhivko,
I need to clarify something as below:
(1) We are able to reproduce this issue, but only a few PC can reproduce it(not include mine).
(2) I made a copy mistake in last post. The codes are following:
<igDP:Field Name="Description" Label="{x:Static resourceRepository:Resources.RMC_Model_WarningResultItem_Description}"> <igDP:Field.Settings> <igDP:FieldSettings> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="IsReadOnly" Value="True" /> <Setter Property="TextWrapping" Value="Wrap"/>
<Setter Property="igWindows:SimpleTextBlock.OptimizeWidthMeasurement" Value="False"/>
</Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
I've tested your changes, this issue still appear.
What are you want to know about the environment? You can give me a list or modify the codes to further test.
Thank you.
I have been looking into it. Would you please try to set the OptimizeWidthMeasurement property of SimpleTextBlock to false for this field and let me know if you are able to reproduce this issue? For example:
<igWPF:Field Name="Label" Label="Description" >
<igWPF:Field.Settings>
<igWPF:FieldSettings>
<igWPF:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="TextWrapping" Value="NoWrap"/>
</Style>
</igWPF:FieldSettings.EditorStyle>
</igWPF:FieldSettings>
</igWPF:Field.Settings>
</igWPF:Field>
Thanks for your reply.
Unfortunately, your sample can't reproduce this issue on that environment which is able to reproduce this issue with our project.
I will update your sample until it can reproduce this issue, but this need time to do it. So please wait..
BTW: Can you ask the developer review the text wrapping logic about the difference of the upper case "R" and the lower case "r" ? Because it can resolve this issue.
Brandon