Add new GalleryItemPropertySet to ItemsSource In Win10, looks incorrect. #33
Replies: 9 comments 2 replies
-
|
Please send the RibbonMarkup file and a more complete source code. |
Beta Was this translation helpful? Give feedback.
-
|
A full VB project is attached. I tested in Windows 10 19045.4529 Chinese version. |
Beta Was this translation helpful? Give feedback.
-
|
This case is crazy. Please could you check the processor mode when you run this application in Win11, because i have no Win11 installation. |
Beta Was this translation helpful? Give feedback.
-
|
I have done some tests for x86 code. I think the issue you have found is a problem in the Microsoft Windows Ribbon Framework code for x86 processors. In the zip file are 2 transparent .png image files which you can use with converting to IUIImage by the Ribbon method ConvertToUIImage(Bitmap). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The second one is not really a transparent Bitmap. |
Beta Was this translation helpful? Give feedback.
-
|
Transparency is lost when you copy to the resources. Dim image1 As Bitmap
image1 = New Bitmap("Transparent_16.png") ' Add a path !
... .ItemImage = Ribbon1.ConvertToUIImage(image1)}) |
Beta Was this translation helpful? Give feedback.
-
|
Same in Windows 11, no check image after add a transparent image. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, So we know there are some differences between Windows 10, Windows 11 and processor mode x64 and x86. For this issue I can't help anymore because the problem is in the Microsoft implementation. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
` Private Sub frmRibbon_Load(sender As Object, e As EventArgs) Handles Me.Load
_dropDownGallery = New RibbonDropDownGallery(Ribbon1, 2)
AddHandler _dropDownGallery.ItemsSourceReady, AddressOf _dropDownGallery_ItemsSourceReady
End Sub
BTW: It works good in Win11.
Beta Was this translation helpful? Give feedback.
All reactions