Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Draggable Settings Control Example #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
michael-hawker wants to merge 3 commits into main
base: main
Choose a base branch
Loading
from llama/settings-samples-update

Conversation

Copy link
Member

@michael-hawker michael-hawker commented Oct 16, 2025
edited
Loading

Fixes

Adds an example of how to drag/drop settings controls within a list (using drag handle pattern).

Plus Improves Settings Controls examples (minor tweaks)

PR Type

What kind of change does this PR introduce?

  • Sample app changes: Sample

What is the current behavior?

Was hard to understand how this interaction behaved with conflicts of mouse interaction with listview drag and WinUI expander/Button.

What is the new behavior?

Nice sample that explains how to make magic happen. 🦙

DraggableSettingsExpander.mp4

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

@niels9001 would love any input on the design here and padding and such.

TODO:

  • Need to try adding a behavior to highlight the drag handle when the mouse is over it.

@michael-hawker michael-hawker added sample app 🖼️ components::controls::settingscontrols Create a Windows 11 style settings experiences with these controls. labels Oct 16, 2025
Copy link
Member Author

michael-hawker commented Oct 16, 2025
edited
Loading

Hmm, hitting the WebView2Loader issue trying to add the Behaviors dependency on WinUI... not sure why it works for our behaviors component, but not when I add it as a sample dependency to the Settings Samples shared project. @Sergio0694 I know you were planning to update Behaviors to 1.8 which may resolve this as well, eh?

Error Details
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-arm64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-x86\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-arm64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-x86\native\WebView2Loader.dll" because it was not found.
1>Done building project "CommunityToolkit.WinUI.Triggers.csproj".
1>Done building project "CommunityToolkit.WinUI.Controls.SettingsControls.csproj".
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-arm64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactions\runtimes\win-x86\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-x86\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-arm64\native\WebView2Loader.dll" because it was not found.
1>C:\Program Files\Microsoft Visual Studio2022円\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5394,5): error MSB3030: Could not copy the file "I:\packages\nuget\microsoft.xaml.behaviors.winui.managed3円.0.0\lib\net8.0-windows10.0.17763.0\Microsoft.Xaml.Interactivity\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.
1>Done building project "SettingsControls.Samples.csproj" -- FAILED.

Edit: I'm hitting this with our base behaviors package locally too, so it's not unique to this scenario for these samples. But it's working for Arlo. He's on an older VS version so he's updating to see if he can repro... weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@niels9001 niels9001 Awaiting requested review from niels9001

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

components::controls::settingscontrols Create a Windows 11 style settings experiences with these controls. sample app 🖼️

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /