I'm trying to build this: http://www.thejoyofcode.com/Controll...Thumbnail.aspx in VB, but run in to trouble.
Here's my code:
I guess it comes down to translating the C# function typeof.... it's not TypeOf() however obvious it seems...Code:Partial Public Class ScrollViewerThumbnail Inherits Windows.Controls.Control Public Sub New() DefaultStyleKeyProperty.OverrideMetadata(TypeOf(ScrollViewerThumbnail), New Windows.FrameworkPropertyMetadata(TypeOf(ScrollViewerThumbnail))) End Sub Public ReadOnly ScrollViewerProperty = Windows.DependencyProperty.Register("ScrollViewer", ScrollViewer.GetType, TypeOf(ScrollViewerThumbnail), New Windows.UIPropertyMetadata(Nothing)) Public Property ScrollViewer() As Windows.Controls.ScrollViewer Get Return End Get Set(ByVal value As Windows.Controls.ScrollViewer) End Set End Property End Class




Reply With Quote