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

Urgent - Ribbon not visable after update

3 Answers 100 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 20 Mar 2013, 12:19 PM
Hi,

We have just upgraded to 2013.1.220.40 and now we have a problem where the ribbonview is not visible on some usercontrols/radwindows in our application. This is a problem in the designer and at run time. Please note that no other changes have been made, just upgrading telerik and now the ribbon is gone. An example of the XAML in a radwindow with the missing ribbon is listed below...

<telerik:RadWindow x:Class="Amtech.Wpf.Presentation.Modules.FastTest.Views.ObservationMaintenance.ObservationCategoryMaintenanceEditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"        
        xmlns:commonPresentation="clr-namespace:Amtech.Wpf.Common.ApplicationFramework.Presentation;assembly=Amtech.Wpf.Common.ApplicationFramework"        
        xmlns:commonControls="clr-namespace:Amtech.Wpf.Common.ApplicationFramework.Presentation.Controls;assembly=Amtech.Wpf.Common.ApplicationFramework"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:galaSoftCommand="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"
        xmlns:commonTriggers="clr-namespace:Amtech.Wpf.Common.ApplicationFramework.Presentation.Triggers;assembly=Amtech.Wpf.Common.ApplicationFramework"        
        xmlns:commonConverters="clr-namespace:Amtech.Wpf.Common.ApplicationFramework.Presentation.Converters;assembly=Amtech.Wpf.Common.ApplicationFramework"        
        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         
        Header="{Binding Path=DisplayText}" 
        Height="227" 
        Width="566" 
        WindowStartupLocation="CenterOwner" 
        ResizeMode="NoResize" 
        Padding="5" 
        d:DesignHeight="575" 
        Name="windowObservatiobCategoryMaintenanceEdit">
    <telerik:RadWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Amtech.Wpf.Common.ApplicationFramework;component/Presentation/Assets/IconResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </telerik:RadWindow.Resources>
    <telerik:RadBusyIndicator IsBusy="{Binding IsBusy}" IsIndeterminate="True">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <telerik:RadRibbonView Name="ribbonView"  TitleBarVisibility="Collapsed" Grid.Row="0" Grid.ColumnSpan="2" ApplicationButtonVisibility="Collapsed">
                <telerik:RadRibbonTab Name="ribbonTabMain" Header="{Loc ObservationCategory}">
                    <telerik:RadRibbonGroup Name="ribbonGroupMain" Header="{Loc ObservationCategory}">
                        <telerik:RadRibbonButton Name="buttonSave" 
                                                CollapseToSmall="WhenGroupIsMedium"
                                                telerik:ScreenTip.Description="{Loc SaveObservationCategoryTooltip}"
                                                telerik:ScreenTip.Title="{Loc Save}"
                                                Size="Large"
                                                Command="{Binding Path=SaveCommand}"
                                                Text="{Loc Save}" 
                                                SmallImage="{StaticResource Save32}"/>
                        <StackPanel>
                            <telerik:RadRibbonButton Name="buttonCreateNew" 
                                                CollapseToSmall="WhenGroupIsMedium"                                          
                                                telerik:ScreenTip.Description="{Loc NewObservationCategoryTooltip}"
                                                telerik:ScreenTip.Title="{Loc NewObservationCategory}"
                                                Size="Medium" 
                                                Command="{Binding Path=CreateNewCommand}"
                                                Text="{Loc NewObservationCategory}"
                                                LargeImage="../../Resources/Icons32x32/cubes.png"/>
                            <telerik:RadRibbonButton Name="buttonSaveClose" 
                                                CollapseToSmall="WhenGroupIsMedium"
                                                telerik:ScreenTip.Description="{Loc SaveCloseObservationCategoryTooltip}"
                                                telerik:ScreenTip.Title="{Loc SaveClose}"
                                                Size="Medium"
                                                Command="{Binding Path=SaveCloseCommand}"
                                                Text="{Loc SaveClose}" 
                                                LargeImage="{StaticResource SaveAndClose16}"/>


                        </StackPanel>
                        <telerik:RadRibbonButton Name="buttonClose" 
                                                CollapseToSmall="WhenGroupIsMedium"                                          
                                                telerik:ScreenTip.Description="{Loc CloseTooltip}"
                                                telerik:ScreenTip.Title="{Loc Close}"
                                                Size="Large"
                                                Command="{Binding Path=CloseCommand}"
                                                Text="{Loc Close}"
                                                LargeImage="{StaticResource Close32}"/>
                    </telerik:RadRibbonGroup>
                </telerik:RadRibbonTab>
            </telerik:RadRibbonView>
            <Grid Grid.Row="1" Margin="10">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>

                    <Label Grid.Column="0" Content="{Loc ObservationCategoryTitle}"/>
                    <TextBox Grid.Column="1" Text="{Binding ObservationCategory.Name, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"></TextBox>
                </Grid>

            </Grid>
        </Grid>
    </telerik:RadBusyIndicator>
</telerik:RadWindow>

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 20 Mar 2013, 12:26 PM
Hi Steve,

The RadRibbonView control has a feature that collapses it altogether if the size of its container is under the default threshold of 300x250px. This is a built-in feature of the control that is controlled through the CollapseThresholdSize property - you can use it to change the threshold size to a smaller number. The feature is described in more details in our online documentation.
 
In your case I'd suggest changing the CollapseThresholdSize value to define a smaller threashold. Please give this a try and let uie know if we can further assist you.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steve
Top achievements
Rank 1
answered on 20 Mar 2013, 12:31 PM
Thanks that resolves the problem, presume that the threshold has changed since previous versions?

0
Tina Stancheva
Telerik team
answered on 20 Mar 2013, 01:21 PM
Hi Steve,

We haven't implemented any changes in it recently but as I'm not sure from which version you're upgrading from I can't tell for sure what has changed. But I can confirm that in the past there were issues with this property - specifically with the fact that it wasn't always applied during the initialization/design time of the control. And these issues are now fixed.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RibbonView and RibbonWindow
Asked by
Steve
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Steve
Top achievements
Rank 1
Share this question
or