How do I add an extended class ScrollViewer to the XAML file?
问题 I was looking for a way to animate the scrolling of a ScrollViewer and I found a sample, but when I try to add the class to the XAML file I get an error: Error 2 The type 'AniScrollViewer' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. this is the code I found in a forum and I added the class to my cs file: public class AniScrollViewer:ScrollViewer { public static DependencyProperty CurrentVerticalOffsetProperty =