Hi guys,
I have written a rather detailed custom cell presenter style, which is basically a grid, with 1st column being an ellipse with the cell value data, and 2nd column being a togglebutton/pop up combo. It works well, however the cell's lower row line is cut off, making the cell look "open" and bad on the UI. Any ideas as to what must bhe causing this? How do I contain the custom style entirely within the cell?
I tried reducing the size of this structure; no matter how tiny it becomes, it still cuts off the lower line.
(I tried to attach the image; but there doesn't seem to be an upload button)
Basically like this -
| |____|____|____| (notice how 1st columns lower line has disappeared)
Regards,
Ajinkya
Hi,
I hope that you were able to open the last sample and that it was helpful. Please let me know if you have further questions.
I'm not sure why you wouldn't be able to open my sample. You should be able to use 7-Zip or any compression tool to extract the application.
In any case, the original sample applied your customStyle to one of the fields in a grid after commenting out your Interation.Triggers.
I updated the sample to 2014.1. If you are using a different version of our assemblies than I provided or a different version of Visual Studio please let me know.
In the new sample I added, you’ll see that I did some additional testing following your last comment. I created a couple of other cellvaluepresenter styles, one added a Grid containing the Ellipse and a TextBlock to the ControlTemplate of the CellValuePresenter and I used a Border with the CornerRadius containing a TextBlock (to simulate a ellipse) and I used a Grid containing a Border with a CornerRadius containing a TextBlock ( to fix the size of the ellipse). I also used your basic style applied to one of my Status cells.
I used my own DataTriggers so that I could see multiple styles implemented all at once.
“Critical” using Grid containing a Ellipse and a TextBlock
“Important” is using the style most closely like yours
“Regular” is using a Border to simulate an ellipse
In any case I'm not seeing anything like what you described. In addition to my new sample, I’ll include an image so you can see what I’m seeing, in case you aren’t able to open this sample either. The arrow is pointing to the line which I think you are indicating is not present in your application.
If you are still not able to access my samples, it would probably be best if you could provide me with a small sample of your own that demonstrated the behavior.
Hi Marianne,
I am unable to open that project.. But anyways, it doesn't have to exactly mimic what I'm trying to do you could simply make a custom style, that will for example display the cell text in an embedded ellipse on that cell. Even this simple example cuts off that bottom line.
Thanks for looking into this.
Hi Ajinkya,
I've added your style to a simple grid sample but I'm missing the Interaction .Trigger command elements and I'm not seeing the grid as you described in the cell.
I'm going to attach my sample, if you could update it so that it behaves as you describe I can look into this issue further for you.
I have attached the rar file. TIt includes the custom style, as well as how its used in the infragistics cell.
Thanks..