Skip to content

FreakyJumpList

Gulam Ali H edited this page Sep 10, 2023 · 4 revisions

Overview

The FreakyJumpList is a versatile custom control designed to create interactive jump lists with selectable characters. It enhances user experience by providing a dynamic way to navigate through a list of characters efficiently.

Properties

AlphabetProvider

  • Type: IAlphabetProvider
  • Default Value: null
  • Description: An instance of the IAlphabetProvider interface is responsible for providing the alphabet characters for the jump list.

HasHapticFeedback

  • Type: bool
  • Default Value: false
  • Description: Determines whether haptic feedback is enabled when users interact with the jump list. When set to true, haptic feedback is triggered.

CharacterSize

  • Type: float
  • Default Value: 40.0f
  • Description: Sets the height of characters in pixels within the jump list. Adjust this property to control the character size.

SelectedCharacter

  • Type: string
  • Default Value: string.Empty
  • Description: Represents the currently selected character in the jump list. You can use this property to retrieve or set the selected character.

SelectedCharacterColor

  • Type: Color
  • Default Value: Colors.Black
  • Description: Defines the color of the selected character in the jump list. Customize this property to change the selection color.

CharacterColor

  • Type: Color
  • Default Value: Colors.Black
  • Description: Specifies the color of characters in the jump list. Modify this property to control the character color.

Events

SelectedCharacterChanged

  • Description: Occurs when the user selects a new character in the jump list. Subscribe to this event to handle character selection changes.

Example Usage

// Create a FreakyJumpList instance
var jumpList = new FreakyJumpList();

// Set the alphabet provider to provide characters
jumpList.AlphabetProvider = new MyAlphabetProvider();

// Enable haptic feedback
jumpList.HasHapticFeedback = true;

// Customize the character size and colors
jumpList.CharacterSize = 36.0f;
jumpList.CharacterColor = Color.Blue;

// Subscribe to the SelectedCharacterChanged event
jumpList.SelectedCharacterChanged += (sender, args) =>
{
    string selectedCharacter = args.SelectedCharacter;
    // Handle selected character change here
};

Make sure you check out samples for more details!