question

Jan-5779 avatar image
0 Votes"
Jan-5779 asked AryaDing-MSFT commented

C#/UWP Button content (picture) suddenly gets changed

Hi @ all,

once more, I've found strange behavior of an UWP/C# application I developed.

The image within button content suddenly (rarely, occasionaly, in one of 1000 application runs) changes to the another one from solution assets. 87832-image.png

Normal (coded) look of button: 87650-image.png

There's no code within whole app affecting the button content. The button content is set just once in XAML: 87806-image.png

Of course, I've rechecked multiple times the code related to this button. At runtime, only visibility property gets changed from time to time: 87788-image.png

How can I prevent such occasional issue?


windows-uwp
image.png (66.3 KiB)
image.png (19.4 KiB)
image.png (47.7 KiB)
image.png (2.6 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Jan-5779 Can you reproduce this issue in specified situation? If yes, could you please try to check the image Source when the button content changes to the another one from solution assets?

0 Votes 0 ·

Unfortunately, there's no specified situation I can trace or reproduce. It happens very rarely...

0 Votes 0 ·

@Jan-5779 Since I couldn’t reproduce this issue through the above information. I’m afraid we couldn’t provide deeper support. If you could provide us a sample for testing through OneDrive or GitHub, I am glad to continue to provide support.

0 Votes 0 ·

0 Answers