I am trying to language bind the labels from these controls, and I am wondering if there is a way to bind the tool-tips for the tile close and maximize buttons?
Hello,
Thank you for your post. I have been looking into it and I can say that you can use the XamTilesControl’s ResourceStrings to achieve your goal. You are not able to use Binding for this. If you add the following code after the calling of InitializeComponent method of the MainWindow’s Constructor:
Infragistics.Windows.Tiles.Resources.Customizer.SetCustomizedString("MaximizeButtonToolTip", "MyCustomMaximizeTooltip"); Infragistics.Windows.Tiles.Resources.Customizer.SetCustomizedString("CloseButtonToolTip", "MyCustomCloseTooltip");
you will change the tooltips you want. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi,I tried this code sample, but got an error: "The type or namespace name 'Resources' does not exist in the namespace 'Infragistics.Windows.Tiles' (are you missing an assembly reference?)".I have reference to InfragisticsWPF4.Controls.Layouts.XamTileManager.v13.1.dll.What am i missing?
Thanks.
Thank you for your post. I have been looking into it and I can say that the solution I gave before is for the XamTilesControl control, which was a WPF specific control and the control you are using now is XamTilesManager which is cross-platform control and the customization there is different. Here you can find more information how to customize the cross-platform controls:
http://help.infragistics.com/doc/WPF/2013.2/CLR4.0/?page=WPF_NetAdvantage_Win_Client_WPF.html
I also attached a sample project for you, where I followed the steps described in the link. Please let me know if this helps you or you have further questions on this matter.
Anyway, perhaps since I can't see your steps, I tried to do as you did in the example, but it is not enough:I could only set constant values in the resx file. Is there a way to set these strings dynamically?All my strings come from an external file (in the form of WPF resource dictionary). I can't split my resources to 2 places. So I need to somehow combine them.
Thanks,Ravit
Hello Ravit,
If you want to be able to change the Tooltips runtime, you can retemplate the TileHeaderPresenter element and change the Styles for the buttons in it. A good approach will be to copy the default Styles which are located here by default:
C:\Program Files (x86)\Infragistics\2013.2\WPF\DefaultStyles\TileManager\generic.shared.xaml file
and change the tooltips as you want. You can bind them, so you can change them dynamically.
Hope this helps you.