Hi all,
I'm building a small app which uses the xamtilemanager. I would like to set the background of a tile transparent.I managed to do this with the header, but i can't find where to do this setting for the content part.
Can anyone point me in the right direction?
Preferrably in code.
Thx!
Hello Jacob,
I have been looking into this for a while and created a sample project representing how the background of the tile’s content could be set to Transparent. In order to achieve this I have retemplated the default XamTile style located in the generic.shared.xaml file in the Infragistics folder. Then I change the Background property of the border which contains the tile’s content to Transparent.
Please feel free to let me know whether this sample project (XamTileManagerBackground.zip) helps you.
Hello,
I am just checking your progress on the issue.
If you have any other questions on the matter, please feel free to ask.
I am checking if this is still an issue for you.
If you require any further assistance on setting a style for the XamTile, please do not hesitate to ask.
Hi Jacob,
You could create a Resource Dictionary to set the style for XamTile by right clicking on the project name in the Solution Explorer choose Add->Resource Dictionary. After defining the style in the resource dictionary file you can add this dictionary as resource to your App.xaml file. By doing this the XamTile style will be used for all tile instances that you create in your application even when they are not in the main window. Here you could find additional information regarding Resource Dictionaries.
I have attached a modified sample project that is representing this approach. Please feel free to let me know if it helps you.
Hi Maria,
Yes this helps me a bit. I'm new to WPF so one small follow up question:
The tiles will be created programmatically. What is in that case the best approach to get this result?Make a generic template in xaml and connect it in code to the tile that needs it?
Regards,
Jacob