fbpx
Welcome, Guest
Username: Password: Remember me
Share your code snippets, screen shots etc. here
  • Page:
  • 1

TOPIC: X#, WPF/XAML and MVVM - nice working app for Cologne .............

X#, WPF/XAML and MVVM - nice working app for Cologne ............. 2 years 4 months ago #1068

  Phil Hepburn's Avatar Topic Author Phil Hepburn Offline Posts: 742
Hi guys,

Well, lets try out a few things in this post.

I have been working on my 'Stock' application for Cologne today, and have added some nice and interesting features - all X#, no C# is site. Even though it is based on Entity Framework 6, and the MVVM pattern of development using WPF/XAML technologies and LINQ in many, many, places.

This stuff is a joy to use and when Data Binding is done right it works like a dream, like a charm.

I am going to try a post directly a video clip I just made of part of the application. Robert has allowed us to post MP4 files since my first attempt a few weeks back.

The interesting bit we will see working in the video is a single PF form (window) which has a large part of it as a Content Control - this CC area can then have six different user controls swapped in and out by the button clicks (all RelayCommand driven).

We have one ViewModel for the WPF form, as the sixe UCs can be seen just as controls to the one form. All the screen data you see is Data Bound and so this means the attributes on the XAML controls are bound to Public Properties of the VM itself. Use PPs and binding works.

Each of five UCs allows the user to select an Entity object - customer, order, product etc., and the sixth 'summary' screen shows all the selected items. Once again these are public properties of the ViewModel.

The work is not complete as yet, the plan being to be able to delete from the SQL database each of the selected items - this last bit (the deleting) is missing - BUT - should only need a few lines of code.

Please let me know if you have issues playing the video and seeing some of the X# fun I have been having. Remember, I waited over six years to be able to do all this with one xBase language, and X# has hit the spot.

Best Regards,
Phil.
Wales, UK.

XSharpStoc...s_01.mp4

Attachments:

    XSharpStoc...s_01.mp4

Please Log in or Create an account to join the conversation.

X#, WPF/XAML and MVVM - nice working app for Cologne ............. 2 years 4 months ago #1069

  wriedmann's Avatar wriedmann Offline Posts: 1545
Hi Phil,

I would go even further and say that the real fun begins with own usercontrols, together with complete databinding.

Maybe I have to prepare a sample for it. My door configurator uses some of house-built controls, all usable in a MVVM application.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

  • Page:
  • 1