Skip to main content

UWP – UI Thread and Multiple Views

UIThread UWP Dispatcher

What is “multiple view” in UWP? In UWP, your “main” application can open a new – separated – view. Here is a link from the Microsoft website. When should you use multiple views? In many cases it is useful to be able to open multiple views: – An email app that lets users view a […]

UWP – Theme Overview

UWP Themes Logo

How to get current Windows 10 Theme? In the namespace Windows.UI.ViewManagement, you can Access to the UISettings class. It will allow you to get the Window background and deduce the current theme. How to set the theme when multiple views are open? You must iterate all the views via the CoreApplication. Secondly, you can go […]

C# – MongoDB

mongodb-logo

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

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

Xamarin IOS Youtube Embed Design

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 you

Xamarin IOS Lazy Loading

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

MongoDB Realm database

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 an

xamarin ios scrolling inputtextview

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 accoun

Keyboard Xamarin IOS 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

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 […]