Unplanned
Last Updated: 17 Apr 2024 14:33 by ADMIN
Curtis
Created on: 25 Jun 2020 21:31
Category: UI for WinForms
Type: Bug Report
0
ElementHierarchyEditor: Image related properties do not work as expected

UI for WinForms - Latest version.

RadRibbonBarBackstageView - Edit UI Elements

RootRadElement.BackstageViewElement.BackstageItemsPanelElement.BackgroundImage

Click the … button and select your image.

 

To REMOVE this image you SHOULD be able to do the following:

click on the property BackgroundImage which should highlight the image-string completely.

click delete.

done.

What you HAVE to do is this: 

click on the property BackgroundImage.

click delete.

BEFORE YOU LEAVE THIS PROPERTY you have to click the … box

Once the box opens you have to click "Cancel"

 

Right below this property is BackgroundImageLayout - set to "Center"

There's a dropdown arrow presumably to allow you to change the layout but nothing happens when you click it.

 

*Missing Property?*

Whatever image you place in this control it gets stretched and there doesn't appear to be any way to avoid this:

place an image.

run the winforms ap.

set the main form in normal mode (not maximized) and resize the height.

Your image will stretch, shrink...this is not a UI property that should be presumed.  We should be able to set None, Tile, Center, Stretch or Zoom.

 

Still *LOVE* your products :)

Kindest regards,

Curtis Smith 

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 07 Jul 2020 13:49

Hello, Curtis,  

I have tested different settings of the ItemsPanelElement.BackgroundImageLayout and got the following result: 
Me.RadRibbonBarBackstageView1.BackstageElement.ItemsPanelElement.BackgroundImageLayout = ImageLayout.Tile

 Me.RadRibbonBarBackstageView1.BackstageElement.ItemsPanelElement.BackgroundImageLayout = ImageLayout.Zoom

Me.RadRibbonBarBackstageView1.BackstageElement.ItemsPanelElement.BackgroundImageLayout = ImageLayout.Center


It seems that the BackgroundImageLayout is properly respected on my end. I have attached my sample project for your reference. Am I missing something?  Could you please specify the exact steps how to reproduce the problem you are facing?

Once we get better understanding of the precise case, we would be able to provide further assistance. Thank you in advance.

I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Curtis
Posted on: 06 Jul 2020 18:26

Thank you Todor.  I believe while you can manually enter in the value for BackgroundImageLayout regardless of what you type in, the property gets ignored and the background image is handled however the default is supposed to be handled.

The experience I had was that the image was both "Center" as well as "Zoom" as the image IS centered but if you manually resize the parent form smaller, the image will "Shrink to Fit" which is not something I've ever seen on a background image before in any control - though its also something I do not use that often and could have simply missing that this is how it's supposed to work.  

 

Regardless you might want to take a look at that as well :)

Kindest regards,

Curtis

 

ADMIN
Todor
Posted on: 02 Jul 2020 15:29

Hi Curtis,

Thank you for the detailed explanation. I have reproduced the described behavior on my side and confirm this is an issue.

I have also updated your Telerik points as a small sign of gratitude for bringing this issue to our attention. 

Workaround:

You can remove the BackgroundImage or the Image property by right-clicking the item in the property grid and select the "Reset local value" option from the context menu.

The BackgroundImageLayout and ImageLayout properties for some reason do not list all the available options when entering edit mode. To change the value, you can manually type the desired text in the editor None, Tile, Center, Stretch, or Zoom and press the Enter key to submit the value.

Regards,
Todor Vyagov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.