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

Ribbon Content Host???

1 Answer 129 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 04 Jun 2012, 07:27 PM
I am trying to get my feet wet with Telerik's controls as we are poised to get the Premium Package.  I found a nice How To video here(Brian Lagunas) that is very applicable to my environment however I am struggling to use Telerik's controls as the video maker uses Infragistics.  The key sticking point is the below.

<telerik:RadRibbonWindow x:Class="IgOutlook.Shell"
                         xmlns:prism="http://www.codeplex.com/prism"
        Title="Shell" Height="300" Width="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
     
    <telerik:RadRibbonView Name="radRibbonView1" prism:RegionManager.RegionName="RibbonTabRegion">       
        <telerik:RadRibbonView.ApplicationMenu>
            <telerik:ApplicationMenu />
        </telerik:RadRibbonView.ApplicationMenu>
        <telerik:RadRibbonView.QuickAccessToolBar>
            <telerik:QuickAccessToolBar />
        </telerik:RadRibbonView.QuickAccessToolBar>
 
         
    </telerik:RadRibbonView>
 
    <DockPanel LastChildFill="True">
            <telerik:RadOutlookBar DockPanel.Dock="Left" Width="200" prism:RegionManager.RegionName="OutlookBarGroupRegion" />
            <ContentControl prism:RegionManager.RegionName="ContentRegion" Margin="1,3,3,3" />
        </DockPanel>
</telerik:RadRibbonWindow>

In his video there is a control for "Ribbon Window Content Host" that doesn't seem to have a counterpart in Telerik.  The code above gives me a design time exception of "The Property Content is set more then once".

Can anyone show me what I am doing wrong or missing?  This app is meant to be a proof of concept so I can justify to my boss purchasing this tool set.

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tsvetkov
Telerik team
answered on 07 Jun 2012, 07:51 AM
Hi Patrick,

The RadRibbonWindow derives from Window so it is a ContentControl and can have a single element for it's content (as every other ConentControl and Window) so you should simply use some root panel to wrap all your other elements (i.e. you can use Grid).

Kind regards,
Viktor Tsvetkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Patrick
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Share this question
or