TGIMBA Windows Presentation Foundation (WPF) Client – Add Functionality Created

Git  Code

Welcome back to the The Globe In My BucketList Application (TGIMBA) Windows Presentation Foundation (WPF) client creation. Tonight will be about the Add functionality.

As with any good design and the Don’t Repeat Yourself (DRY) principal, the Add and Edit functionality will be sharing the same control. To start, I add four controls to the Xaml:

  • List Item Name Textbox
  • Date Textbox (will be prepopulated and read only)
  • Category selection combo box (categories are hot, warm and cold)
  • Achieved checkbox (to indicate whether or not the bucket list item has been completed).

three

I then prepopulate the date and category controls:

four

The saving of the new bucket list item is done in the view model:

five

In use:

  • Using the login steps listed in the previous blog entries, navigate to the Add/Edit screen via the menu on the bucket list view, fill in and click ‘Submit’

one

  • Once saved, scroll to the bottom and verify your item is saved

two

The edit functionality will be my next post.

Stay tuned!

References

1) https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/how-to-make-a-textbox-control-read-only
2) https://stackoverflow.com/questions/31734227/wpf-checkbox-check-ischecked

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s