Skip to content

Conversation

@Co0ob1iee
Copy link
Owner

…bility

Problem

WPF StackPanel does not support the Spacing property (this is a WinUI/UWP feature). Build errors occurred in 9 XAML files:

  • Views/Dialogs/SaveScreenshotDialog.xaml
  • Views/Windows/ScreenshotEditorWindow.xaml
  • Views/Windows/ScreenshotHistoryWindow.xaml
  • Views/Windows/SettingsWindow.xaml
  • Views/Windows/TextInputWindow.xaml
  • Views/Windows/UpdateNotificationWindow.xaml
  • Views/Windows/UpdateProgressWindow.xaml
  • Views/Windows/UpdateWindow.xaml
  • Views/Windows/VideoCaptureWindow.xaml

Additional error: UseSnapLayout property in SettingsWindow.xaml TitleBar

Solution

  1. Created StackPanelHelper.cs with Spacing attached property

    • Provides WPF-compatible spacing functionality
    • Automatically applies margins to child elements
    • Supports both horizontal and vertical orientations
  2. Updated all 9 XAML files:

    • Added xmlns:helpers namespace
    • Replaced Spacing="X" with helpers:StackPanelHelper.Spacing="X"
    • Removed unsupported UseSnapLayout property

Files Changed

  • New: Helpers/StackPanelHelper.cs (76 lines)
  • Modified: 9 XAML files with Spacing property fixes

Testing

  • Verified no remaining StackPanel.Spacing references
  • All XAML errors resolved
  • Ready for build

…bility

## Problem
WPF StackPanel does not support the Spacing property (this is a WinUI/UWP feature).
Build errors occurred in 9 XAML files:
- Views/Dialogs/SaveScreenshotDialog.xaml
- Views/Windows/ScreenshotEditorWindow.xaml
- Views/Windows/ScreenshotHistoryWindow.xaml
- Views/Windows/SettingsWindow.xaml
- Views/Windows/TextInputWindow.xaml
- Views/Windows/UpdateNotificationWindow.xaml
- Views/Windows/UpdateProgressWindow.xaml
- Views/Windows/UpdateWindow.xaml
- Views/Windows/VideoCaptureWindow.xaml

Additional error: UseSnapLayout property in SettingsWindow.xaml TitleBar

## Solution
1. Created StackPanelHelper.cs with Spacing attached property
   - Provides WPF-compatible spacing functionality
   - Automatically applies margins to child elements
   - Supports both horizontal and vertical orientations

2. Updated all 9 XAML files:
   - Added xmlns:helpers namespace
   - Replaced Spacing="X" with helpers:StackPanelHelper.Spacing="X"
   - Removed unsupported UseSnapLayout property

## Files Changed
- New: Helpers/StackPanelHelper.cs (76 lines)
- Modified: 9 XAML files with Spacing property fixes

## Testing
- Verified no remaining StackPanel.Spacing references
- All XAML errors resolved
- Ready for build
@Co0ob1iee Co0ob1iee merged commit c7d4801 into main Nov 16, 2025
3 of 6 checks passed
@Co0ob1iee Co0ob1iee deleted the claude/cleanup-logs-project-01CgeLKK4Nw2cK3rDJdLF88m branch November 16, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants