Hi,
I'm new with Telerik controls and am testing the demo Telerik WPF controls.
I have a problem with Right To Left support:
I create a new "Rad Control Browser Application" project. Then in "Page1" page, set it's FlowDirection property to "RightToLeft", then I place a button in this page, and in it's click event instantiate a RadWindow inherited control.
In this window I try to place some drag and drop samples. For example I place two tree with IsDragDropEnabled sets to true (It's not matter, I also test samples provided with WPF controls).
The problem is here:
When the FlowDirection property of the page is "LeftToRight" all things works well, but when this property is set to "RightToLeft", If I drag somthing for example from right to left it will move in opposite direction from left to right.
Note that I change the page's FlowDirection property, not the window. when I just change the window FlowDirection property all things are well. The problem is from page's FlowDirection property.
Sorry for my bad English. :)
Here is my source codes, please see these if my explanation is confusing.
I will attach an image of the result.
Page1.xaml:
Page1.cs:
RadWindow1.xaml:
RadWindow1.cs
So, Any Ideas?
Thanks.
I'm new with Telerik controls and am testing the demo Telerik WPF controls.
I have a problem with Right To Left support:
I create a new "Rad Control Browser Application" project. Then in "Page1" page, set it's FlowDirection property to "RightToLeft", then I place a button in this page, and in it's click event instantiate a RadWindow inherited control.
In this window I try to place some drag and drop samples. For example I place two tree with IsDragDropEnabled sets to true (It's not matter, I also test samples provided with WPF controls).
The problem is here:
When the FlowDirection property of the page is "LeftToRight" all things works well, but when this property is set to "RightToLeft", If I drag somthing for example from right to left it will move in opposite direction from left to right.
Note that I change the page's FlowDirection property, not the window. when I just change the window FlowDirection property all things are well. The problem is from page's FlowDirection property.
Sorry for my bad English. :)
Here is my source codes, please see these if my explanation is confusing.
I will attach an image of the result.
Page1.xaml:
<Page x:Class="RadControlsWpfBrowserApp1.Page1" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" Title="Page1" FlowDirection="RightToLeft"> <Grid> <Controls:RadButton Content="Open the window" Width="100" Height="40" Click="RadButton_Click" /> </Grid></Page>Page1.cs:
using System.Windows;using System.Windows.Controls;namespace RadControlsWpfBrowserApp1{ /// <summary> /// Interaction logic for Page1.xaml /// </summary> public partial class Page1 : Page { public Page1() { InitializeComponent(); } private void RadButton_Click(object sender, RoutedEventArgs e) { var page = new RadWindow1(); page.ShowDialog(); } }}RadWindow1.xaml:
<telerik:RadWindow x:Class="RadControlsWpfBrowserApp1.RadWindow1" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Header="RadControlsScenario1" Height="300" Width="300" WindowStartupLocation="CenterOwner"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <telerik:RadTreeView Name="LeftRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1"/> <telerik:RadTreeView Name="RightRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1" Grid.Column="1"/> </Grid></telerik:RadWindow>RadWindow1.cs
using System.Collections.Generic;namespace RadControlsWpfBrowserApp1{ /// <summary> /// Interaction logic for RadWindow1.xaml /// </summary> public partial class RadWindow1 { public RadWindow1() { InitializeComponent(); var items = new List<string>() { "Item1", "Item2", "Item3" }; RightRadTreeView.ItemsSource = items; } }}So, Any Ideas?
Thanks.