C# WPF-如何将我的图像源绑定到另一个文本

C# WPF-如何将我的图像源绑定到另一个文本,c#,wpf,canvas,binding,C#,Wpf,Canvas,Binding,这是我的密码: <Canvas Width="100" Height="120"> <Image Name="First_Image" Source="{'Tag of Second_Image'}" Canvas.ZIndex="2" Width="80" Height="80" Canvas.Top="0" Canvas.Left="10"/> <Image Name="Second_Image" Uid="{Binding XPath=@Name}" Canv

这是我的密码:

<Canvas Width="100" Height="120">
<Image Name="First_Image" Source="{'Tag of Second_Image'}" Canvas.ZIndex="2" Width="80" Height="80" Canvas.Top="0" Canvas.Left="10"/>
<Image Name="Second_Image" Uid="{Binding XPath=@Name}" Canvas.ZIndex="2" Width="80" Height="20" Canvas.Bottom="20" Canvas.Left="10"  
MouseLeftButtonDown="TTX" Tag="/Images/Image.png" Style="{StaticResource Function}"/>
</Canvas>


我正在尝试将我的第一个图像源设置为第二个图像的标记。怎么可能呢?

使用ElementName绑定:

<Image Source="{Binding Tag, ElementName=Second_Image}" .../>
<Image x:Name="Second_Image" Tag="/Images/Image.png" .../>

使用ElementName绑定:

<Image Source="{Binding Tag, ElementName=Second_Image}" .../>
<Image x:Name="Second_Image" Tag="/Images/Image.png" .../>


非常感谢。你救了我的命,万分感谢。你救了我的命。