Install-Package ViewPump -Version 1.0.3
dotnet add package ViewPump --version 1.0.3
<PackageReference Include="ViewPump" Version="1.0.3" />
paket add ViewPump --version 1.0.3
#r "nuget: ViewPump, 1.0.3"
// Install ViewPump as a Cake Addin #addin nuget:?package=ViewPump&version=1.0.3 // Install ViewPump as a Cake Tool #tool nuget:?package=ViewPump&version=1.0.3
ViewPump allows you to intercept the view inflation process. This library allows you to customize views on an app-wide scale without having to create sub-classes (although these are supported), both before and after the view itself has been inflated.
Heavily based on InflationX' ViewPump.
Install ViewPump from NuGet, or add a reference to
At the entry point for your app, call
ViewPump.InterceptingService.Init(...). You can optionally provide your own
The view inflation process can be intercepted with two methods:
InflateRequested is triggered before a view is inflated, and
ViewInflated is triggered after a view has been inflated. Both events provide custom event arguments that give you relevant information per the event. See Events.
You can optionally provide an
IInterceptingDelegate implementation by doing the following:
ViewPump.InterceptingService.Delegate = new MyCustomInterceptingDelegate();
The delegate gives you methods that provide you with the same information as the aforementioned events. The key difference, though, is that
IInterceptingDelegate.OnInflateRequested returns a
bool. This allows you to deny the inflation of particular views however, there may be side effects as a result of doing so.
- Xamarin.Google.Android.Material (>= 126.96.36.199)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ViewPump:
A customizable, cross platform, dialog messaging service for Xamarin.Android and Xamarin.iOS.
This package is not used by any popular GitHub repositories.