Cannot load localization
Posted: Wed Feb 22, 2017 8:08 pm
My Stimuls Designer is set to run in English because it's easier to work in English. However, my WPF application needs to open the StiWpfRibbonViewerControl in Portuguese.
I tried the following
C#
XAML:
It's not working though. Please can somebody help me?
I tried the following
C#
Code: Select all
byte[] array = Encoding.UTF8.GetBytes(Resources.pt_BR); // this is the XML file string
var stream = new MemoryStream(array);
StiOptions.Localization.Load(stream);
reportViewer.Report = GetMyReport();
Code: Select all
<wpfViewer:StiWpfRibbonViewerControl x:Name="reportViewer"/>
It's not working though. Please can somebody help me?