How Datacontext is specified can not understand
here in mMaterialCentreGroupListView.xaml file this line is written for MaterialCentreGroupView .but i can not see any data  context for accessing  viewmodel's property .it is working good.here is code...............
..............
    <vw:MaterialCentreGroupView
                Style="{StaticResource DetailedViewStyle}"
                DataContext="{Binding SelectedMaterialCentreGroup}"/>
    
   the view 

    <UserControl x:Class="MyBooks.View.MaterialCentreGroupView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    MinWidth="290" MaxWidth="290" Padding="20"
    Background="#eee">
    
    <UserControl.Resources>
        <ResourceDictionary Source="ViewResources.xaml" />
    </UserControl.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Label
            Grid.Row="0" Grid.Column="0"
            Content="{Resx ResxName=MyBooks.Properties.Strings, Key=AccountCategoryListView_Name_Label}"
            HorizontalAlignment="Right"/>
        <TextBox
            x:Name="CategoryName"
            MaxLength="50"
            Style="{StaticResource FormControlStyle}"
            Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
            Text="{Binding Path=Name, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"/>


plz explian me what happen how bining is occur?

How Datacontext is specified can not understand
===

here in mMaterialCentreGroupListView.xaml file this line is written for MaterialCentreGroupView .but i can not see any data  context for accessing  viewmodel's property .it is working good.here is code...............
..............
    <vw:MaterialCentreGroupView
                Style="{StaticResource DetailedViewStyle}"
                DataContext="{Binding SelectedMaterialCentreGroup}"/>
    
   the view 

    <UserControl x:Class="MyBooks.View.MaterialCentreGroupView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    MinWidth="290" MaxWidth="290" Padding="20"
    Background="#eee">
    
    <UserControl.Resources>
        <ResourceDictionary Source="ViewResources.xaml" />
    </UserControl.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Label
            Grid.Row="0" Grid.Column="0"
            Content="{Resx ResxName=MyBooks.Properties.Strings, Key=AccountCategoryListView_Name_Label}"
            HorizontalAlignment="Right"/>
        <TextBox
            x:Name="CategoryName"
            MaxLength="50"
            Style="{StaticResource FormControlStyle}"
            Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
            Text="{Binding Path=Name, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"/>


plz explian me what happen how bining is occur?
