RadRibbonView with close minimize maximize button

2 posts, 1 answers
  1. Luis
    Luis avatar
    4 posts
    Member since:
    Jan 2017

    Posted 16 Mar Link to this post

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

     

    See images below for example

  2. Answer
    Martin
    Admin
    Martin avatar
    105 posts

    Posted 20 Mar Link to this post

    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.
Back to Top