title: property is trying to access the value from System.Windows.FrameworkElement
body: <p>Anyone please try this scenario and share idea to resolve the issue which am facing.</p>
  
  <p>Scenario:</p>
  
  <p>In my class(inherited from Control)  just am have declared the property FlowDirection which is the type of BulletGraphFlowDirection(Enum (Forward, Backward)).</p>
  
  <p>I have used the new Keyword to FlowDirection to resolve warning which I get.</p>
  
  <p>Warning 'DirectionSfBulletGraph1.MyClass.FlowDirection' hides inherited member 'System.Windows.FrameworkElement.FlowDirection'. Use the new keyword if hiding was intended.</p>
  
  <pre><code>    public enum BulletGraphFlowDirection
      {
          Forward,
          Backward
      }
  public class MyClass : Control
  {
  
      public new BulletGraphFlowDirection FlowDirection
      {
          get { return (BulletGraphFlowDirection)GetValue(FlowDirectionProperty); }
          set { SetValue(FlowDirectionProperty, value); }
      }
  
      // Using a DependencyProperty as the backing store for FlowDirection.  This enables animation, styling, binding, etc...
      public new static readonly DependencyProperty FlowDirectionProperty =
          DependencyProperty.Register("FlowDirection", typeof(BulletGraphFlowDirection), typeof(MyClass), new PropertyMetadata(BulletGraphFlowDirection.Backward));
  }
  </code></pre>
  
  <p>Issue:</p>
  
  <p>When I try to set the property FlowDirection value in Xaml page it’s just thrown the error message” Backward is not a valid value for FlowDirection ”.</p>
  
  <pre><code>&lt;local:MyClass x:Name="myClass" FlowDirection="Backward"/&gt;
  </code></pre>
  
  <p>My guess is the FlowDirection property is trying to access the value from System.Windows.FrameworkElement. FlowDirection'(Enum(LeftToRight,RightToLeft))</p>
  
  <p>Am not getting error when the property value is set through code behind.</p>
  
  <pre><code>myClass.FlowDirection = BulletGraphFlowDirection.Backward;
  </code></pre>
  
  <p>Why am I  getting issue when declared from Xaml page Its very difficult to found root cause of it. Please share me idea to resolve.</p>
  
  <p>Regards,</p>
  
  <p>Jeyasri M</p>