Class BubbleControl
A WPF custom control that can be used to provide an exotic visual action response indicator/cue for any user action on the application user-interface, just like what we see in other popular mobile OSs like Android, etc.
Namespace: Binarymission.WPF.Controls.CommandVisuals
Assembly: Binarymission.WPF.Controls.BubbleControl.dll
Syntax
public class BubbleControl : ContentControl
Remarks
You can use this control to host any other .NET UI element in it, and be able to provide visual feedback to any user action on it (mouse click, etc.), by letting the control render a animated wave / bubble-like UI visual as feedback.
We have all seen this kind of feature in various Presentation/screen-casting software where, when you click on a element on the screen, we get the visual feedback of where we had clicked, by the software rendering a circular swirls at the point of mouse-clicks.
Well! Now with our ExoticBubble .NET control, you too can have that feature (and much, much more) in your very own WPF applications.
Constructors
BubbleControl()
Declaration
public BubbleControl()
Properties
BubbleChildLayerBrush
Gets or sets the bubble child layer brush.
Declaration
public Brush BubbleChildLayerBrush { get; set; }
BubbleExpansionFactor
Gets or sets the bubble expansion factor.
Declaration
public double BubbleExpansionFactor { get; set; }
Remarks
A value of 0 completely hides the bubble rendring. A higher value (in increments of 0.1, for example) starts to grow the rendering size of the bubble.
BubbleInnerLayerBrush
Gets or sets the bubble inner layer brush.
Declaration
public Brush BubbleInnerLayerBrush { get; set; }
BubbleInvocationEvents
Gets or sets the bubble invocation events.
Declaration
public ObservableCollection<RoutedEvent> BubbleInvocationEvents { get; set; }
Remarks
With this property, you can add all desired routed events to which this bubble control instance should respond and activate itself.
For example, you can add the MouseRightButtonUpEvent to be used for invoking the ExoticBubble control's features.
Remember, the ExoticBubble control already provides (by default) invoking its services for the MouseLeftButtonDownEvent RoutedEvent.
By setting additional routed-events (like MouseRightButtonUpEvent), we get the bubble control invoked in both these situations.
BubbleOuterLayerBrush
Gets or sets the bubble outer layer brush.
Declaration
public Brush BubbleOuterLayerBrush { get; set; }
ShouldRunOnTop
Gets or sets a value indicating whether the bubble should run on top of the clicked content area (over the content area), or should it show the clicked content and show the bubble aspect underneath the clicked content.
Declaration
public bool ShouldRunOnTop { get; set; }
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
Declaration
public override void OnApplyTemplate()