When I’ve started with Xamarin.Forms, my first problem was about app’s localization. All tutorials and also Xamarin documentation that I found regard only about PCL’s projects (that now are deprecated in favor of .net standard).
However, my scenario was better with shared project so I started the project in this way, saying to myself: “It’s time to face off the problem”.
I’ve thinked about a solution about app’s localization and I’ve developed the DewXamarinLocalization library, a .net standard library for xamarin forms.
So, let’s see how we can localize a Xamarin.Form shared project.
Continue reading “Localize your Xamarin Forms App with shared project.”
I’ve started to use Asp Net .core some month ago, and I like it. However, some approach used by default from the system like configuration options or localization for me are a little “old style”.
In this case, lets take the localization like example. Here how it works.
Continue reading “How to localize your webapp with Asp Net Core and DewLocalizationMiddleware”
Sometimes we need to call a function every time we get an instance of a controller (someone say constructor?).
However, the constructor has a bad limitation about the operations it can do. The HttpContext object isn’t initialized.
Let’s take a scenario. We had a cookie that needs be readed and initialized every time.
Continue reading “A base event for ASP .NET CORE controllers”
When we talk about MVC on asp net, we know that the views are (in default approach) parts of our web page, because we have defined a layout that contains them. But sometimes we need/want to use a different layout, one of these scenario is for example when we have a different layout for logged/not logged users.
Let’s see an example, which use the simple AuthenticationCookie from NuGet package Microsoft.AspNetCore.Authentication.Cookies.
Continue reading “Change layout for authenticated users in asp net core”
Lets start with a great new for library maker with Visual Studio 2017. Now, when you create a library you can generate automatically also the NuGet package of it.
Lets see how it works.
Continue reading “Package a .NET Standard Library with Visual Studio 2017”