@@ -16,20 +16,20 @@ public static class BindingHelper
1616 /// <summary>
1717 /// A dummy property to initialize the binding to evaluate
1818 /// </summary>
19- private static readonly DependencyProperty DummyProperty = DependencyProperty . RegisterAttached (
20- "Dummy" ,
21- typeof ( object ) ,
22- typeof ( BindingHelper ) ,
23- new UIPropertyMetadata ( null ) ) ;
19+ private static readonly DependencyProperty DummyProperty
20+ = DependencyProperty . RegisterAttached ( "Dummy" ,
21+ typeof ( object ) ,
22+ typeof ( BindingHelper ) ,
23+ new UIPropertyMetadata ( null ) ) ;
2424
2525 /// <summary>
2626 /// A dummy property to initialize the binding to evaluate. This property supports also string format.
2727 /// </summary>
28- private static readonly DependencyProperty DummyTextProperty = DependencyProperty . RegisterAttached (
29- "DummyText" ,
30- typeof ( string ) ,
31- typeof ( BindingHelper ) ,
32- new UIPropertyMetadata ( null ) ) ;
28+ private static readonly DependencyProperty DummyTextProperty
29+ = DependencyProperty . RegisterAttached ( "DummyText" ,
30+ typeof ( string ) ,
31+ typeof ( BindingHelper ) ,
32+ new UIPropertyMetadata ( null ) ) ;
3333
3434 /// <summary>
3535 /// Evaluates a defined <see cref="Binding"/>-path on the given object
@@ -48,7 +48,7 @@ public static object Eval(object source, string expression)
4848 /// </summary>
4949 /// <param name="source">the object to evaluate</param>
5050 /// <param name="expression">the binding expression to evaluate</param>
51- /// <param name="format">the stringformat to use</param>
51+ /// <param name="format">the string format to use</param>
5252 /// <returns>the result of the <see cref="Binding"/></returns>
5353 public static object Eval ( object source , string expression , string format )
5454 {
@@ -70,29 +70,29 @@ public static object Eval(Binding binding, object source)
7070 }
7171
7272 Binding newBinding = new Binding
73- {
74- Source = source ,
75- AsyncState = binding . AsyncState ,
76- BindingGroupName = binding . BindingGroupName ,
77- BindsDirectlyToSource = binding . BindsDirectlyToSource ,
78- Path = binding . Path ,
79- Converter = binding . Converter ,
80- ConverterCulture = binding . ConverterCulture ,
81- ConverterParameter = binding . ConverterParameter ,
82- FallbackValue = binding . FallbackValue ,
83- IsAsync = binding . IsAsync ,
84- Mode = BindingMode . OneWay ,
85- StringFormat = binding . StringFormat ,
86- TargetNullValue = binding . TargetNullValue
87- } ;
73+ {
74+ Source = source ,
75+ AsyncState = binding . AsyncState ,
76+ BindingGroupName = binding . BindingGroupName ,
77+ BindsDirectlyToSource = binding . BindsDirectlyToSource ,
78+ Path = binding . Path ,
79+ Converter = binding . Converter ,
80+ ConverterCulture = binding . ConverterCulture ,
81+ ConverterParameter = binding . ConverterParameter ,
82+ FallbackValue = binding . FallbackValue ,
83+ IsAsync = binding . IsAsync ,
84+ Mode = BindingMode . OneWay ,
85+ StringFormat = binding . StringFormat ,
86+ TargetNullValue = binding . TargetNullValue
87+ } ;
8888 return Eval ( newBinding ) ;
8989 }
9090
9191 /// <summary>
9292 /// Evaluates a defined <see cref="Binding"/> on the given <see cref="DependencyObject"/>
9393 /// </summary>
9494 /// <param name="binding">The <see cref="Binding"/> to evaluate</param>
95- /// <param name="dependencyObject">optional: The <see cref="DependencyObject"/> to evalutate </param>
95+ /// <param name="dependencyObject">optional: The <see cref="DependencyObject"/> to evaluate </param>
9696 /// <returns>The resulting object</returns>
9797 public static object Eval ( Binding binding , DependencyObject dependencyObject )
9898 {
@@ -120,4 +120,4 @@ public static object Eval(Binding binding)
120120 return Eval ( binding , null ) ;
121121 }
122122 }
123- }
123+ }
0 commit comments