Click here to Skip to main content
12,395,645 members (81,509 online)
Click here to Skip to main content

Stats

147.1K views
1.9K downloads
116 bookmarked
Posted

WPF Business Application Series Part 2 of n - Form Notification Control that Binds to the IDataErrorInfo.Error Property

, 2 Apr 2008 CPOL
WPF VB.NET Business Application Form Notification control that binds to business entity objects that implement the IDataErrorInfo interface. The article also covers entity validation with the WPF 3.5 IDataErrorInfo interface.
WPFLOBPartTwo
Core
Core.csi
Core.vbproj.user
My Project
Themes
WPF
Converters
Custom Controls
CustomToolBarButton
FormNotification
Time Display
Helpers
DemonstrationForms
Business Object
DemonstrationForms.csi
Forms
My Project
WPFBusiessApplicationSample.suo
WPFBusinessApplicationSample
My Project
MyExtensions
Resources
Images
Delete.png
DeleteDisabled.png
New.png
NewDisabled.png
rss.png
rss3d.png
Save.png
SaveDisabled.png
Skins
Metallic
OfficeBlack
OfficeBlue
WPFBusiessApplicationSample.csi
WPFBusiessApplicationSample.vbproj.user
WPFToolBarButtonSample.csi
Core.csi
Core.vbproj.user
DemonstrationForms.csi
Delete.png
DeleteDisabled.png
New.png
NewDisabled.png
rss.png
rss3d.png
Save.png
SaveDisabled.png
WPFBusiessApplicationSample.csi
WPFBusiessApplicationSample.vbproj.user
WPFToolBarButtonSample.csi

Class ApplicationMainWindow

#Region " Methods "

    Private Sub OnMenuItemExitClick(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
        Me.Close()

    End Sub

    Private Sub OnViewMenuItemClick(ByVal sender As Object, ByVal e As RoutedEventArgs)

        Dim objClicked As MenuItem = CType(e.OriginalSource, MenuItem)

        For Each mi As MenuItem In CType(sender, MenuItem).Items
            mi.IsChecked = mi Is objClicked
        Next

        CType(Application.Current, Application).ApplySkin(New Uri(TryCast(objClicked.CommandParameter, String), UriKind.Relative))

    End Sub

#End Region

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)

Share

About the Author

Karl Shifflett
Architect
United States United States

Current passions are: Electron, ES6, Node.js, Angular, Aurelia, hybrid, Socket.IO, MQTT, and IoT.

Still keen on WPF and Prism, but currently Electron and ES6 deliver the same apps with much better performance, and they are cross-platform.

My Github Repros

Just a grain of sand on the worlds beaches.


You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 2 Apr 2008
Article Copyright 2008 by Karl Shifflett
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid