Here is a simple example of how to use MongoDB with C#. What is MongoDB? MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schema. How to use the MongoDB? Because MongoDB has to run on a server, you then have two options: install it or […]
WPF – ProgressBar
In this simple example, we will see how to create and manipulate the ProgressBar control from WPF in a MVVM way. Let’s start with the View in XAML: And now the ViewModel: Happy coding! 🙂
Xamarin IOS – Youtube Video Embed fit in a UIWebView
Introduction Here is a simple example of a YouTube video embeded in an UIWebView. The design is very simple. A stack view inside the mainView. You can find just bellow the design in Xcode. By code, we will instantiate and add the UIWebView in the stack view. By the way, at the end it should […]
Xamarin IOS – Implement LazyLoading in your TableView
Introduction In this post you will see how to implement LazyLoading on your TableView. In my previous article, I explained how to manage the scrolling. It’s time to continue our journey with Xamarin IOS! What is LazyLoading ? The lazy loading is a design pattern. The idea is to load only what you need. The […]
MongoDB Realm – Simple example
Here is a simple example on how to use MongoDB Realm with C#. What is MongoDB Realm? MongoDB Realm will combine Realm, the popular mobile database and data synchronization technology, and MongoDB Stitch, the serverless platform for MongoDB, into a unified solution that makes it easy for you to build powerful and engaging experiences on […]
Xamarin IOS – Manage InputTextView size and scrolling
Introduction This post is linked to my previous one about the keyboard (available here). The idea now is to manage InputTextView size and scrolling correctly. It’s a nightmare to scroll inside a small input. That is the reason why the scrolling is disabled until the height reach the middle of the screen. In the screenshot […]
Xamarin IOS – InputView taking into account the keyboard height
Hello Xamarin Girls and Boys. Today, you will be able to take into account the keyboard height in a few lines of code when it appears on the screen. For example, it is very useful if you want to implement a page of comment or a chat. View and constraint The InputView is located at […]
C# – Custom Attribute
In this article, we will see together how to create our own custom attribute with C#, and then get the value of it thanks to reflection through a simple example. What is an Attribute? An attribute is basically a metadata object used to provide declarative information to a class, property, enum, … You can retrieve […]
Hangfire – Recurring tasks under a minute
Introduction What is Hangfire? “An easy way to perform background processing in .NET and .NET Core applications. No Windows Service or separate process required.” https://www.hangfire.io/ Basically, we needed to replace our “good” old Microsoft WorkFlow’s by something else. And the decision has been made; we will use Hangfire! What is the problem with Hangfire? It […]
Hangfire – Simple CRON Expression converter
Introduction Hangfire is good, but it’s missing a simple CRON Expression converter. The main goal is to get an app setting value from the config file and convert it to a CRON Expression. And at the end, that expression can be used by Hangfire. App Settings We will need three kind of settings in our […]