public RightToLeftDemo() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ar-sa"); this.FlowDirection = FlowDirection.RightToLeft; Assembly assembly = typeof(RightToLeftDemo).Assembly; SfRichTextBoxAdvResourceWrapper.SetResources(assembly, "syncfusion.richtextboxdemos.wpf"); SfRichTextRibbonResourceWrapper.SetResources(assembly, "syncfusion.richtextboxdemos.wpf"); InitializeComponent(); richTextBoxAdv.Load(@"Assets\richtextbox\GettingStarted-ar-sa.docx"); richTextBoxAdv.DocumentTitle = "دورات المغامرة"; richTextBoxAdv.RequestNavigate += RichTextBoxAdv_RequestNavigate; richTextBoxAdv.SelectionChanged += RichTextBoxAdv_SelectionChanged; this.Loaded += OnLoaded; }
/// <summary> /// Initializes a new instance of the <see cref="MainWindow"/> class. /// </summary> public LocalizationDemo() { System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr"); Assembly assembly = typeof(LocalizationDemo).Assembly; SfRichTextBoxAdvResourceWrapper.SetResources(assembly, "syncfusion.richtextboxdemos.wpf"); SfRichTextRibbonResourceWrapper.SetResources(assembly, "syncfusion.richtextboxdemos.wpf"); InitializeComponent(); #if !Framework3_5 //Enables touch manipulation. richTextBoxAdv.IsManipulationEnabled = true; #endif DataContext = richTextBoxAdv; richTextBoxAdv.Load(@"Assets\richtextbox\GettingStarted-fr.docx"); richTextBoxAdv.DocumentTitle = "Getting Started"; richTextBoxAdv.RequestNavigate += RichTextBoxAdv_RequestNavigate; richTextBoxAdv.SelectionChanged += RichTextBoxAdv_SelectionChanged; this.Loaded += OnLoaded; }