【发布时间】:2015-07-14 08:55:32
【问题描述】:
我在 xaml 中有一个这样的按钮
<button>
<button.background>
<imagebrush imagesource="/Assets/Image1xxx.png"/>
</button.background>
</button>
但是现在在代码后面(cs)中,我如何从任何事件中获取字符串“Assets/Image1xxx.png”。帮我。我正在尝试使用 button_name.Background.ImageBrush.Uri(),现在正在工作
【问题讨论】:
标签: windows xaml button location