Hello,
I have a small space in the GUI and the space after TableNode take some place.
Like here : http://gyazo.com/933260d32a56c8891a77bd6f0d6f241d
Is there a way to remove the red/blue space ?
The space seems to be a part of the table.
Regards
Hello teamtim,
Thank you for your post.
I have created a sample project with a table node in a XamRichTextEditor, but I can't seem to reproduce this extra space you are seeing, besides from the extra space at the bottom the editor, which is expected. I agree that this extra space in your gyazo linked image does look like it is a part of the table itself, but I cannot seem to get this behavior to show.
I have attached the sample project I used to test this. Please test this on your machine because the results may further indicate the nature of this issue. My test was made using version 15.1.20151.2008 in Infragistics for WPF 2015 Volume 1. Is this the same assembly version you are using?
Would it also be possible for you to please provide some more details on the table you are implementing in your next response? If the table in the attached project is not indicative of the one you are implementing, would it be possible for you to please modify it and send it back?
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
I try to execute your project, and the last space still here :
http://gyazo.com/2830bffc27bf3d9a84f53212dc000e66
At the bottom, the grey area is always here.
I'm using the version 14.2.20142.2178.
The selected area is blue, but for the screenshot it's gray.
I only set the readOnly property.
I use Windows 7 with visual 2013 and the target is net v4.0.
I am a little unsure of what you mean by "The selected area is blue, but for the screenshot it's gray." Are you saying that you are only seeing this space when you click and drag to make a selection at the bottom of the table? If this is the case, then I can see this space you are seeing as well when making a selection at the very bottom of the table in my application as well. Also, with regards to the environmental specifications, I tested my project on a virtual machine with those specs, but was still unable to reproduce this issue you are seeing without having to select the space at the bottom.
I found a way to remove this "tail" at the end of the table, and hopefully it will help you. It involves handling the Loaded event of the XamRichTextEditor and getting the RichDocumentViewTextArea from it by utilizing the Infragistics Utilities class. From that RichDocumentViewTextArea, you can use its Children collection to get the child at index 4, which will be an AdornmentLayer. This AdornmentLayer has a single, Canvas child, which has a path at index 1 in its children collection. If you remove this, you shouldn't see this tail at the end of your table anymore.
I hope this works for you. I have attached a modified version of the original sample I sent you to demonstrate.
Now, the selection at the bottom of the array isn't here.
But the space between the last line and the end of the document still here.
I prefer to have this configuration, like at the end of a ParagrapheNode : http://gyazo.com/9d85b049248a365b4743121ef4b4883f
There is space but not two lines that take some space.
The selection of the array isn't working with the load event, I need it back to copy/paste it.
Thanks for your help
After a bit of research, I have found that you can reduce the amount of space at the bottom of the table in a XamRichTextEditor by applying new ParagraphSettings with ParagraphSpacingSettings to the XamRichTextEditor.Document by utilizing the ApplyParagraphSettings method. If you set the AfterParagraph property on the ParagraphSpacingSettings to a new Extent of 0, it will greatly reduce this extra space you are seeing after the table. It does seem like that extra selection after the table still (somewhat) exists, though, which I am still investigating.
I have attached a modified version of the sample I had originally sent to demonstrate.
Just checking in, did you have any other questions or concerns on this matter?