Simple ScrollViewer With Offset in DP
if you want a ScollWiever with offsets use public class ScrollViewerEx : ScrollViewer, INotifyPropertyChanged { static ScrollViewerEx() { //ScrollViewer.VerticalOffsetProperty.OverrideMetadata(typeof(ScrollViewerEx), // new FrameworkPropertyMetadata(0.0, (d, e) => // { // ScrollViewerEx control = d as ScrollViewerEx; // control.ScrollToVerticalOffset((double)e.NewValue); // })); //ScrollViewer.HorizontalOffsetProperty.OverrideMetadata(typeof(ScrollViewerEx), // new FrameworkPropertyMetadata(0.0, (d, e) => // { // ScrollViewerEx control = d as ScrollViewerEx; // […]
