Clean Code vs. Dirty Code: React Best Practices - Donavon West https://americanexpress.io/clean-code-dirty-code/ Please do read the above article from Donavon West. It provides a lot of good ways to do React in a better, cleaner way. Thanks Donavon!
Source: Steve Gordon’s blog post We want to be able to ask for an IThing<SomeType> in the constructor of a consumer which will get the correct GenericThing<SomeType> injected. We can use a extension method on the ServiceCollection that accepts the types as parameters. Our registration would then look like this serviceCollection.AddSingleton(typeof(IThing<>), typeof(GenericThing<>)); via Studio for WP … Continue reading Dependency Injection – Registering Generic Types in ASP.NET Core
Lets take a look at ways and tips to extend your app real estate into the Windows's Title Bar and give your app a new look. CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar; coreTitleBar.ExtendViewIntoTitleBar = true; TitleBar.Height = coreTitleBar.Height; Window.Current.SetTitleBar(MainTitleBar); From EternalCoding While doing that also take a look at Embed Titlebar into your UWP app from JuniperPhoton … Continue reading UWP: Extend your app into the TitleBar
An Android app takes some time to start up, especially when the app is first launched on a device. A splash screen may display start up progress to the user or to indicate branding. Here's how you will be able to create a splash screen: Step 1: Create a Drawable for the Splash Screen Visual … Continue reading Xamarin Android: Creating a Splash Screen
How to: Implementing Google Play Licensing in Xamarin.Android and Xamarin.Forms
Google Play offers a licensing service that lets us enforce licensing policies for applications that us publish on Google Play. With Google Play Licensing, our application can query Google Play at runtime to obtain the licensing status for the current user, then allow or disallow further use as appropriate.
The Google Play Licensing service is primarily intended for paid applications that wish to verify that the current user did in fact pay for the application on Google Play. However, any app (including free apps) may use the licensing service to initiate the download of an APK expansion file.
Getting Things Ready
In order to add licensing to our app, all we will need is the licensing verification library. We can get this from NuGet.org or the Component Store (coming soon), or, we can build the source using the GitHub repository.
After adding the library, we need to get hold…
View original post 678 more words
Rating control for UWP apps
In this article we’ll build a XAML and C# Rating Control for the Windows Universal Platform which will be entirely drawn by the Composition API. It’s a custom Control that comes with the following dependency properties:
- Maximum (int): the number of stars (or other images) to display,
- StepFrequency (double): the rounding interval for the Value (a percentage, e.g. 0.25)
- Value (double): the current value (from 0 to Maximum)
- ItemHeight (int): height (and width) of each image in device independent pixels
- ItemPadding (int): the number of pixels between images
- FilledImage (uri): path to the filled image
- EmptyImage (uri): path to the empty image
- IsInteractive (bool): whether or not the control responds to user input (tapping or sliding)
The names of the core properties (Maximum, StepFrequency, and Value) are borrowed from the Slider class because after all –just like the slider- a Rating control is just a…
View original post 1,252 more words
The Windows SDk comes with Windows App Certification Kit (WACK) used for testing your app locally. This tool runs tests similar to the Windows Store certification tests. The app is essential for verifying your app before the store upload. Most of the time, your app will pass all the tests. The problem arises when one of … Continue reading Using Windows App Certification Kit – Test Results