|
Imports FirstFloor.ModernUI.Windows.Controls
Imports System.Dynamic
Imports Curion.WPF.Controls
Public Class FormExpandoObject
Private obj As Object
Sub New()
InitializeComponent()
Dim expando As New ExpandoObject
obj = expando
'If you don't set property values, text boxes will be used...
obj.Name = "Larry"
obj.Phone = "555-1212"
obj.Age = 51
obj.IsActive = True
obj.Hired = #5/15/2013#
ctlForm.Title = StringTitle("ExpandoObject", Windows.HorizontalAlignment.Left)
ctlForm.DataContext = obj
End Sub
Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
Call ShowResults(obj)
End Sub
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I enjoy my wife, living in the woods, my 7 dogs, and learning new things. I like to play with UI stuff and model based coding.