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>
2026-01-01 17:02:39 -05:00
|
|
|
// Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Maui.Platform.Linux;
|
|
|
|
|
|
|
|
|
|
public class LinuxApplicationOptions
|
|
|
|
|
{
|
|
|
|
|
public string? Title { get; set; } = "MAUI Application";
|
|
|
|
|
|
|
|
|
|
public int Width { get; set; } = 800;
|
|
|
|
|
|
|
|
|
|
public int Height { get; set; } = 600;
|
|
|
|
|
|
|
|
|
|
public bool UseHardwareAcceleration { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
public DisplayServerType DisplayServer { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool ForceDemo { get; set; }
|
|
|
|
|
|
|
|
|
|
public string? IconPath { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool UseGtk { get; set; }
|
2026-03-06 23:40:51 -05:00
|
|
|
|
|
|
|
|
// Gesture configuration
|
|
|
|
|
public double SwipeMinDistance { get; set; } = 50.0;
|
|
|
|
|
public double SwipeMaxTime { get; set; } = 500.0;
|
|
|
|
|
public double SwipeDirectionThreshold { get; set; } = 0.5;
|
|
|
|
|
public double PanMinDistance { get; set; } = 10.0;
|
|
|
|
|
public double PinchScrollScale { get; set; } = 0.1;
|
|
|
|
|
|
|
|
|
|
// Rendering configuration
|
|
|
|
|
public int MaxDirtyRegions { get; set; } = 32;
|
|
|
|
|
public float RegionMergeThreshold { get; set; } = 0.3f;
|
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>
2026-01-01 17:02:39 -05:00
|
|
|
}
|