S
shapper
Hello,
I have a custom control property named "ImagePosition".
I need to have only two options available for this property: "Left" and
"Top".
How can I do this?
Thanks,
Miguel
My Code:
' ImagePosition
<Bindable(True), Category("Layout"), DefaultValue(""),
Localizable(True)> Property ImagePosition() As String
Get
Dim sImagePosition As String = CStr(ViewState("ImagePosition"))
If sImagePosition Is Nothing Then
Return String.Empty
Else
Return sImagePosition
End If
End Get
Set(ByVal Value As String)
ViewState("ImagePosition") = Value
End Set
End Property
I have a custom control property named "ImagePosition".
I need to have only two options available for this property: "Left" and
"Top".
How can I do this?
Thanks,
Miguel
My Code:
' ImagePosition
<Bindable(True), Category("Layout"), DefaultValue(""),
Localizable(True)> Property ImagePosition() As String
Get
Dim sImagePosition As String = CStr(ViewState("ImagePosition"))
If sImagePosition Is Nothing Then
Return String.Empty
Else
Return sImagePosition
End If
End Get
Set(ByVal Value As String)
ViewState("ImagePosition") = Value
End Set
End Property