How can I put a border around the carousel of a certain color? I'm looking at color coding my carousel images by loading that hex color into the datatable that loads the carousel's datasource. From there, how can I set the border or even a background color to be a certain color on the carousel object?
As a side note...could I load an image and set it as the background image?
Jeremy,
I suppose the easiest way is to create a VisualBrush from that image (background image) and set the Background property of the CellValuePresenter to that visual brush.
You can also place an image in the cellvaluepresenter's template and make it stretched, but I think the visual brush would be a better approach.
Alex.
I looked in there, but didn't see any samples. Can you send me a sample solution that deals with that or some files.
I'm looking to make the background image look like a file folder and the normal text on top look like it's writing on the folder....ex:
Notice the background is the folder and I'm going to stack the text (Columns as far as the Datasource for the carousel goes) and then putting the border around it (Blue). This is what I'm trying to accomplish...any help toward this would be greatly appreciated. Thanks, Jeremy
What do you mean by background image?
It depends on how you retemplate the CellValuePresenter - the image in the control template will be the background image.
The full path to default styles directory should be something like:
~:\Program Files\Infragistics\NetAdvantage for .NET 2009.1\WPF\DefaultStyles
How would I add a background image? or is it the same way? Where is the defaultstyles folder in the infragistics stuff?
Thanks, jeremy
Hello,
To place a border around the carousel item, you have to retemplate the CellValuePresenter.
You can see the default style for the CellValuePresenter (and all the rest of the controls) in the DefaultStyles directory in the Infragistics folder. For the background of that border, you can use converters (IValueConverter).
Hope this helps,