MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Badged control Badge property throws Exception with PropertyChanged

Open uPloraX opened this issue 9 years ago • 1 comments

When I bind a property from a ViewModel to the Badge property of the Badged Control, it will throw an expection on the PropertyChanged Event.

<materialDesign:Badged Badge="{Binding EnqueuedDownloads}" />

Example binding property with Prism BindableBase

public int EnqueuedDownloads
{
    get { return _enqueuedDownloads; }
    set { SetProperty(ref _enqueuedDownloads, value); } <-- Crashes here
}
EnqueuedDownloads++; or EnqueuedDownloads += 1;
System.InvalidOperationException:
The name "BadgeScaleTransform" cannot be found in the namespace of "System.Windows.Controls.ControlTemplate"

uPloraX avatar Apr 30 '17 21:04 uPloraX

Should be fixed by #660

Keboo avatar May 01 '17 17:05 Keboo