AcrylicBrushExtension
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf
public sealed class AcrylicBrushExtension : MarkupExtension
Provides one in-app acrylic visual brush for a concrete supported XAML target.
Base type: MarkupExtension (including inherited WPF and .NET members)
Constructors
AcrylicBrushExtension
public AcrylicBrushExtension()
Initializes a new acrylic brush markup extension.
AcrylicBrushExtension
public AcrylicBrushExtension(string backdropSourceName)
Initializes a new acrylic brush markup extension with a backdrop source name.
Parameter backdropSourceName: The name of a source in the target's namescope.
Properties
BackdropSourceName
public string BackdropSourceName { get; set; }
Gets or sets the required name of the same-window backdrop source.
Recipe
public AcrylicMaterialRecipe? Recipe { get; set; }
Gets or sets the fixed recipe values used by this brush instance.
Methods
ProvideValue
public override object ProvideValue(IServiceProvider serviceProvider)
Creates a distinct visual brush for a concrete Border or supported Shape fill.
Parameter serviceProvider: The XAML service provider for this use.
Returns: A per-use VisualBrush.
Exception System.ArgumentNullException: The XAML service provider is missing.
Exception System.InvalidOperationException: The backdrop source name is empty.
Exception System.NotSupportedException: The XAML target does not have a concrete supported brush property.