stretch contents of RadPage within RadFrameContainer within RadWindow

4 posts, 1 answers
  1. Rami Abughazaleh
    Rami Abughazaleh avatar
    27 posts
    Member since:
    Feb 2010

    Posted 12 Aug 2010 Link to this post

    Hi.

    I am trying to update the wizard example that can be found here:
    http://demos.telerik.com/silverlight/wizardexample/

    Sample code can be downloaded from here:
    http://www.telerik.com/community/forums/silverlight/general-discussions/how-to-create-wizard-screens-in-silver-light.aspx
    http://www.telerik.com/ClientsFiles/156323_wizardexample.zip
    http://www.telerik.com/community/forums/silverlight/general-discussions/how-to-create-wizard-screens.aspx
    http://www.telerik.com/ClientsFiles/156324_wizardexample.zip

    I basically want the contents to stretch and fill the parent RadFrameContainer, but I can't seem to figure it out.

    Is this even possible?

    For example, when you view the demo and maximize the RadWindow, its contents do not stretch even though I set HorizonalAlignment="Stretch" on every UIElement in the heirarchy.

    Any ideas?

    I am currently using RadControls_for_Silverlight_4_2010_2_0714.

    Thank you.
  2. Answer
    Dani
    Admin
    Dani avatar
    848 posts

    Posted 18 Aug 2010 Link to this post

    Hi Rami Abughazaleh,

    Thank you for contacting us.

    You need to change the Width and Height of each RadPage:

    <telerik:RadPage x:Class="WizardExample.Page2"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:teleriknavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
       Height="480" Width="640">
      
    ..
    </telerik:RadPage>


    Width="640" Height="480" is what the size of each screen is now. Adjust this to your own liking. Furthermore, you need to adjust the Grid columns and rows to the new size of the page, since most of the widths and heights are hard-coded.


    Kind regards,
    Dani
    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. Veda
    Veda avatar
    18 posts
    Member since:
    May 2011

    Posted 13 May 2011 Link to this post

    Hi,
    I want to navigate between the dialog windows. Some thing like, i have opened one window and on click of next another window should display. Also it shouldnt look like 2 windows are opened.
  5. Dani
    Admin
    Dani avatar
    848 posts

    Posted 16 May 2011 Link to this post

    Hello Veda,

    I believe you wish to create a wizard with RadWindow. Please, use the resources posted earlier in this thread to see an example of how this can be done.

    Please note, however, that this is an old example and RadPage, RadFrame and RadFrameContainer are no longer supported. Instead, you can use the Silverlight 4 Navigation framework which provides paged navigation for the same purposes. Please, check this helpful MSDN article on the topic.
     
    I believe switching to Silverlight 4 navigation will be easy enough. However, if you need more help on this subject, let me know.


    Kind regards,
    Dani
    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