Workspace Folder #39
michael-hawker
started this conversation in
Feature Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Background
Status: In-progress
Tracking Issue: #6
This feature lets you open a folder to work on which can provide context for image paths, data contexts, and resources.
Images work the best and are the most stable at the moment, but mainly work for
Imagetags. Resources will work for styles but not general keys. And Data Context works but is incompatible with Visual Studio's current methods of providing data context (it worked when it was first introduced, but that feature has changed over time in the platform).(This was part of the original XAML Studio prototype that didn't make it to v1 and has been brought back! Find out more in #26.)
Technical Info
If you're looking to help improve this functionality, the base code for the Explorer can be found in the XamlStudio project's
Explorer.xaml.The handling of images and resources is currently handled in the
XamlRenderServicewhich exists in the XamlStudio.Toolkit project inXamlRenderService.cs, some of this should probably be abstracted into a separate helper method. However, the resource loading probably needs to occur beforehand as a pre-processing step to interweave the raw resource XAML with the document itself. See #34Feedback
Known Issues: #6, #32
Let us know how you feel about this functionality and ideas on how we should better handle Data Context json files, as well as other image scenarios or asset files we may have missed.
Beta Was this translation helpful? Give feedback.
All reactions