-
Notifications
You must be signed in to change notification settings - Fork 117
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
Conversation
TODO: Highlight gripper on hover and get Niels once over/opinion
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.
Uh oh!
There was an error while loading. Please reload this page.
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?
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:
Other information
@niels9001 would love any input on the design here and padding and such.
TODO: