viewWrapperImpl.OnTap = new ViewWrapperImpl.OnTapDelegate(OnTap);
viewWrapperImpl.OnLongPress = new ViewWrapperImpl.OnLongPressDelegate(OnLongPress);
+ // By default, we do not want the position to use the anchor point
+ this.PositionUsesAnchorPoint = false;
+
// Make sure CustomView is initialized.
OnInitialize();
* @endcode
* @param[in] type The gesture type(s) to enable.
*/
- internal void EnableGestureDetection(Gesture.GestureType type)
+ public void EnableGestureDetection(Gesture.GestureType type)
{
viewWrapperImpl.EnableGestureDetection(type);
}
/// <summary>
/// Called by the KeyboardFocusManager.
/// </summary>
- public void KeyboardEnter()
+ internal void KeyboardEnter()
{
viewWrapperImpl.KeyboardEnter();
}
/// </summary>
/// <param name="key">The key event</param>
/// <returns>True if the event was consumed</returns>
- public bool EmitKeyEventSignal(Key key)
+ internal bool EmitKeyEventSignal(Key key)
{
return viewWrapperImpl.EmitKeyEventSignal(key);
}
* @note Tap detection should be enabled via EnableGestureDetection().
* @see EnableGestureDetection
*/
- internal virtual void OnTap(TapGesture tap)
+ public virtual void OnTap(TapGesture tap)
{
}