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

Radwindow.Confirm width

3 Answers 144 Views
Window
This is a migrated thread and some comments may be shown as answers.
trixxie
Top achievements
Rank 1
trixxie asked on 06 Apr 2010, 11:29 AM
Hi,

Is there a way to set the width of a Rad.Confirm window? I tried DialogParameters but it does not contain a property for width.

Thanks,
Trisha

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 06 Apr 2010, 12:05 PM
Hi Trisha,

 The dialog parameters contain a property for the style of the RadWindow and of the Alert (the confirm control is actually an alert control, that is place inside a RadWindow). You could use the style to set any of the properties of the RadWindow control.

Hope this helps!

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.
0
varsha Motwani
Top achievements
Rank 1
answered on 06 Jul 2010, 12:46 PM
Hi,
Can you please tell me ,how to create style for Content and window.
0
George
Telerik team
answered on 09 Jul 2010, 09:27 AM
Hi varsha Motwani,

Thank you for contacting us.

You can try achieve this with the code below in the xaml:

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

and in the code-behind:

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

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

Greetings,
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
Tags
Window
Asked by
trixxie
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
varsha Motwani
Top achievements
Rank 1
George
Telerik team
Share this question
or