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

ApplicationButtonType for RibbonView

14 Answers 210 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Stefan Buys
Top achievements
Rank 2
Stefan Buys asked on 15 Jul 2011, 03:49 PM
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

14 Answers, 1 is accepted

Sort by
0
Stefan Buys
Top achievements
Rank 2
answered on 15 Jul 2011, 03:52 PM
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
0
Gael
Top achievements
Rank 1
answered on 19 Jul 2011, 09:36 AM
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
0
Viktor Tsvetkov
Telerik team
answered on 20 Jul 2011, 05:17 PM
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!

0
Andrew Jackson
Top achievements
Rank 1
answered on 02 Nov 2011, 12:56 PM
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.
0
Viktor Tsvetkov
Telerik team
answered on 07 Nov 2011, 01:56 PM
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 >>

0
Nikola
Top achievements
Rank 1
answered on 07 Nov 2012, 12:32 PM
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
0
Pavel R. Pavlov
Telerik team
answered on 12 Nov 2012, 12:15 PM
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.

0
Nikola
Top achievements
Rank 1
answered on 06 Dec 2012, 11:13 AM
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
0
Pavel R. Pavlov
Telerik team
answered on 11 Dec 2012, 01:30 PM
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.

0
Nikola
Top achievements
Rank 1
answered on 14 Dec 2012, 08:10 PM
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
0
Pavel R. Pavlov
Telerik team
answered on 18 Dec 2012, 04:52 PM
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.

0
Josh
Top achievements
Rank 1
answered on 22 Jan 2013, 07:47 PM
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

0
Tina Stancheva
Telerik team
answered on 25 Jan 2013, 04:11 PM
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.

0
Josh
Top achievements
Rank 1
answered on 25 Jan 2013, 05:49 PM
Thanks Tina, this helped immensely.
Tags
RibbonView and RibbonWindow
Asked by
Stefan Buys
Top achievements
Rank 2
Answers by
Stefan Buys
Top achievements
Rank 2
Gael
Top achievements
Rank 1
Viktor Tsvetkov
Telerik team
Andrew Jackson
Top achievements
Rank 1
Nikola
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Josh
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or