title: Sensitive Dependency property values are exposed by snoop tool in WPF application, How to prevent that?
body: <p>I am using one user control which has it's password property. To set that password property i am using DependencyProperty created in viewmodel. When I am running application and trying to debug using Snoop tool(SnoopWpf), and when i look into user control properties it shows the password set for that control. I want to prevent snoop tool to show password property value.
  Is there any way we can add security to perticular dependency property?</p>
  
  <p>XAML Code:</p>
  
  <pre><code>&lt;class:MyControl x:Name="myControl" IsReadOnly="True" 
  CtlPassword="{Binding myPassword, Mode=OneWay}" 
  &lt;/class:MyControl&gt; 
  
  
  private static DependencyProperty PasswordProperty = DependencyProperty.Register("myPassword", typeof(String), typeof(myControl), new PropertyMetadata(null));
  
  public String myPassword
  {
       get { return (String)GetValue(PasswordProperty); }
       set { SetValue(PasswordProperty, value); }
  }
  </code></pre>
  
  <p>I looked into this link for one of the solution - <a href="http://stackoverflow.com/questions/3981959/how-to-snoop-proof-your-wpf-application">Snoop proof solution</a>
  Can we add any security to this myPassword property? Which will hide this property from any debugging tool</p>