c# - Custom DependencyProperty -


I want to create a dependency property with 2 options (left and right) in a text block such as left alignment same.

Does anyone know the code associated with this? I have just made simple dependencies assets in the form of the following:

  Public stable only readability dependence Allianceproperty = Dependency Property. Registrar ("align", typef (string), typef (hfkcrvrv rekennel), new frameworkpropertymadataadata ("left", frameworkpropertymetaedoptions referrals | frameworkpropertymatopooptionsfifferencemajor)); [Typcounter (typewriter (stringsconver)]] Align public string {get {return (string) base.GetValue (AlignProperty); } Set {base.SetValue (AlignProperty, value); }}  

Set the type of property for an enum type instead of the string Example:

  Public Enum Brush Type {Solid, Gradient} Public Brush Type Brush Type {get {return (BrushTypes) GetValue (BrushTypeProperty); } Set {Set Value (BrushesProperty, Value); }} Public relation read only dependent property brush typeProperty = Dependency Property. Registration ("brush type", typef (brushtaps), typef (myclass));  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -