Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンにテキストと画像を表示する必要があります(ボタンの上部と下部にあることを意味するため、両方がよく見えるようになります)ので、画像を背景として、テキストをコンテンツとして配置しますボタンですが、両方を同じスペースに配置して混在しているように見えます。コンテンツと背景を分離するにはどうすればよいですか? ご協力いただきありがとうございます。
AButtonは任意のコンテンツを保持できます。この場合、StackPanelボタンにを作成し、コンテンツを追加します。
Button
StackPanel
<Button> <StackPanel> <TextBlock /> <Image /> </StackPanel> </Button>