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

RadRibbonView with close minimize maximize button

1 Answer 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 16 Mar 2017, 08:02 PM

RadRibbonView how can I merge it with the Windows top bar like Excel?

 

See images below for example

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 20 Mar 2017, 03:07 PM
Hello Luis,

We provide a RadRibbonWindow to achieve this functionality since the WPF Window cannot be easily modified to achieve this. The RadRibbonWindow integrates the RadRibbonView into the window header in order to achieve the desired look. You can review the following article explaining its usage.

You can change the Window for your applicaiton to telerik:RadRibbonWindow, in your XAML and in code behind:
public partial class MainWindow : RadRibbonWindow
{
    static MainWindow()
    {
        RadRibbonWindow.IsWindowsThemeEnabled = false;
    }
    public MainWindow()
    {
        InitializeComponent();
    }
}

Setting IsWindowsThemeEnabled = false will allow the styling for the chosen theme to be assigned.

Set IsHitTestVisible ="True" to the RadRibbonWindow and merge in your App.xaml either as a single style or from a ResourceDictionary the following style after the other needed dictionaries for the chosen theme, where local is the namespace of your application:
<Style TargetType="local:MainWindow" BasedOn="{StaticResource RadRibbonWindowStyle}" />

Please refer to the mentioned article in our documentation for more detailed information about the usage of the RadRibbonWindow and do not hesitate to contact us further, if you have any more questions.

Regards,
Martin
Telerik by Progress
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
General Discussions
Asked by
Luis
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or