Windows Runtime: How to set image in a ellipse shape button?

前端 未结 4 1122
滥情空心
滥情空心 2021-01-25 18:50
4条回答
  •  生来不讨喜
    2021-01-25 19:29

    Try the following code..

    
    

    On your code behind add the following line..

    BtnProfilePicture.BackgroundImage = 
               new ImageBrush { ImageSource = LoadBackgroundImage(yourfilename.jpg)};
    

    Vote me if this works!

提交回复
热议问题