Urgent - Ribbon not visable after update

4 posts, 0 answers
  1. Steve
    Steve avatar
    11 posts
    Member since:
    Nov 2012

    Posted 20 Mar 2013 Link to this post

    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>

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Mar 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    11 posts
    Member since:
    Nov 2012

    Posted 20 Mar 2013 Link to this post

    Thanks that resolves the problem, presume that the threshold has changed since previous versions?

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Mar 2013 Link to this post

    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.

Back to Top