Radwindow.Confirm width

4 posts, 0 answers
  1. trixxie
    trixxie avatar
    1 posts
    Member since:
    Oct 2009

    Posted 06 Apr 2010 Link to this post

    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
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. varsha Motwani
    varsha Motwani avatar
    23 posts
    Member since:
    Apr 2010

    Posted 06 Jul 2010 Link to this post

    Hi,
    Can you please tell me ,how to create style for Content and window.
  5. George
    Admin
    George avatar
    1332 posts

    Posted 09 Jul 2010 Link to this post

    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
Back to Top