Click here to Skip to main content
15,895,746 members
Articles / Desktop Programming / WPF

CurionLib Dynamic Data Entry Forms

Rate me:
Please Sign up or sign in to vote.
5.00/5 (20 votes)
11 Aug 2013CPOL16 min read 54.8K   5.5K   44  
Dynamic data forms.
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
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.

Comments and Discussions