RC1: Full XAML support with BindableProperty, VSM, and data binding
Phase 1 - BindableProperty Foundation: - SkiaLayoutView: Convert Spacing, Padding, ClipToBounds to BindableProperty - SkiaStackLayout: Convert Orientation to BindableProperty - SkiaGrid: Convert RowSpacing, ColumnSpacing to BindableProperty - SkiaCollectionView: Convert all 12 properties to BindableProperty - SkiaShell: Convert all 12 properties to BindableProperty Phase 2 - Visual State Manager: - Add VSM integration to SkiaImageButton pointer handlers - Support Normal, PointerOver, Pressed, Disabled states Phase 3-4 - XAML/Data Binding: - Type converters for SKColor, SKRect, SKSize, SKPoint - BindingContext propagation through visual tree - Full handler registration for all MAUI controls Documentation: - README: Add styling/binding examples, update roadmap - Add RC1-ROADMAP.md with implementation details Version: 1.0.0-rc.1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -315,6 +315,7 @@ public class SkiaImageButton : SkiaView
|
||||
{
|
||||
if (!IsEnabled) return;
|
||||
IsHovered = true;
|
||||
SkiaVisualStateManager.GoToState(this, SkiaVisualStateManager.CommonStates.PointerOver);
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
@@ -325,6 +326,9 @@ public class SkiaImageButton : SkiaView
|
||||
{
|
||||
IsPressed = false;
|
||||
}
|
||||
SkiaVisualStateManager.GoToState(this, IsEnabled
|
||||
? SkiaVisualStateManager.CommonStates.Normal
|
||||
: SkiaVisualStateManager.CommonStates.Disabled);
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
@@ -333,6 +337,7 @@ public class SkiaImageButton : SkiaView
|
||||
if (!IsEnabled) return;
|
||||
|
||||
IsPressed = true;
|
||||
SkiaVisualStateManager.GoToState(this, SkiaVisualStateManager.CommonStates.Pressed);
|
||||
Invalidate();
|
||||
Pressed?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
@@ -343,6 +348,9 @@ public class SkiaImageButton : SkiaView
|
||||
|
||||
var wasPressed = IsPressed;
|
||||
IsPressed = false;
|
||||
SkiaVisualStateManager.GoToState(this, IsHovered
|
||||
? SkiaVisualStateManager.CommonStates.PointerOver
|
||||
: SkiaVisualStateManager.CommonStates.Normal);
|
||||
Invalidate();
|
||||
|
||||
Released?.Invoke(this, EventArgs.Empty);
|
||||
|
||||
Reference in New Issue
Block a user