RadRibbonGroup closing

2 posts, 0 answers
  1. liza g
    liza g avatar
    24 posts
    Member since:
    Dec 2009

    Posted 07 Feb 2011 Link to this post

    Hello,
    I want that RadRibbonGroup exit after "Click"
     enent.
    I have attached sample code here.

    Thanks

     

    </telerik:RadRibbonTab>
    <telerik:RadRibbonTab x:Name="tab3" Header="num2">
    <telerik:RadRibbonGroup Header="num2_1">
    <telerik:RadRibbonButton Text="num2_1" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    <telerik:RadRibbonGroup Header="num2_2">
    <telerik:RadRibbonButton Text="num2_2" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    <telerik:RadRibbonGroup Header="num2_3">
    <telerik:RadRibbonButton Text="num2_3" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    </telerik:RadRibbonTab>

     

     

     

     

    <telerik:RadRibbonTab x:Name="tab4" Header="num3">
    <telerik:RadRibbonGroup Header="num3_1">
    <telerik:RadRibbonButton Text="num3_1" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    <telerik:RadRibbonGroup Header="num3_2">
    <telerik:RadRibbonButton Text="num3_2" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    <telerik:RadRibbonGroup Header="num3_3">
    <telerik:RadRibbonButton Text="num3_3" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>
    <telerik:RadRibbonGroup Header="num3_4">
    <telerik:RadRibbonButton Text="num3_4" Click="RadRibbonButton_Click_1"/>
    </telerik:RadRibbonGroup>

     

     

     

     

    </telerik:RadRibbonTab>
    </telerik:RadRibbonBar>

     

     

     

     

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 08 Feb 2011 Link to this post

    Hello liza g,

    I am not really sure what you mean by "closing the RadRibbonGroup", however you can set the RibbonGroup's Visibility property to Collapsed to collapse the group:

    privatevoidRadRibbonButton_Click(objectsender, RoutedEventArgs e)

    {

        (sender asRadRibbonButton).ParentOfType<RadRibbonGroup>().Visibility = Visibility.Collapsed;

    }

     

    privatevoidRadRibbonButton_Click_1(objectsender, RoutedEventArgs e)

    {

        (sender asRadRibbonButton).ParentOfType<RadRibbonGroup>().Visibility = Visibility.Collapsed;

    }


    Give this a try and let us know if this is close to what you have in mind.

    All the best,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top