├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ └── build.yaml ├── .gitignore ├── Directory.Build.props ├── LICENSE ├── README.md ├── art ├── ProXamlToolbox.pdn ├── ProXamlToolbox.png ├── WPFToolBox.png ├── WPFToolBox96.png └── screenshot-darkandlight.png ├── nuget.config └── src ├── .editorconfig ├── ProXamlToolbox.Tests ├── InsertLogicTests.cs ├── ProXamlToolbox.Tests.csproj └── Properties │ └── AssemblyInfo.cs ├── ProXamlToolbox.lutconfig ├── ProXamlToolbox.sln └── ProXamlToolbox ├── AnalyticsConfig.cs ├── InsertLogic.cs ├── Key.snk ├── LICENSE.txt ├── OutputPane.cs ├── ProToolboxItem.cs ├── ProXamlToolbox.csproj ├── ProXamlToolboxWindow.cs ├── ProXamlToolboxWindowCommand.cs ├── ProXamlToolboxWindowControl.xaml ├── ProXamlToolboxWindowControl.xaml.cs ├── ProXamlToolboxWindowPackage.cs ├── ProXamlToolboxWindowPackage.vsct ├── ProXamlToolboxWindowPackage1.cs ├── Properties └── AssemblyInfo.cs ├── Resources ├── ProXamlToolbox.png ├── ProXamlToolboxWindowCommand.png └── ProXamlToolboxWindowPackage.ico ├── TargetPlatform.cs ├── ToolboxSettings.cs ├── ToolboxViewModel.cs ├── VSPackage.resx ├── filestosign.txt ├── signvsix.targets ├── source.extension.cs └── source.extension.vsixmanifest /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: mrlacey # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- 1 | # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json 2 | name: "Build" 3 | 4 | on: 5 | push: 6 | branches: [main] 7 | paths-ignore: 8 | - '*.md' 9 | pull_request: 10 | branches: [main] 11 | paths-ignore: 12 | - '*.md' 13 | 14 | jobs: 15 | build: 16 | outputs: 17 | version: ${{ steps.vsix_version.outputs.version-number }} 18 | name: Build 19 | runs-on: windows-2022 20 | 21 | permissions: 22 | checks: write 23 | 24 | # needed unless run with comment_mode: off 25 | pull-requests: write 26 | 27 | env: 28 | Configuration: Debug 29 | DeployExtension: False 30 | VsixManifestPath: src\ProXamlToolbox\source.extension.vsixmanifest 31 | VsixManifestSourcePath: src\ProXamlToolbox\source.extension.cs 32 | 33 | steps: 34 | - uses: actions/checkout@v4 35 | 36 | - name: Setup .NET build dependencies 37 | uses: timheuer/bootstrap-dotnet@v2 38 | with: 39 | nuget: 'false' 40 | sdk: 'false' 41 | msbuild: 'true' 42 | 43 | - name: Increment VSIX version 44 | id: vsix_version 45 | uses: timheuer/vsix-version-stamp@v2 46 | with: 47 | manifest-file: ${{ env.VsixManifestPath }} 48 | vsix-token-source-file: ${{ env.VsixManifestSourcePath }} 49 | 50 | - name: Build 51 | run: msbuild /v:m -restore /p:OutDir=\_built ./src/ProXamlToolbox.sln 52 | 53 | - name: Upload artifact 54 | uses: actions/upload-artifact@v4 55 | with: 56 | name: ${{ github.event.repository.name }}.vsix 57 | path: /_built/**/*.vsix 58 | 59 | - name: Run Tests 60 | # See https://github.com/microsoft/vstest-action/issues/31 61 | # uses: microsoft/vstest-action@v1.0.0 62 | uses: josepho0918/vstest-action@main 63 | with: 64 | searchFolder: /_built/ 65 | testAssembly: /**/*Tests.dll 66 | 67 | - name: Publish Test Results 68 | uses: EnricoMi/publish-unit-test-result-action/windows@v2 69 | id: test-results 70 | with: 71 | files: testresults\**\*.trx 72 | 73 | - name: Set badge color 74 | shell: bash 75 | run: | 76 | case ${{ fromJSON( steps.test-results.outputs.json ).conclusion }} in 77 | success) 78 | echo "BADGE_COLOR=31c653" >> $GITHUB_ENV 79 | ;; 80 | failure) 81 | echo "BADGE_COLOR=800000" >> $GITHUB_ENV 82 | ;; 83 | neutral) 84 | echo "BADGE_COLOR=696969" >> $GITHUB_ENV 85 | ;; 86 | esac 87 | 88 | - name: Create badge 89 | uses: emibcn/badge-action@808173dd03e2f30c980d03ee49e181626088eee8 90 | with: 91 | label: Tests 92 | status: '${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.tests }} tests: ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}' 93 | color: ${{ env.BADGE_COLOR }} 94 | path: ProXamlToolbox.badge.svg 95 | 96 | - name: Upload badge to Gist 97 | # Upload only for main branch 98 | if: > 99 | github.event_name == 'workflow_run' && github.event.workflow_run.head_branch == 'main' || 100 | github.event_name != 'workflow_run' && github.ref == 'refs/heads/main' 101 | uses: jpontdia/append-gist-action@master 102 | with: 103 | token: ${{ secrets.GIST_TOKEN }} 104 | gistURL: https://gist.githubusercontent.com/mrlacey/c586ff0f495b4a8dd76ab0dbdf9c89e0 105 | file: ProXamlToolbox.badge.svg 106 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Ll]og/ 33 | [Ll]ogs/ 34 | 35 | # Visual Studio 2015/2017 cache/options directory 36 | .vs/ 37 | # Uncomment if you have tasks that create the project's static files in wwwroot 38 | #wwwroot/ 39 | 40 | # Visual Studio 2017 auto generated files 41 | Generated\ Files/ 42 | 43 | # MSTest test Results 44 | [Tt]est[Rr]esult*/ 45 | [Bb]uild[Ll]og.* 46 | 47 | # NUnit 48 | *.VisualState.xml 49 | TestResult.xml 50 | nunit-*.xml 51 | 52 | # Build Results of an ATL Project 53 | [Dd]ebugPS/ 54 | [Rr]eleasePS/ 55 | dlldata.c 56 | 57 | # Benchmark Results 58 | BenchmarkDotNet.Artifacts/ 59 | 60 | # .NET Core 61 | project.lock.json 62 | project.fragment.lock.json 63 | artifacts/ 64 | 65 | # ASP.NET Scaffolding 66 | ScaffoldingReadMe.txt 67 | 68 | # StyleCop 69 | StyleCopReport.xml 70 | 71 | # Files built by Visual Studio 72 | *_i.c 73 | *_p.c 74 | *_h.h 75 | *.ilk 76 | *.meta 77 | *.obj 78 | *.iobj 79 | *.pch 80 | *.pdb 81 | *.ipdb 82 | *.pgc 83 | *.pgd 84 | *.rsp 85 | *.sbr 86 | *.tlb 87 | *.tli 88 | *.tlh 89 | *.tmp 90 | *.tmp_proj 91 | *_wpftmp.csproj 92 | *.log 93 | *.tlog 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio 6 auto-generated project file (contains which files were open etc.) 298 | *.vbp 299 | 300 | # Visual Studio 6 workspace and project file (working project files containing files to include in project) 301 | *.dsw 302 | *.dsp 303 | 304 | # Visual Studio 6 technical files 305 | *.ncb 306 | *.aps 307 | 308 | # Visual Studio LightSwitch build output 309 | **/*.HTMLClient/GeneratedArtifacts 310 | **/*.DesktopClient/GeneratedArtifacts 311 | **/*.DesktopClient/ModelManifest.xml 312 | **/*.Server/GeneratedArtifacts 313 | **/*.Server/ModelManifest.xml 314 | _Pvt_Extensions 315 | 316 | # Paket dependency manager 317 | .paket/paket.exe 318 | paket-files/ 319 | 320 | # FAKE - F# Make 321 | .fake/ 322 | 323 | # CodeRush personal settings 324 | .cr/personal 325 | 326 | # Python Tools for Visual Studio (PTVS) 327 | __pycache__/ 328 | *.pyc 329 | 330 | # Cake - Uncomment if you are using it 331 | # tools/** 332 | # !tools/packages.config 333 | 334 | # Tabs Studio 335 | *.tss 336 | 337 | # Telerik's JustMock configuration file 338 | *.jmconfig 339 | 340 | # BizTalk build output 341 | *.btp.cs 342 | *.btm.cs 343 | *.odx.cs 344 | *.xsd.cs 345 | 346 | # OpenCover UI analysis results 347 | OpenCover/ 348 | 349 | # Azure Stream Analytics local run output 350 | ASALocalRun/ 351 | 352 | # MSBuild Binary and Structured Log 353 | *.binlog 354 | 355 | # NVidia Nsight GPU debugger configuration file 356 | *.nvuser 357 | 358 | # MFractors (Xamarin productivity tool) working folder 359 | .mfractor/ 360 | 361 | # Local History for Visual Studio 362 | .localhistory/ 363 | 364 | # Visual Studio History (VSHistory) files 365 | .vshistory/ 366 | 367 | # BeatPulse healthcheck temp database 368 | healthchecksdb 369 | 370 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 371 | MigrationBackup/ 372 | 373 | # Ionide (cross platform F# VS Code tools) working folder 374 | .ionide/ 375 | 376 | # Fody - auto-generated XML schema 377 | FodyWeavers.xsd 378 | 379 | # VS Code files for those working on multiple tools 380 | .vscode/* 381 | !.vscode/settings.json 382 | !.vscode/tasks.json 383 | !.vscode/launch.json 384 | !.vscode/extensions.json 385 | *.code-workspace 386 | 387 | # Local History for Visual Studio Code 388 | .history/ 389 | 390 | # Windows Installer files from build outputs 391 | *.cab 392 | *.msi 393 | *.msix 394 | *.msm 395 | *.msp 396 | 397 | # JetBrains Rider 398 | *.sln.iml 399 | -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 12.0 5 | 6 | 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Matt Lacey 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pro XAML Toolbox 2 | 3 | [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) 4 | ![Works with Visual Studio 2022](https://img.shields.io/static/v1.svg?label=VS&message=2022&color=5F2E96) 5 | [![Build](https://github.com/mrlacey/ProXamlToolbox/actions/workflows/build.yaml/badge.svg)](https://github.com/mrlacey/ProXamlToolbox/actions/workflows/build.yaml) 6 | ![Tests](https://gist.githubusercontent.com/mrlacey/c586ff0f495b4a8dd76ab0dbdf9c89e0/raw/ProXamlToolbox.badge.svg) 7 | 8 | It's like the standard Visual Studio Toolbox but **much** better. 9 | 10 | ![Screenshot showing the Pro XAML Toolbox in light and dark themes](./art/screenshot-darkandlight.png) 11 | 12 | **Currently supporting .NET MAUI**. _[WPF](https://github.com/mrlacey/ProXamlToolbox/issues/2), & [WinUI](https://github.com/mrlacey/ProXamlToolbox/issues/1) support coming soon - maybe._ 13 | 14 | :alembic: A [Rapid XAML Toolkit](https://github.com/mrlacey/rapid-xaml-toolkit) experiment. If/when this ships beyond an experiment/preview, it will be moved to that project and repository. 15 | 16 | --- 17 | 18 | ## What? 19 | 20 | A Visual Studio extension that adds a new tool window. 21 | 22 | It's a cross between Visual Studio's Toolbox and the ability to use smart snippets. 23 | 24 | There are 2 ways of using it: 25 | 26 | You can **drag items onto the editor** and get a much richer snippet. 27 | 28 | **Or**, you can **double-click on an item**, and it will be added in the editor where the cursor is positioned. 29 | **But** if you add an element that is (or can be) a container for other elements, the cursor is moved inside the added element. 30 | This means that if you want two `Button`s inside a `Grid` you can double-click the `Grid` item and then double-click the `Button` item twice and you'll get all this: 31 | 32 | ```xml 33 | 37 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/ProXamlToolbox/ProXamlToolboxWindowPackage1.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This file was generated by VSIX Synchronizer 4 | // 5 | // ------------------------------------------------------------------------------ 6 | namespace ProXamlToolbox 7 | { 8 | using System; 9 | 10 | /// 11 | /// Helper class that exposes all GUIDs used across VS Package. 12 | /// 13 | internal sealed partial class PackageGuids 14 | { 15 | public const string guidProXamlToolboxWindowPackageString = "e3eff216-5897-4190-8950-7cf21985c50e"; 16 | public static Guid guidProXamlToolboxWindowPackage = new Guid(guidProXamlToolboxWindowPackageString); 17 | 18 | public const string guidImagesString = "d7477da6-ccc3-4636-9e71-72434d1d1e3d"; 19 | public static Guid guidImages = new Guid(guidImagesString); 20 | } 21 | /// 22 | /// Helper class that encapsulates all CommandIDs uses across VS Package. 23 | /// 24 | internal sealed partial class PackageIds 25 | { 26 | public const int ProXamlToolboxWindowCommandId = 0x0100; 27 | public const int bmpPic1 = 0x0001; 28 | } 29 | } -------------------------------------------------------------------------------- /src/ProXamlToolbox/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.InteropServices; 3 | using ProXamlToolbox; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle(Vsix.Name)] 9 | [assembly: AssemblyDescription(Vsix.Description)] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany(Vsix.Author)] 12 | [assembly: AssemblyProduct(Vsix.Name)] 13 | [assembly: AssemblyCopyright("")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | [assembly: AssemblyVersion(Vsix.Version)] 23 | [assembly: AssemblyFileVersion(Vsix.Version)] 24 | -------------------------------------------------------------------------------- /src/ProXamlToolbox/Resources/ProXamlToolbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrlacey/ProXamlToolbox/d9b8c519bcb60c035f7848e944e7fdb04843ec79/src/ProXamlToolbox/Resources/ProXamlToolbox.png -------------------------------------------------------------------------------- /src/ProXamlToolbox/Resources/ProXamlToolboxWindowCommand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrlacey/ProXamlToolbox/d9b8c519bcb60c035f7848e944e7fdb04843ec79/src/ProXamlToolbox/Resources/ProXamlToolboxWindowCommand.png -------------------------------------------------------------------------------- /src/ProXamlToolbox/Resources/ProXamlToolboxWindowPackage.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrlacey/ProXamlToolbox/d9b8c519bcb60c035f7848e944e7fdb04843ec79/src/ProXamlToolbox/Resources/ProXamlToolboxWindowPackage.ico -------------------------------------------------------------------------------- /src/ProXamlToolbox/TargetPlatform.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ProXamlToolbox 4 | { 5 | [Flags] 6 | public enum TargetPlatform 7 | { 8 | Maui = 1, 9 | WinUI = 2, 10 | Wpf = 4, 11 | MauiAndWinui = Maui | WinUI, 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/ProXamlToolbox/ToolboxSettings.cs: -------------------------------------------------------------------------------- 1 | namespace ProXamlToolbox 2 | { 3 | public class ToolboxSettings 4 | { 5 | public bool IncludeA11y { get; set; } 6 | 7 | public bool IncludeXName { get; set; } 8 | 9 | public bool PreferCommands { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/ProXamlToolbox/ToolboxViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.ObjectModel; 2 | using Microsoft.VisualStudio.Imaging; 3 | 4 | namespace ProXamlToolbox 5 | { 6 | internal class ToolboxViewModel 7 | { 8 | public ToolboxViewModel() 9 | { 10 | LayoutItems = GetDefaultLayoutItems(); 11 | ControlItems = GetDefaultControlItems(); 12 | } 13 | 14 | // TODO: Support proper grouped item lists 15 | public ObservableCollection LayoutItems { get; set; } 16 | 17 | public ObservableCollection ControlItems { get; set; } 18 | 19 | // TODO: add validation tests of all default item content 20 | private ObservableCollection GetDefaultLayoutItems() 21 | { 22 | return new ObservableCollection { 23 | new ProToolboxItem 24 | { 25 | ImageMoniker = KnownMonikers.LayoutPanel, 26 | DisplayedText = "AbsoluteLayout", 27 | DefaultContent = "\r\n*|*\r\n", 28 | }, 29 | new ProToolboxItem 30 | { 31 | ImageMoniker = KnownMonikers.BorderElement, 32 | DisplayedText = "Border", 33 | DefaultContent = "\r\n*|*\r\n", 34 | }, 35 | new ProToolboxItem 36 | { 37 | ImageMoniker = KnownMonikers.Carousel, 38 | DisplayedText = "CarouselView", 39 | DefaultContent = "\r\n\r\n\r\n\r\n\r\n\r\n*|*\r\n\r\n\r\n", 40 | }, 41 | new ProToolboxItem 42 | { 43 | ImageMoniker = KnownMonikers.ListView, 44 | DisplayedText = "CollectionView", 45 | DefaultContent = "\r\n\r\n\r\n*|*\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", 46 | }, 47 | new ProToolboxItem 48 | { 49 | ImageMoniker = KnownMonikers.FrameSet, 50 | DisplayedText = "ContentView", 51 | DefaultContent = "\r\n*|*\r\n", 52 | }, 53 | new ProToolboxItem 54 | { 55 | ImageMoniker = KnownMonikers.FlowLayoutPanel, 56 | DisplayedText = "FlexLayout", 57 | DefaultContent = "\r\n*|*\r\n", 58 | }, 59 | new ProToolboxItem 60 | { 61 | ImageMoniker = KnownMonikers.Grid, 62 | DisplayedText = "Grid", 63 | DefaultContent = "\r\n*|*\r\n", 64 | }, 65 | new ProToolboxItem 66 | { 67 | ImageMoniker = KnownMonikers.AlignVerticalStretch, 68 | DisplayedText = "HorizontalStackLayout", 69 | DefaultContent = "\r\n*|*\r\n", 70 | }, 71 | new ProToolboxItem 72 | { 73 | ImageMoniker = KnownMonikers.ListView, 74 | DisplayedText = "ListView", 75 | DefaultContent = "\r\n\r\n\r\n*|*\r\n\r\n\r\n", 76 | }, 77 | new ProToolboxItem 78 | { 79 | ImageMoniker = KnownMonikers.Refresh, 80 | DisplayedText = "RefreshView", 81 | DefaultContent = "\r\n*|*\r\n", 82 | }, 83 | new ProToolboxItem 84 | { 85 | ImageMoniker = KnownMonikers.ScrollBox, 86 | DisplayedText = "ScrollView", 87 | DefaultContent = "\r\n*|*\r\n", 88 | }, 89 | new ProToolboxItem 90 | { 91 | ImageMoniker = KnownMonikers.TouchableDevice, 92 | DisplayedText = "SwipeView", 93 | DefaultContent = "\r\n\r\n\r\n*|*\r\n\r\n", 94 | }, 95 | new ProToolboxItem 96 | { 97 | ImageMoniker = KnownMonikers.AppearanceGrid, 98 | DisplayedText = "TableView", 99 | DefaultContent = "\r\n\r\n*|*\r\n\r\n\r\n", 100 | }, 101 | new ProToolboxItem 102 | { 103 | ImageMoniker = KnownMonikers.AlignHorizontalStretch, 104 | DisplayedText = "VerticalStackLayout", 105 | DefaultContent = "\r\n*|*\r\n", 106 | }, 107 | }; 108 | } 109 | 110 | private ObservableCollection GetDefaultControlItems() 111 | { 112 | return new ObservableCollection { 113 | new ProToolboxItem 114 | { 115 | ImageMoniker = KnownMonikers.Activity, 116 | DisplayedText = "ActivityIndicator", 117 | DefaultContent = "\r\n", 118 | }, 119 | new ProToolboxItem 120 | { 121 | ImageMoniker = KnownMonikers.Box, 122 | DisplayedText = "BoxView", 123 | DefaultContent = "\r\n", 124 | }, 125 | new ProToolboxItem 126 | { 127 | ImageMoniker = KnownMonikers.WebApplication, 128 | DisplayedText = "BlazorWebView", 129 | DefaultContent = "\r\n\r\n\r\n\r\n\r\n", 130 | }, 131 | new ProToolboxItem 132 | { 133 | ImageMoniker = KnownMonikers.Button, 134 | DisplayedText = "Button", 135 | DefaultContent = "