Telerik blogs

With the upcoming release of RadControls for Silverlight Q3 2010 we are announcing a new ribbon control – RadRibbonWindow. It will give the same opportunities as RadRibbonWindow for WPF, in order to have specialized window that is pre-configured with a RadRibbonBar to emulate MS Office UI and so that you don’t have to spend time setting up this first layer of the UI. It also comes with a set of minimize, maximize and close buttons so that you don’t have to add these yourself.

An application that will use the new RadRibbonWindow should be configured to run in out-of-browser mode and also to require elevated trust permissions with one of these options: No Border or Borderless Round Corners (the preferred one). These two steps could be achieved this way:

Configuration

First you need to right click your Silverlight project and choose the Properties option. Then you need to check the following:

oobsettings

Then you need to click on the Out-of-Browser Settings … button and in the new window choose the following:

elevatedtrust

Once this is done, you just need to add a RadRibbonWindow control in your Main page and put the RadRibbonBar and all your other content inside it:

<UserControl x:Class="RadRibbonWindowOOB.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
  
    <telerik:RadRibbonWindow>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
              
            <telerik:RadRibbonBar />
              
            <!-- Put here everything else you need -->
        </Grid>
    </telerik:RadRibbonWindow>
</UserControl>

Finally when you run the application, you need to install it, in order to go to out-of-browser mode.

Themes

The RadRibbonWindow comes with full support for all our predefined themes (Office Black, Office Blue, Office Silver, Summer, Vista, Windows 7, Transparent, Expression Dark), so you can choose the most suitable for your needs.

Here is a screenshot of the end result:

ribbonwindow

Download the source code of the demo project


About the Author

Viktor Tsvetkov

Software Developer,
WinCore Team

Comments

Comments are disabled in preview mode.