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

RadRibbonWindow - Windowstate

9 Answers 109 Views
Window
This is a migrated thread and some comments may be shown as answers.
Terje Johansen
Top achievements
Rank 1
Terje Johansen asked on 24 Jun 2013, 10:20 AM
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

9 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 27 Jun 2013, 08:44 AM
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 >>
0
Voltz
Top achievements
Rank 1
answered on 15 Jul 2013, 03:08 AM
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.
0
Tina Stancheva
Telerik team
answered on 17 Jul 2013, 04:10 PM
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 >>
0
Voltz
Top achievements
Rank 1
answered on 22 Jul 2013, 05:45 AM
Hi,

Tried using this as a temporary solution, but it does not work.
0
Tina Stancheva
Telerik team
answered on 24 Jul 2013, 01:04 PM
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 >>
0
Vinayak
Top achievements
Rank 1
answered on 08 Jan 2014, 10:44 AM
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

0
Tina Stancheva
Telerik team
answered on 13 Jan 2014, 03:08 PM
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 >>
0
Vinayak
Top achievements
Rank 1
answered on 14 Jan 2014, 04:50 AM
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>

0
Tina Stancheva
Telerik team
answered on 16 Jan 2014, 09:56 AM
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 >>
Tags
Window
Asked by
Terje Johansen
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Voltz
Top achievements
Rank 1
Tina Stancheva
Telerik team
Vinayak
Top achievements
Rank 1
Share this question
or