predefined dialogs FlowDirection

3 posts, 0 answers
  1. ofir
    ofir avatar
    25 posts
    Member since:
    Jul 2010

    Posted 06 Jul 2010 Link to this post

    how can i set the FlowDirection of the predefined dialogs (Alert, Confirm and Prompt) ?

    THX
  2. George
    Admin
    George avatar
    1332 posts

    Posted 09 Jul 2010 Link to this post

    Hello ofir,

    Thank you for contacting us.

    You can achieve this by setting a style for the window. For example:

    <UserControl.Resources>
            <Style x:Name="RadWindowStyle" TargetType="ContentControl">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ContentControl">
                            <Grid>
                                <TextBlock Text="Text" />
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="FlowDirection" Value="RightToLeft" />
            </Style>
        </UserControl.Resources>

    ... and in the code behind:

    DialogParameters parameters = new DialogParameters();
    parameters.ContentStyle = this.Resources["RadWindowStyle"] as Style;
    RadWindow.Alert(parameters);

    I hope this information helps. I will be glad to assist you further.

     

    All the best,
    George
    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
  3. DevCraft banner
  4. ofir
    ofir avatar
    25 posts
    Member since:
    Jul 2010

    Posted 12 Jul 2010 Link to this post

    it works.

    THX.
Back to Top