Skip to content
Aperture-like custom control for Xamarin.Forms
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Aperture
lib/ApertureView
media
.gitignore
Aperture.sln
README.MD

README.MD

Aperture

A Xamarin.Forms custom control that shows either the background or a child view using an aperture-like mask.

It is implemented exclusively in Xmarin.Forms and hence should run on all platforms where Xamarin.Forms is supported. Also, it is tiny. Would probably look great on watches :D

Get it from NuGet: NuGet

Here's a quick rundown of the control's features:

  • Specify the aperture opening, where 0.0 corresponds to closed and 1.0 to fully open.
  • Choose an aperture color.
  • OPTIONAL: provide a child view to be shown, instead of the control's background

Known Limitations

On iOS you might have jittery movement. Just add thesetwo lines to your App.xaml

         xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
         ios:Application.HandleControlUpdatesOnMainThread="true"

Here's a gif of the included sample app:

Sample

As usual you can do everything you want with my code. Have fun!

Have a question? Tweet at me: https://twitter.com/MunteanMarius

You can’t perform that action at this time.