-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
60 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 12 additions & 43 deletions
55
...e/samples/snippets/visualbasic/VS_Snippets_Wpf/BindValidation/VisualBasic/MyDataSource.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,12 @@ | ||
Public Class MyDataSource | ||
' Methods | ||
Public Sub New() | ||
Me.Age = 0 | ||
Me.Age2 = 0 | ||
End Sub | ||
|
||
|
||
' Properties | ||
Public Property Age As Integer | ||
Get | ||
Return Me._age | ||
End Get | ||
Set(ByVal value As Integer) | ||
Me._age = value | ||
End Set | ||
End Property | ||
|
||
Public Property Age2 As Integer | ||
Get | ||
Return Me._age2 | ||
End Get | ||
Set(ByVal value As Integer) | ||
Me._age2 = value | ||
End Set | ||
End Property | ||
|
||
Public Property Age3 As Integer | ||
Get | ||
Return Me._age3 | ||
End Get | ||
Set(ByVal value As Integer) | ||
Me._age3 = value | ||
End Set | ||
End Property | ||
|
||
|
||
' Fields | ||
Private _age As Integer | ||
Private _age2 As Integer | ||
Private _age3 As Integer | ||
End Class | ||
|
||
'<DataSource> | ||
Public Class MyDataSource | ||
Public Sub New() | ||
Me.Age = 0 | ||
Me.Age2 = 0 | ||
End Sub | ||
|
||
Public Property Age As Integer | ||
Public Property Age2 As Integer | ||
Public Property Age3 As Integer | ||
End Class | ||
'</DataSource> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters