ReactiveUI + Xamarin Forms + Prism

If you guys have not use this combination I strongly suggest to give it a try. Prism handles navigation like a boss, ReactiveUI makes your code readable that you will comeback 6 months from today and you will still be able to pick it up fairly quickly (that is not the only reason of course but one of the most appealing for me) and Xamarin Forms (no need for introductions here).

If you have never used Prism or ReactiveUI I recommend:

Prism in Xamarin Forms Step by Step by Xamgirl.

And

You, I, and ReactiveUI by Kent Boogaart.

Now, How do we use them together?

Continue reading

XAF to Xamarin Teaser

I know I still owe you guys the complete article about the XAF POS Teaser but I could not help it. Here is a quick XAF to Xamarin Teaser.

Remarks:

  • ORM in NET Standard library to share between XAF and Xamarin.
  • Custom IDataStore Implementation in ASP.Net Core Web API.
  • Shared Authentication between XAF and Xamarin
  • Support for Direct SQL Queries with XPO
  • Win, Web, Android, iOS, UWP. (UNO coming soon)
  • Using Syncfusion Data Grid because DevExpress Data Grid for Xamarin is still not on Nuget. (You can also use a ListView,  CollectionView, etc)
  • Not showing in the teaser: XAF Reports in Xamarin using Syncfusion PDF Viewer.
  • Not showing in the teaser: Multiple IDataStore implementation to support multiple databases in the same application.

I am really happy about this template. I believe it will save a ton of time. As always feel free to reach out with any question/suggestion or if you are struggling trying to make your XAF project mobile.

Xafmarin out!

Meeting Dave and Adam -DevExpress MVPs

For the Xamarin Saturday on August 24 I traveled to Toronto, as we all know from my last post. One thing I did not mention there because I wanted to have a special post just for this was that I had the opportunity and honor to finally meet in person Dave Hesketh and Adam Latimer current DevExpress MVPs.

I want to say thanks to both for making the trip from Orangeville. I have been following their work for a couple years already and my XAF POS Teaser includes code from their Free Modules.

We had a  great talk about XAF, XPO, Blazor, Xamarin and more. Continue reading

CodeRush Shortcuts for XAF, Xamarin, ReactiveUI and Prism

A few months back my great friend Joche Ojeda did  a post on a CodeRush Template for Xamarin forms bindable property and to quote him exactly:

“From time to time I realize that a lot of the stuff I’m writing is repetitive and complex, so that is the perfect time to create a new code rush custom template, behold the new template xfbp (xamarin forms bindable property).”

Well, behold some other templates for XAF, Xamarin, Prism and Reactive UI.

Continue reading

Xamarin Developer Summit Impressions

Last month,  I was in Houston at the Xamarin Developer Summit, a conference by the community and for the community, and I have to admit it was everything I expected and more. You read blogs about past events (Microsoft Build, Evolve, Ignite) but nothing compare to actually attending one.

It was good to meet a large number of community members that you follow daily on twitter, read their articles and actually ask them anything in person.

Continue reading

Notes to Myself: Helpers.cs

My next step is making CodeRush shortcuts for these classes but meanwhile I decided to have them here so I can refer quickly to them.

Update:

This is exactly the type of post that I always find and then I have to look into the source code to get the code I need.

https://www.devexpress.com/Support/Center/Question/Details/T825872/how-to-clone-an-object-example

I wish we had something like https://source.xafmarin.com for XAF.

Continue reading

XAF ColorWheel Module For Win

I had this post in private for a while now, one because I did not think that many people were interested and two because this was actually my first XAF module after taking the training from BITFrameworks a few years back.

Lately, I have been making public a few of other post so why not, let’s put this one out there as well.

The concept of modules in XAF it really interest me because we do a specific functionality once and that is it, we have it available for all future projects if you architecture it right.

Besides the training that I would always recommend, a great article about reusable modules is this one by Dennis. It goes over controllers, actions, localization and more.

Continue reading

XPO Tips and Tricks (2) @ CurrentUser

I am still amazed by the amount of neat tips, tricks and new (or sometimes really old) things I am still learning every day about XAF and XPO only by browsing the daily support tickets.

This time I stumbled upon a couple tickets:

https://www.devexpress.com/Support/Center/Question/Details/T214693/how-to-create-currentuser-parameter-instead-of-currentuserid

https://www.devexpress.com/Support/Center/Question/Details/T468768/is-there-a-way-to-pull-in-the-current-user-into-a-security-criteria-expression

And

https://www.devexpress.com/Support/Center/Question/Details/Q415990/criteria-current-user-property

Those ones made me revisit the docs about Free Joins in XPO and honestly I don’t know why I haven’t been using this more often because it is a beauty.

Continue reading

XPO Tips and Tricks (1)

The new XPO tutorials for ASP.NET Core MVC and Razor Pages with DevExtreme are out so of course I could not wait to test them out. I followed their instructions here and had them running in no time. And it was a beauty but that is not what this article is about. Going trough the source code I stumbled upon this:

unitOfWork.GetObjectByKeyAsync and it reminded me of a mini series I have been wanting to do for a long time. I had a lot of support tickets bookmarked it for this so I guess it is finally time. The article ORM Hate from Martin Fowler which I just recently re-read was also a clear trigger to finally get it done (or at least start it).

Continue reading