Skip to content
shaomin.tan edited this page Aug 17, 2015 · 2 revisions
<?xml version="1.0" encoding="utf-8" ?>
<x:ObjectContainer
               xmlns="clr-namespace:System.Configuration.Core.Tests,System.Configuration.Core.Tests"
               xmlns:x="http://schemas.myerpsoft.com/configuration/2015"
               x:namespace="company.erp.demo">

  <Button x:name="btnOK" >
    <Text>OK</Text>
    <BackgroundImage x:ref="imgSky"/>
  </Button>

  <Image x:name="imgSky">
    <Path>.\imgSky.png</Path>
  </Image>
</x:ObjectContainer>

在这个例子中,我创建了一个btnOK的按钮并设置他的BackgroundImage,当然,我希望多个按钮都公用图像而不是没有储存一份。所以我指向 imgSky 这个Image对象。

Clone this wiki locally