RadRibbonWindow - Windowstate

10 posts, 0 answers
  1. Terje Johansen
    Terje Johansen avatar
    28 posts
    Member since:
    Mar 2010

    Posted 24 Jun 2013 Link to this post

    Hi, 

    I have updated to version 2013.2 (2013.2.611.40) and the first time I started my application everything looked fine.

    But after changing my *theme the RadRibbonWindow won't start up in "Maximized" state !
    (* logic in the app allows users to change theme, but requires a restart)

    I set the WindowState="Maximized" for the RadRibbonWindow in the xaml and this worked fine before I upgraded to 2013.2.

    But now, with the new version, it will not open up maximized.
    It looks like the window thinks it's maximized because the restore button is not shown...

    Are there some new/additional properties in the new version I have to set to get the window to start up as maximized?

    please advice

    Regards
     Terje

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 27 Jun 2013 Link to this post

    Hello Terje,

    I tried to change the theme of the RadRibbonView control hosted in a RadRibbonWindow at run-time with our latest official release and it seems that the code works as expected. Can you please take a look at this screen cast and let me know if I missed something.

    If you still can reproduce the behavior that you report it will be best to try to reproduce it in a separate project and send it over. By doing so we will be able to fully understand your custom logic and further investigate the reasons behind this issue and suggest an approach in your case.

    Thank you for your kind cooperation.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Voltz
    Voltz avatar
    17 posts
    Member since:
    Aug 2011

    Posted 14 Jul 2013 Link to this post

    We are also experiencing this issue with the latest version of Telerik.

    our application is in a Prism environment where the shell is a RadRibbonWindow.

    From the previous libraries this was working but once we updated our libraries it stopped working already.
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 17 Jul 2013 Link to this post

    Hello Voltz,

    We are aware of this issue and it is already fixed. The fix is available within our latest internal build and it will also be available with the upcoming SP release. If you can download the binaries from our latest internal build to test it locally, we'll highly appreciate your feedback.

    In the meantime as a workaround you could handle the  RadRibbonWindow Loaded event and set the WindowState property to Maximized there.

    Please excuse us for the inconvenience caused.

    Regards,
    Tina Stancheva
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Voltz
    Voltz avatar
    17 posts
    Member since:
    Aug 2011

    Posted 22 Jul 2013 Link to this post

    Hi,

    Tried using this as a temporary solution, but it does not work.
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Jul 2013 Link to this post

    Hi Voltz,

    The workaround might not work when the RibbonView is loaded later than the RibbonWindow. And as you're using PRISM, that might very well be the case. This is why I want to ask you to please try to set the WindowState in the RibbonView Loaded event handler instead.

    Also, please note that the Q2 2013 SP release is just around the corner and you will soon be able to upgrade your solution to fix this issue.

    Regards,
    Tina Stancheva
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Vinayak
    Vinayak avatar
    2 posts
    Member since:
    Sep 2012

    Posted 08 Jan 2014 Link to this post

    Hi Tina,
    I have same problem. I am on Telerik.Windows.Controls.RibbonView version 2013.3.1204.40. My project is in WPF using PRISM.
    I have hosted RadRibbonWindow as window control. It has regions and the top region has the RadRibbonView control, which is in separate xaml file wrapped in a usercontrol.

    If I do not use RadRibbonWindow, I am good, and the minimize , maximize and close buttons of windows works, but I do not get benefit of smooth UI. But introducing it does add up the telerik buttons, but they are not clickable.
    I have also applied the RadRibbonWindow style, but it is not helping.

    Would appreciate some early reply.

    Thanks

  9. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 13 Jan 2014 Link to this post

    Hello Vinayak,

    Unfortunately I was not able to reproduce the issue on our side. I used a RadRibbonWindow in the Shell project in a PRISM application. I defined a sample RibbonView in a module and I defined a bootstrapper that injects a RibbonView view in a ContentControl region in the Shell. I made sure to start the window in a Maximized state and it all works as expected.

    Can you please have a look at the attached sample and let me know if it works for you or if I'm missing anything. Thank you in advance.

    Regards,
    Tina Stancheva
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  10. Vinayak
    Vinayak avatar
    2 posts
    Member since:
    Sep 2012

    Posted 13 Jan 2014 Link to this post

    Thanks a lot Tina for the sample, it helped me look into the problem. The issue was grid background, which was overlapping on the window border making it completely un-clickable when IsWindowsThemeEnabled was set in static constructor of shell and only top clickable it was not set.
    This is sample from shellView which creates the problem.

    <Grid x:Name="LayoutRoot">

       <Grid.Background>

         <ImageBrush Stretch="None" TileMode="Tile" />

       </Grid.Background>

       <ContentControl regions:RegionManager.RegionName="RibbonHostRegion" />

    </Grid>

  11. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 16 Jan 2014 Link to this post

    Hi Vinayak,

    Thank you for getting back to us. I would like to apologize for misunderstanding your issue. Indeed when you set the RibbonView in a panel with a solid color Background, the panel background will hide part of the RibbonWindow chrome.

    When the RibbonWindow detects that there is a RibbonView in its content, it tries to move it up so that the RibbonView title can be displayed in the window's TitleBar. When the RibbonView is inside a panel, the panel is moved up as well but if it has a solid color background, the Window chrome is not entirely visible. This is the expected result and we advice our customers to place the RibbonView directly in a RibbonWindow if they want to have a smooth integration between the components. If you have to wrap the ribbon in a panel, then you will have to make sure to set a Transparent background on the panel.

    Regards,
    Tina Stancheva
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready