A: 

Your button does nothing. Usually your ViewModel would have an ICommand called Select (or something similar) that the Button would be bound against

Command="{Binding Select, RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}}"

and you'd pass the instance to the ICommand that you'd like to select

CommandParameter="{Binding}"

It would look something like this (c#/XAML like pseudocode):

public class MyModel { public string Name {get;set;} }

public class MyViewModel
{
  public ObservableCollection<MyModel> Models {get;set;}
  public ICommand Select {get;set;}
  /* configure Models and Select etc */
}

<UserControl DataContext="{StaticResource MyViewModelInstance}">
<ItemsControl ItemsSource="{Binding Models}">
  <ItemsControl.ItemTemplate>
    <ItemsPanelTemplate>
      <Button Text="{Binding Name}" 
      Command="{Binding Select, RelativeSource=
      {RelativeSource FindAncestor, AncestorType=UserControl}}"
      CommandParameter="{Binding}"/>
   </ItemsPanelTemplate>
  </ItemsControl.ItemTemplate>
</ItemsControl>
</UserControl>

The ItemsControl binds to Models, so each MyModel in Models gets a button. The button text is bound to the property Name. The button command is bound to the Select property in the ViewModel. When the button is pressed, it calls the ICommand, sending in the instance of MyModel that the button is bound against.

Will
Yes, that is what I'm doing (in my app not in the sample) but then I need to set a property like "IsActiveView" in each view model and to keep the other view models in sync by setting IsActiveView=false on each of them. It starts to snow ball. The ListBox in my example does what I need. Is there not a way to make an Items control stay synch with the items it created?The only problem with the list box is it is not horozontal and it is nt making uniform sized areas.Anyway, I appreciate the thought. I'll just wait a it long to see what other ideas come up.Thanks
thrag
Its a bit hard to grasp what you're trying to do in your app. If I wanted to show details of a particular MyModel I'd have a public MyModel Selected {get;set;} property and I'd bind a ContentControl to it. You can have different DataTemplates per type, so whatever type of object you bind against will be shown using a different DataTemplate...
Will
OK, that works. But, a follow on question; if I have five buttons on screen. Each activates a view bound to a content present (as you suggest). I want to have the button that represents the active view highlighted. Is there a way I can use a Trigger to change the color of the buttons based on the "Selected" view property. So only one button is ever colored (highlighted as active.) It would behave like a tab control but I want need the buttons spaced evenly across the top. (Which makes me think I should see if could chage the tab contol's template to use a uniform Grid
thrag
Could be. It would probably be much harder than just setting a public property on your ViewModel to indicate what button should be highlighed, then using a Style DataTrigger bound to that public property to turn the highlight on and off... `public enum Highlight { ViewA, ViewB, ViewC, ViewD }`
Will
A: 

I think you have to do it manually in code-behind.

XAML

                <Button Click="ViewListButton_Click">
                    <TextBlock Text="{Binding Path=Name}" Name="txtButtonLabel" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black"/>
                </Button>

Code-behind

private void ViewListButton_Click(object sender, RoutedEventArgs e)
{
    Button button = sender as Button;
    ICollectionView view = CollectionViewSource.GetDefaultView(ViewList.ItemsSource);
    view.MoveCurrentTo(button.DataContext);
}

If you're using the MVVM pattern and/or you don't want to use code-behind, you could bind the button's Command to a command in your ViewModel, as suggested by Will

Thomas Levesque