Sticky Item Controller
A stable class that manages the state and properties of various sticky items (e.g., Post-it notes, images, text boxes). It allows updating properties such as size, background color, text style, and more.
Parameters
The default properties for a Post-it note.
The default properties for a painter image.
The default properties for a vector image.
The default properties for a bitmap image.
The default properties for a text box.
Properties
Public read-only access to BitmapImage properties.
A flow that tracks the invalidation state of the sticky item list. Can be used to trigger UI re-renders when the list needs to be updated.
Public read-only access to PainterImage properties.
Public read-only access to Post-It properties.
A public read-only list of sticky items. Provides access to the list of sticky items, but prevents modification from outside the class.
Public read-only access to TextBox properties.
Public read-only access to VectorImage properties.
Functions
Adds a sticky item to the list and updates the map with its index.
Clears the focus from all sticky items by setting isFocus
to false for each.
Checks if any StickyTextItem is currently focused.
Removes a sticky item from the list and updates the map to reflect the removal.
Updates the alignment of the BitmapImage.
Updates the alpha of the BitmapImage.
Updates the content scale of the BitmapImage.
Updates the height of the BitmapImage.
Updates the ImageBitmap of the BitmapImage.
Updates the size (width and height) of the BitmapImage.
Updates the width of the BitmapImage.
Updates the focus state of a sticky item.
Updates the invalidate tick, signaling that the sticky item list should be re-rendered.
Updates the alignment of the PainterImage.
Updates the alpha of the PainterImage.
Updates the color filter of the PainterImage.
Updates the content scale of the PainterImage.
Updates the height of the PainterImage.
Updates the painter of the PainterImage.
Updates the size (width and height) of the PainterImage.
Updates the width of the PainterImage.
Updates the corner radius of the Post-It.
Updates the elevation (shadow) of the Post-It.
Updates the background color of the Post-It.
Updates the font size of the Post-It text.
Updates the height of the Post-It.
Updates the size (width and height) of the Post-It.
Updates the text color of the Post-It.
Updates the text style of the Post-It.
Updates the width of the Post-It.
Updates the padding of the Post-It.
Updates the background color of the Post-It selection.
Updates the color filter of the BitmapImage.
Updates the text content of a sticky item, specifically for StickyTextItem.
Updates the background color of the TextBox.
Updates the border box padding of the TextBox.
Updates the border box paint of the TextBox.
Updates the font size of the TextBox text.
Updates the padding of the TextBox.
Updates the selection background color of the TextBox.
Updates the text color of the TextBox.
Updates the text style of the TextBox.
Updates the translation (position) of a sticky item.
Updates the alignment of the VectorImage.
Updates the alpha of the VectorImage.
Updates the color filter of the VectorImage.
Updates the content scale of the VectorImage.
Updates the height of the VectorImage.
Updates the image vector of the VectorImage.
Updates the size (width and height) of the VectorImage.
Updates the width of the VectorImage.
Updates the zoom state of a sticky item (scale factor and scale offset).