ApplicationButtonType for RibbonView

15 posts, 0 answers
  1. Stefan Buys
    Stefan Buys avatar
    22 posts
    Member since:
    Dec 2009

    Posted 15 Jul 2011 Link to this post

    Hi,

    I have switched over from the RadRibbonBar to the RadRibbonView by refactoring my xaml code, but notice that the ApplicationButtonType  property is not there. The ApplicationMenu button only renders the "Office2010" implementation. I have utilised the "Office2007" implementation which is a circle-shaped icon. This is a requirement to use from my client. I need to know if and how it will be possible re-introduce the "Office2007" style application button. I have played around with Blend, but wasn't able to succeed in getting to display correctly.

    Please advise.
    Stefan
  2. Stefan Buys
    Stefan Buys avatar
    22 posts
    Member since:
    Dec 2009

    Posted 15 Jul 2011 Link to this post

    I have also noticed that this functionality is documented as MS Office 2007 look and feel here: http://www.telerik.com/help/silverlight/radribbonview-key-features.html
  3. DevCraft banner
  4. Gael
    Gael avatar
    1 posts
    Member since:
    Apr 2011

    Posted 19 Jul 2011 Link to this post

    Hi Everyone,

    I'm also interested in this,
    I've switched from the RibbonBar using Office2007 as ApplicationButtonType and havn't found the solution yet in order to achieve the old behavior.

    Thanks in advance
    Gaël
  5. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 20 Jul 2011 Link to this post

    Hi Gael,

    We managed to drop the circle button in the RadRibbonView, because one of its ideas was to fully support the 2010 look and feel (the support for the 2007 look and feel in the documentation is a misunderstanding). You can still use the ApplicationButtonStyle property (i.e. get the circle style from the old RadRibbonBar) and thus modify the application button.

    Greetings,
    Viktor Tsvetkov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  6. Andrew Jackson
    Andrew Jackson avatar
    7 posts
    Member since:
    Jun 2009

    Posted 02 Nov 2011 Link to this post

    Hello,

    I've tried doing this by copying the template in Blend from the RadRibbonBar and placing it as a new template in the UserControl.Resources part of my user control which has a RadRibbonView.

    Although I can seem to get the circle button to be displayed, I only see about 50% of the circle - the bottom half is missing.

    Please could you provide further detail in how to get the Office2007 button visible on the RadRibbonView?

    Thanks.
  7. Viktor Tsvetkov
    Admin
    Viktor Tsvetkov avatar
    382 posts

    Posted 07 Nov 2011 Link to this post

    Hello Andrew Jackson,

    Could you please examine the attached sample project and tell me if it works for you?

    Best wishes,
    Viktor Tsvetkov
    the Telerik team

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

  8. Nikola
    Nikola avatar
    6 posts
    Member since:
    Sep 2012

    Posted 07 Nov 2012 Link to this post

    This example is fantastic...but i have one problem with it...

    If Windows theme is set to Classic, this button will be moved down...how can i overcome this 

    Thank you
  9. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 12 Nov 2012 Link to this post

    Hi Nikola,

    I tried to reproduce your issue with our latest release ( 2012 Q3 1017) and it seems that the code works as expected even with Classic theme of the Windows. Can you please elaborate on your scenario? What version of our controls do you use? Can you reproduce the issue with our latest release? If you reproduce it please sent us your project so that we can better understand your scenario.

    Kind regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  10. Nikola
    Nikola avatar
    6 posts
    Member since:
    Sep 2012

    Posted 06 Dec 2012 Link to this post

    Well, i am using 2012 Q3 1129, and when i switch to Windows classic, i works fine...but if i restart application...button is not positioned as expected...

    Thank you
  11. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 11 Dec 2012 Link to this post

    Hi Nikola,

    I tried to reproduce your issue using the 2012 Q3 1129 version of our controls and it is working fine on our side. Could you please check this screen cast and see how I tried to reproduce it? Let me know if I've missed something. Meanwhile, can you please tell me what OS version you use?

    Regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  12. Nikola
    Nikola avatar
    6 posts
    Member since:
    Sep 2012

    Posted 14 Dec 2012 Link to this post

    Thank you for your reply...

    My problem appers in WPF application, not Silverlight...
    Maybe you know what problem that difference could make...

    Thank you once more
  13. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 18 Dec 2012 Link to this post

    Hi Nikola,

    As this forum thread is only for Silverlight controls I thought that your issue is in SL.  As far as we understand, you have converted the SL solution to WPF one and you experience issues when changing the Windows Theme. Is it possible for you to open a new support ticket with an isolated sample attached? This way we will be able to investigate it and advice you better. 

    Kind regards,
    Pavel R. Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  14. Josh
    Josh avatar
    27 posts
    Member since:
    Feb 2012

    Posted 22 Jan 2013 Link to this post

    I am trying to do the same thing as Stefan and the sample project that Viktor provided was very helpful.  However, in my application I am using an ApplicationMenu instead of a Backstage.  The problem is that the top left of the ApplicationMenu never gets rendered.  In the
    sample project, I simply replaced the Backstage code with

    <telerik:RadRibbonView.ApplicationMenu>
        <telerik:ApplicationMenu>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                             
                <TextBlock Text="Test" />
                <TextBlock Text="Hello World" Grid.Row="1" />
            </Grid>
        </telerik:ApplicationMenu>
    </telerik:RadRibbonView.ApplicationMenu>

    I've played with the template for the ApplicationButtonStyleOffice2007 in several ways, but the top left corner is always missing.  In the attached screenshot, I added 2 RowDefinitions in the template and placed the DropDownPopup in the 2nd row to make sure it appears below the ApplicationButton.  The missing portion is clearly visible.  In fact, you can't even see the first Texblock.  What am I missing?

    Thanks

  15. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 25 Jan 2013 Link to this post

    Hi Josh,

    You can further modify the default style of the ApplicationButton and the ApplicationMenu to implement your scenario. However, please note that the RibbonView control doesn't support out-of-the-box the circle button any more and this is why the ApplicationMenu is designed to work with a rectangular button.

    In order to workaround this issue you will have to implement a custom clipping and clear the default rectangular clipping in the SizeChanged event handler of the ApplicationMenu. I attached a sample solution demonstrating this approach. I hope it can get you started.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  16. Josh
    Josh avatar
    27 posts
    Member since:
    Feb 2012

    Posted 25 Jan 2013 Link to this post

    Thanks Tina, this helped immensely.
Back to Top
DevCraft banner