Verify Views files against decompiled, extract embedded types

Fixed files:
- SkiaImageButton.cs: Added SVG support with multi-path search
- SkiaNavigationPage.cs: Added LinuxApplication.IsGtkMode check
- SkiaRefreshView.cs: Added ICommand support (Command, CommandParameter)
- SkiaTemplatedView.cs: Added missing using statements

Extracted embedded types to separate files (matching decompiled pattern):
- From SkiaMenuBar.cs: MenuBarItem, MenuItem, SkiaMenuFlyout, MenuItemClickedEventArgs
- From SkiaNavigationPage.cs: NavigationEventArgs
- From SkiaTabbedPage.cs: TabItem
- From SkiaVisualStateManager.cs: SkiaVisualStateGroupList, SkiaVisualStateGroup, SkiaVisualState, SkiaVisualStateSetter
- From SkiaSwipeView.cs: SwipeItem, SwipeStartedEventArgs, SwipeEndedEventArgs
- From SkiaFlyoutPage.cs: FlyoutLayoutBehavior (already separate)
- From SkiaIndicatorView.cs: IndicatorShape (already separate)
- From SkiaBorder.cs: SkiaFrame
- From SkiaCarouselView.cs: PositionChangedEventArgs
- From SkiaCollectionView.cs: SkiaSelectionMode, ItemsLayoutOrientation
- From SkiaContentPresenter.cs: LayoutAlignment

Verified matching decompiled:
- SkiaContextMenu.cs, SkiaFlexLayout.cs, SkiaGraphicsView.cs

Build: 0 errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-01 17:02:39 -05:00
parent 6007b84e7a
commit f6eadaad57
171 changed files with 4208 additions and 3913 deletions

View File

@@ -402,115 +402,3 @@ public class DragDropService : IDisposable
#endregion
}
/// <summary>
/// Contains data for a drag operation.
/// </summary>
public class DragData
{
/// <summary>
/// Gets or sets the source window.
/// </summary>
public nint SourceWindow { get; set; }
/// <summary>
/// Gets or sets the supported MIME types.
/// </summary>
public nint[] SupportedTypes { get; set; } = Array.Empty<nint>();
/// <summary>
/// Gets or sets the text data.
/// </summary>
public string? Text { get; set; }
/// <summary>
/// Gets or sets the file paths.
/// </summary>
public string[]? FilePaths { get; set; }
/// <summary>
/// Gets or sets custom data.
/// </summary>
public object? Data { get; set; }
}
/// <summary>
/// Event args for drag events.
/// </summary>
public class DragEventArgs : EventArgs
{
/// <summary>
/// Gets the drag data.
/// </summary>
public DragData Data { get; }
/// <summary>
/// Gets the X coordinate.
/// </summary>
public int X { get; }
/// <summary>
/// Gets the Y coordinate.
/// </summary>
public int Y { get; }
/// <summary>
/// Gets or sets whether the drop is accepted.
/// </summary>
public bool Accepted { get; set; }
/// <summary>
/// Gets or sets the allowed action.
/// </summary>
public DragAction AllowedAction { get; set; }
/// <summary>
/// Gets or sets the accepted action.
/// </summary>
public DragAction AcceptedAction { get; set; } = DragAction.Copy;
public DragEventArgs(DragData data, int x, int y)
{
Data = data;
X = x;
Y = y;
}
}
/// <summary>
/// Event args for drop events.
/// </summary>
public class DropEventArgs : EventArgs
{
/// <summary>
/// Gets the drag data.
/// </summary>
public DragData Data { get; }
/// <summary>
/// Gets the dropped data as string.
/// </summary>
public string? DroppedData { get; }
/// <summary>
/// Gets or sets whether the drop was handled.
/// </summary>
public bool Handled { get; set; }
public DropEventArgs(DragData data, string? droppedData)
{
Data = data;
DroppedData = droppedData;
}
}
/// <summary>
/// Drag action types.
/// </summary>
public enum DragAction
{
None,
Copy,
Move,
Link
}