How to change pivotGrid Resource String ?
Hello Resul,
Thank you for your post. I can suggest you look into the following link from our online documentation where you can find how to customize the resource strings :
http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=Developers_Guide_Customizing_Resource_Strings.html
You can find the XamPivotGrid control’s resource file in the following location :
C:\Program Files (x86)\Infragistics\NetAdvantage 2012.2\WPF\CLR4.0\Bin\SharedXAML\ InfragisticsWPF4.Controls.Grids.XamPivotGrid.v12.2.resx
Let me know, if you need any further assistance on this matter.
Hi, thank you for answer.
We changed old project this method:
Infragistics.Windows.Editors.Resources.Customizer.SetCustomizedString("LE_ArgumentException_5", "Girilen değer geçerli değil.");
Can I change xampivotgrid resource with this method ? How ?
Thank you for your feedback. The approach that you would like to apply is valid only for the WPF specific controls. The XamPivotGird is a shared control and in order to customize its resource strings you need to create a resource file as described in the section ‘Registering the Customized Resource Files’ in the link from my previous post. After create the .resx file you need to load it before the ‘InitializeComponent’ method in the ‘MianWindow’ constructor like e.g. :
XamPivotGrid.RegisterResources("PivotGridInCSharp.PivotGridResourceStringsSample", typeof(MainWindow).Assembly);
where PivotGridInCSharp is the default namespace of your application( in this case of mine).
Hi,
I add resx file SampleBPivot.PivotGridResourceStringsSample.resx in to my project. I registered before MainWindow. Code is like below.
(BPivotGrid is inheritance from XamlPivotGrid)
namespace SampleBPivot { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary>
public MainWindow() { //XamPivotGrid.RegisterResources("SampleBPivot.Resource1", typeof(MainWindow).Assembly); BPivotGrid.RegisterResources("SampleBPivot.PivotGridResourceStringsSample", typeof(MainWindow).Assembly); InitializeComponent();
}
I got this error. 'The invocation of the constructor on type 'SampleBPivot.MainWindow' that matches the specified binding constraints
threw an exception.' Line number '4' and line position '5'.
I resolved the problem. Thank you for all post.
Hi Yanko,
Thank you for fast response.
Hi Resul,
It seems that everything is right. May you attach a sample application with your customized XamPivotGrid in order to try to apply the resource string on my side.
Looking forward to hearing from you.