尝试阅读下表。
<Window x:Class="CountdownTimer.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:CountdownTimer"
xmlns:viewmodels="clr-namespace:CountdownTimer.ViewModels"
xmlns:views="clr-namespace:CountdownTimer.Views"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Window.DataContext>
<viewmodels:ApplicationViewModel/>
</Window.DataContext>
<Window.Resources>
<DataTemplate DataType="{x:Type viewmodels:CountdownViewModel}">
<views:CountdownView/>
</DataTemplate>
</Window.Resources>
<ContentPresenter Content="{Binding CurrentView}"/>
但是,当我尝试分别获取每个值时,我陷入了困境。
<div class="well" style="background-color: #fff;">
<table class="table table-bordered table-striped table-condensed">
<tbody><tr>
<td style="width: 20%; vertical-align: middle">
<span class="label label-primary">Field0</span>
</td>
<td>Value0</td>
</tr>
<tr>
<td style="width: 120px;">Field1</td>
<td>Value1</td>
</tr>
<tr>
<td><strong>Field2</strong></td>
<td>Value2</td>
</tr>
</tbody>
</table>
</div>