【发布时间】:2016-04-23 07:42:27
【问题描述】:
我需要使用 MVVM 在 wpf 画布中的 image 中显示类似的东西。
【问题讨论】:
-
你应该准确地描述你的问题,写下你的努力和到目前为止你已经尝试过的事情。否则问题会很快关闭
我需要使用 MVVM 在 wpf 画布中的 image 中显示类似的东西。
【问题讨论】:
我建议你先了解一下 wpf 中的控制组织的基础知识, 并且您可以使用类似的方法实现您想要的--
<StackPanel Orientation="Vertical">
<Border BorderBrush="Black"
BorderThickness="1">
<StackPanel>
<TextBlock Text="SomeText" />
<TextBlock Text="SomeMoreText" />
</StackPanel>
</Border>
<Border BorderBrush="Black"
BorderThickness="1">
<StackPanel>
<TextBlock Text="SomeText" />
<TextBlock Text="SomeMoreText" />
</StackPanel>
</Border>
<Border BorderBrush="Black"
BorderThickness="1">
<StackPanel>
<TextBlock Text="SomeText" />
<TextBlock Text="SomeMoreText" />
</StackPanel>
</Border>
</StackPanel>
【讨论】: