Windows Runtime: How to set image in a ellipse shape button?
问题 <Button x:Name="btnProfilePicture" HorizontalAlignment="Center" Click="btnProfilePicture_Click"> <Button.Template> <ControlTemplate> <Ellipse x:Name="ellipsePicture" Fill="Turquoise" Width="150" Height="150" Stroke="White" StrokeThickness="10"> </Ellipse> </ControlTemplate> </Button.Template> </Button > I have a button in ellipse shape, with color fill by default. I want to change the fill to an image in code-behind in runtime. How can I do this? More info: I tried to set the ellipse fill by