Skip to content

Commit

Permalink
chore: add vscode folder and remove visualstate setters
Browse files Browse the repository at this point in the history
  • Loading branch information
rajamatt committed Jun 17, 2024
1 parent f2e39fb commit 31d3e5e
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 15 deletions.
56 changes: 56 additions & 0 deletions reference/ToDo/src/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": "Uno Platform Mobile",
"type": "Uno",
"request": "launch",
// any Uno* task will do, this is simply to satisfy vscode requirement when a launch.json is present
"preLaunchTask": "Uno: android | Debug | android-x64"
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Debug (Chrome, WebAssembly)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/ToDo",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"timeout": 30000,
"preLaunchTask": "build-wasm",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"args": ["--no-build","-f","net8.0-browserwasm","--launch-profile", "ToDo (WebAssembly)"],
"outputCapture": "std",
"timeout": 30000,
"cwd": "${workspaceFolder}/ToDo"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Uno Platform Desktop (Debug)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-desktop",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/ToDo/bin/Debug/net8.0-desktop/ToDo.dll",
"args": [],
"launchSettingsProfile": "ToDo (Desktop)",
"env": {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
},
"cwd": "${workspaceFolder}/ToDo",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
]
}
7 changes: 7 additions & 0 deletions reference/ToDo/src/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"*.xaml": "$(capture).xaml.cs"
}
}
57 changes: 57 additions & 0 deletions reference/ToDo/src/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build-wasm",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/ToDo/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net8.0-browserwasm",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-wasm",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/ToDo/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net8.0-browserwasm",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-desktop",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/ToDo/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net8.0-desktop",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-desktop",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/ToDo/ToDo.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net8.0-desktop",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
23 changes: 8 additions & 15 deletions reference/ToDo/src/ToDo/Views/TaskListPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,29 +146,22 @@
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Wide">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource WideMinWindowWidth}" />
</VisualState.StateTriggers>
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="{StaticResource WideMinWindowWidth}" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="TaskListColumn.Width" Value="*" />
<Setter Target="TaskListColumn.MinWidth" Value="300" />
<Setter Target="TaskColumn.Width" Value="2*" />
<Setter Target="TaskDetailsGrid.Visibility" Value="Visible" />
<Setter Target="TaskDetails.(uen:Region.Attached)" Value="true" />
</VisualState.Setters>
</VisualState>
</VisualState>
<VisualState x:Name="Narrow">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers>
<VisualState.Setters>
<Setter Target="TaskListColumn.Width" Value="*" />
<Setter Target="TaskListColumn.MinWidth" Value="300" />
<Setter Target="TaskColumn.Width" Value="2*" />
<Setter Target="TaskDetailsGrid.Visibility" Value="Collapsed" />
<Setter Target="TaskDetails.(uen:Region.Attached)" Value="false" />
</VisualState.Setters>
</VisualState>
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="0" />
</VisualState.StateTriggers>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>

Expand Down

0 comments on commit 31d3e5e

Please sign in to comment.