在 Windows 10 Phone 应用程序中将图像添加到按钮
Adding Image to a Button in Windows 10 Phone App
我正在尝试向按钮添加图像。我想存档这样的东西
这是我想要做的,但图像没有出现
<StackPanel Orientation = "Horizontal">
<Button x:Name = "kap2"
FontFamily = "Arial"
Content = "Te drejtat dhe lirite themelore"
Width = "250"
Height = "50"
HorizontalAllignment = "Left">
<Button.Background>
<ImageBrush ImageSource = "Asses/number/1.png" Stretch="Fill">
</ImageBrush>
</Button.Background>
</Button>
</StackPanel>
'Asses'这个词我觉得应该是'Assets'。
如果这不起作用,请尝试
/Assets/number/1.png
问题是关于拼写的。请确保文件夹名称正确,图像名称也正确。
我正在尝试向按钮添加图像。我想存档这样的东西
这是我想要做的,但图像没有出现
<StackPanel Orientation = "Horizontal">
<Button x:Name = "kap2"
FontFamily = "Arial"
Content = "Te drejtat dhe lirite themelore"
Width = "250"
Height = "50"
HorizontalAllignment = "Left">
<Button.Background>
<ImageBrush ImageSource = "Asses/number/1.png" Stretch="Fill">
</ImageBrush>
</Button.Background>
</Button>
</StackPanel>
'Asses'这个词我觉得应该是'Assets'。 如果这不起作用,请尝试
/Assets/number/1.png
问题是关于拼写的。请确保文件夹名称正确,图像名称也正确。