# C1.WPF.Maps.VectorPlacemark.OnDataContextChanged

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Maps_VectorPlacemark_OnDataContextChanged_" data-uid="C1.WPF.Maps.VectorPlacemark.OnDataContextChanged*">OnDataContextChanged Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Maps_VectorPlacemark_OnDataContextChanged_" data-uid="C1.WPF.Maps.VectorPlacemark.OnDataContextChanged*"></a>
<h4 id="C1_WPF_Maps_VectorPlacemark_OnDataContextChanged_System_Windows_DependencyObject_System_Windows_DependencyPropertyChangedEventArgs_" data-uid="C1.WPF.Maps.VectorPlacemark.OnDataContextChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">OnDataContextChanged(DependencyObject, DependencyPropertyChangedEventArgs)</h4>
<div class="markdown level1 summary"><p>Called when data context was changed.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void OnDataContextChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub OnDataContextChanged(obj As DependencyObject, args As DependencyPropertyChangedEventArgs)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">DependencyObject</span></td>
      <td><span class="parametername">obj</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">DependencyPropertyChangedEventArgs</span></td>
      <td><span class="parametername">args</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
