This is a migrated thread and some comments may be shown as answers.

predefined dialogs FlowDirection

2 Answers 45 Views
Window
This is a migrated thread and some comments may be shown as answers.
ofir
Top achievements
Rank 1
ofir asked on 07 Jul 2010, 01:04 AM
how can i set the FlowDirection of the predefined dialogs (Alert, Confirm and Prompt) ?

THX

2 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Jul 2010, 03:09 PM
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
0
ofir
Top achievements
Rank 1
answered on 13 Jul 2010, 04:53 AM
it works.

THX.
Tags
Window
Asked by
ofir
Top achievements
Rank 1
Answers by
George
Telerik team
ofir
Top achievements
Rank 1
Share this question
or