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

newbie, ribbon view don't start

1 Answer 98 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Zeev
Top achievements
Rank 1
Zeev asked on 20 Jul 2015, 12:04 PM

hello to all, a newbie question.

i want to create a ribbon control similar to office.

i can't start the application and it's crashes all the time, there is no additional code behind yet.

when i run the software i getting error:

Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll

Additional information: The invocation of the constructor on type 'Telerik.Windows.Controls.RibbonView.Primitives.RadRibbonApplicationDropDownButton' that matches the specified binding constraints threw an exception.

 

the code:

<Window x:Class="Xcalibur2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Xcalibur2"
        mc:Ignorable="d"
        Title="MainWindow" Height="800" Width="1280">


    <Grid>
        <Grid.Background>
            <ImageBrush Stretch="Fill"  ImageSource="../graphic/background/background.jpg" AlignmentY="Top" AlignmentX="Center"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="5*"/>
            <RowDefinition Height="0.3*"/>
        </Grid.RowDefinitions>
        <!-- ribbon container -->

        <telerik:RadRibbonView>
            <telerik:RadRibbonTab Header="test">
                <telerik:RadRibbonGroup Header="group1">
                    <telerik:RadRibbonRadioButton Name="radBtn1" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn2" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn3" Text="Button3" />
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="group2">
                    <telerik:RadRibbonRadioButton Name="radBtn4" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn5" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn6" Text="Button3" />
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="group3">
                    <telerik:RadRibbonRadioButton Name="radBtn7" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn8" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn9" Text="Button3" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
            <telerik:RadRibbonTab Header="Test 2">
                <telerik:RadRibbonGroup Header="group1">
                    <telerik:RadRibbonRadioButton Name="radBtn21" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn22" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn23" Text="Button3" />
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="group2">
                    <telerik:RadRibbonRadioButton Name="radBtn24" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn25" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn26" Text="Button3" />
                </telerik:RadRibbonGroup>
                <telerik:RadRibbonGroup Header="group3">
                    <telerik:RadRibbonRadioButton Name="radBtn27" Text="Button1" />
                    <telerik:RadRibbonRadioButton Name="radBtn28" Text="Button2" />
                    <telerik:RadRibbonRadioButton Name="radBtn29" Text="Button3" />
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
        </telerik:RadRibbonView>

        <!-- info gauge -->
        <Grid Grid.Row="1" Name="gridInfo">

        </Grid>

        <!-- data container -->
        <Grid Grid.Row="2" Name="dataContainer">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
        </Grid>
        <!-- status bar -->
        <Grid Name="StatusBar">
        </Grid>
    </Grid>
</Window>

 ​

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 22 Jul 2015, 07:09 AM
Hello Zeev,

I have tried to reproduce the described error on our side but with no success. That is why I have attache a sample project using your code snippet. Please note that such errors might be caused if you have some missing resources like the ImageSource in the resource. Also it might be due to some cached resource that is why we suggest to clean/rebuild the solution as deleting the bin/obj folders of the application.

I hope this information helps. Please let us know if you have further questions.

Kind regards,
Kiril Vandov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
RibbonView and RibbonWindow
Asked by
Zeev
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or