How do you pass parameters to usercontrol in window phone?
<p>I've created a user control in WPF:</p>

<pre><code>&lt;UserControl
x:Class="BARCIndia.Mobile.Views.UserControls.SubCategoryUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:BARCIndia.Mobile.Views.UserControls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" 
d:DesignHeight="300"
d:DesignWidth="400"&gt;

  &lt;Grid&gt;
    &lt;StackPanel Background="DarkCyan"&gt;                
     &lt;TextBlock Name="txtName" FontSize="26"&gt;&lt;/TextBlock&gt;
    &lt;/StackPanel&gt;
  &lt;/Grid&gt;        
&lt;/UserControl&gt;
</code></pre>

<p>The code behind has a property called "<code>ParamValue</code>" which it sets as the text of my user control <code>TextBlock:txtName</code></p>

<pre><code> public sealed partial class SubCategoryUserControl : UserControl
    {        
      public string ParamValue
      {
        get { return (string)GetValue(ParamValueProperty); }
        set { SetValue(ParamValueProperty, value); }
      }        
      public static readonly DependencyProperty ParamValueProperty =  DependencyProperty.Register
      (
       "ParamValue",
       typeof(string),
       typeof(SubCategoryUserControl),
       new PropertyMetadata(string.Empty)
      );

    public SubCategoryUserControl()
    {
    this.InitializeComponent();
    txtName.Text = this.ParamValue;
    }          
  }
</code></pre>

<p>Calling from xaml form</p>

<pre><code>&lt;Grid &gt;

&lt;Grid.RowDefinitions&gt;
&lt;RowDefinition&gt;&lt;/RowDefinition&gt;
&lt;/Grid.RowDefinitions&gt;

&lt;Myusercontrol:SubCategoryUserControl x:Name="tempUserControl" ParamValue="From Window" Grid.Row="0"/&gt;

&lt;/Grid&gt;
</code></pre>

<p>Here I have pass parameter <strong>ParamValue="From Window"</strong> when usercontrol loaded textblock showing empty.</p>

<p>Property not getting update its showing emtry string i.e default value which assigned while creating dependancy property</p>

<pre><code>public static readonly DependencyProperty ParamValueProperty = DependencyProperty.Register
           (
                "ParamValue",
                typeof(string),
                typeof(SubCategoryUserControl),
                **new PropertyMetadata(string.Empty)**
           );
</code></pre>

<p>How I get assigned value?</p>