FlowDirection="RightToLeft" for RadWindow

3 posts, 0 answers
  1. Yehuda
    Yehuda avatar
    6 posts
    Member since:
    Jun 2010

    Posted 28 Jun 2010 Link to this post

    FlowDirection="RightToLeft" applied for RadWindow distorts its normal behaviour:
    the window, if moved or resized horizontally, moves or resizes to the opposite direction in very strange mode.

    [A simple project for demostration of the those behaviours attached to this message.]
    There is not possibility to add project rar file, so I add the sources here.

    App.xaml

    <Application x:Class="MDIWindows.App"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        StartupUri="Window1.xaml">
        <Application.Resources>         
        </Application.Resources>
    </Application>

    Window1

    <Window x:Class="MDIWindows.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="198" Width="300">
        <StackPanel>
            <Button Content="Open" Click="OnOpenClick" Height="40" />
            <Button Content="BringToFront" Click="OnBringToFrontClick" Height="40" />
        </StackPanel>
    </Window>


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using Telerik.Windows.Controls;
    using WpfApplication1;

    namespace MDIWindows
    {
     /// <summary>
     /// Interaction logic for Window1.xaml
     /// </summary>
     public partial class Window1 : Window
     {
      Example window;
      public Window1( )
      {
       InitializeComponent();
      }

      private void OnOpenClick( object sender, RoutedEventArgs e )
      {
       if( window == null )
       {
        window = new Example();

        window.Width = 200;
        window.Height = 200;
        window.Owner = this;
       }

       window.Show();
      }

      private void OnBringToFrontClick( object sender, RoutedEventArgs e )
      {
       if( window == null )
        window.BringToFront();
      }
     }
    }


    Example

    <telerik:RadWindow x:Class="WpfApplication1.Example"
                
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
                                
            x:Name="window" Header="ABC" WindowStartupLocation="CenterScreen" FlowDirection="RightToLeft" Width="400" Height="244">
       
    </telerik:RadWindow>


    using System;
    using System.Windows;
    using System.Windows.Media;
    using Telerik.Windows.Controls;

    using WindowStartupLocation = System.Windows.WindowStartupLocation;
    using WindowState = System.Windows.WindowState;

    namespace WpfApplication1
    {
     public partial class Example : Telerik.Windows.Controls.RadWindow
     {
      public Example( )
      {
       InitializeComponent();
      }
     }
    }

     









  2. Yehuda
    Yehuda avatar
    6 posts
    Member since:
    Jun 2010

    Posted 28 Jun 2010 Link to this post

    FlowDirection="RightToLeft" applied for RadWindow distorts its normal behaviour:
    the window, if moved or resized horizontally, moves or resizes to the opposite direction in very strange mode.

    [A simple project for demostration of the those behaviours attached to this message.]
    There is not possibility to add project rar file, so I add the sources here.

    App.xaml

    <Application x:Class="MDIWindows.App"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        StartupUri="Window1.xaml">
        <Application.Resources>         
        </Application.Resources>
    </Application>

    Window1

    <Window x:Class="MDIWindows.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="198" Width="300">
        <StackPanel>
            <Button Content="Open" Click="OnOpenClick" Height="40" />
            <Button Content="BringToFront" Click="OnBringToFrontClick" Height="40" />
        </StackPanel>
    </Window>


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;
    using Telerik.Windows.Controls;
    using WpfApplication1;

    namespace MDIWindows
    {
     /// <summary>
     /// Interaction logic for Window1.xaml
     /// </summary>
     public partial class Window1 : Window
     {
      Example window;
      public Window1( )
      {
       InitializeComponent();
      }

      private void OnOpenClick( object sender, RoutedEventArgs e )
      {
       if( window == null )
       {
        window = new Example();

        window.Width = 200;
        window.Height = 200;
        window.Owner = this;
       }

       window.Show();
      }

      private void OnBringToFrontClick( object sender, RoutedEventArgs e )
      {
       if( window == null )
        window.BringToFront();
      }
     }
    }


    Example

    <telerik:RadWindow x:Class="WpfApplication1.Example"
                
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
                                
            x:Name="window" Header="ABC" WindowStartupLocation="CenterScreen" FlowDirection="RightToLeft" Width="400" Height="244">
       
    </telerik:RadWindow>


    using System;
    using System.Windows;
    using System.Windows.Media;
    using Telerik.Windows.Controls;

    using WindowStartupLocation = System.Windows.WindowStartupLocation;
    using WindowState = System.Windows.WindowState;

    namespace WpfApplication1
    {
     public partial class Example : Telerik.Windows.Controls.RadWindow
     {
      public Example( )
      {
       InitializeComponent();
      }
     }
    }

     









  3. UI for WPF is Visual Studio 2017 Ready
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Jun 2010 Link to this post

    Hello Yehuda,

     I logged this problem in our issue tracking system. Here is the PITS ID 2585 which you can use for tracking the progress of the issue.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top