I think I ran into a road block. We use MVVM with Prism and have a view that requires an ink canvas. I create a StrokeCollection that is bound from my ViewModel to the view. I can install the collection from my view model, but the changes will not appear in the ViewModel while the user is drawing. Is there any way to make this work?
My property in my ViewModel is as follows:
private StrokeCollection _strokes;
public StrokeCollection Signature
{
get
{
return _strokes;
}
set
{
_strokes = value;
OnPropertyChanged("Signature");
}
}
Here is my XAML binding string:
<InkCanvas x:Name="MyCanvas" Strokes="{Binding Signature, Mode=TwoWay}" />
For some reason, apparently, InkCanvas never notifies the ViewModel of any changes.
source
share