/// <summary>
 /// Returns an object that is provided as the value of the target property for this markup extension.
 /// </summary>
 /// <param name="serviceProvider">A service provider helper that can provide services for the markup extension.</param>
 /// <returns>The object value to set on the property where the extension is applied.</returns>
 public override object ProvideValue( IServiceProvider serviceProvider )
 {
     return _converter ?? ( _converter = new BoolVisibilityConverter() );
 }
Пример #2
0
 /// <summary>
 /// Returns an object that is provided as the value of the target property for this markup extension.
 /// </summary>
 /// <param name="serviceProvider">A service provider helper that can provide services for the markup extension.</param>
 /// <returns>The object value to set on the property where the extension is applied.</returns>
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(_converter ?? (_converter = new BoolVisibilityConverter()));
 }