在多个视图之间共享ViewModel

我当然希望这个问题易于回答,但是已经过去了几天,我还没有弄清楚如何在UserControls之间共享数据。

下面的页面有两个选项卡,并引用了它们的来源。它还具有一个标记为Start的按钮,用于访问ViewModel中的命令。

我遇到的问题是数据实际上在选项卡中。我将它们设置为使用相同的ViewModel,并且它们各自创建自己的ViewModel实例,因此数据永远不会显示在“开始”按钮上。我希望从那以后。

这是一个相当简单的程序,我真的没有看到需要仅包含单个元素的3个独立ViewModel的必要,但也许这就是我需要做的。总而言之,当我点击开始按钮时,我仍然需要从所有内容中收集所有数据并将其提交给外部实体。

如果这是之前提出的问题,我深表歉意,但是我对C#比较陌生,所以我不确定自己要问什么。提前致谢!

<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             x:Class="DeployWiz.Pages.Config"
             mc:Ignorable="d" 
             xmlns:local="clr-namespace:DeployWiz.ViewModel"
             d:DesignHeight="356.978" d:DesignWidth="333.582">
    <Grid Style="{StaticResource ContentRoot}" Margin="16,28,16,5" >
        <Grid.DataContext>
            <local:ComputerViewModel/>
        </Grid.DataContext>
        <mui:ModernTab x:Name="tabList" Layout="List" SelectedSource="/Views/ComputerView.xaml" Margin="0,0,0,40">
            <mui:ModernTab.Links>
                <mui:Link DisplayName="Settings" Source="/Views/ComputerView.xaml" />
                <mui:Link DisplayName="Applications" Source="/Views/ApplicationView.xaml" /> 
            </mui:ModernTab.Links>
        </mui:ModernTab>
        <Button Content="Start" HorizontalAlignment="Center" Margin="0,0,0,5" VerticalAlignment="Bottom" Width="75" Command="{Binding Path=StartTask}"/>
    </Grid>
</UserControl>