public sealed class StyleSheetDocumentA stylesheet, open for editing.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The preview is genuinely live here, and that is the difference from VXML. A stylesheet needs no compilation: StyleEngine.Replace swaps a sheet's text and restyles, so the pane shows the real cascade over a real element tree. It is the cheapest thing in doc 11's table and the one that pays back most often, because most of what a .vcss is edited for is a number somebody wants to see move.
⚠ Nothing here reports a syntax error. StyleSheetLoader follows CSS's own recovery rules — a declaration it cannot parse is dropped and the rest of the rule stands — and reports nothing to a caller, which is right for a browser and unhelpful in an editor. The rule that vanished is visible in the preview and invisible in the gutter; a diagnostic-producing loader is the fix and it belongs in Vixen.Ui.Styling.
Fields and properties (2)
public const string ExtensionWhat a stylesheet is written as.
public override ICodeTokenizer Tokenizer
Methods (1)
public StyleSheetDocument(EditorProject project, AssetId asset, string path)Opens a stylesheet.
Used by (4)
- CodeAnalysisTestsVixen.Editor.AssetEditors.Tests
- EditorViewTestsVixen.Editor.AssetEditors.Tests
- MarkupEditorFactoryVixen.Editor.AssetEditors
- PreviewCodeEditorViewVixen.Editor.AssetEditors