Click here to Skip to main content
15,745,750 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
i created dependency property for text wrapping like below

public static readonly DependencyProperty MTextWrapProperty = DependencyProperty.Register("MTextWrap",
    typeof(TextWrapping), typeof(MarqueeTextBlock), null);

      public TextWrapping MTextWrap
          get { return (TextWrapping)this.GetValue(MFontSizeProperty); }
              this.SetValue(MTextWrapProperty, value);

Now how can i create dependency property for width and height?
Vincent Beek 16-Oct-14 9:04am    
Don't you already have them from inheritance?
Sergey Alexandrovich Kryukov 16-Oct-14 12:54pm    
If not, it is done in exact same way as any other dependency properties. The question makes little to no sense.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900