Hello,
This is because the ImageButton itself is a special Button implemented by encapsulating the Button.
Therefore, the ImageButton class does not actually exist in the Microsoft.UI.Xaml.Controls Namespace.
Since the ImageButton is obtained by encapsulating the Button, it is necessary to modify the implementation through the Button when modifying the ImageButton.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.