public sealed class ImageViewBarThe two pickers that drive an ImageView's channel and colour space.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Channels and ColorSpace worked and nothing set them — #1012. The picker was correct and unreachable: a sweep of .cs and .vxml found the two enums named nowhere outside the control and its own tests. Three panels want the same strip — the texture graph's node preview, the layer stack's, the paint view's — so the strip is a control rather than three hand-rolled copies that drift.
⚠ Five segments and two, rather than one control with seven. They are two questions: which channels, and through which transfer function. ImageColorSpace's own remark is the argument — an sRGB texture shown as linear and a linear one shown as sRGB look like different bugs and are the commonest false bug report in a texturing tool — and a viewer asking "the alpha, as stored" needs both answers at once, which one enum of seven cannot express.
⚠ It writes the control's properties and asserts nothing about the picture, and the test is where that distinction is paid. A binding that sets the property and a binding that reaches the picture are the same assertion only until somebody stops passing view: at the DrawImage call — so ImageViewBarTests clicks a segment and reads the draw command's View, not the property back.
Three panels host one — TextureGraphView, LayerStackView and PaintUvView, each pointed at that pane's own ImageView, which is all of #1012. ⚠ The strip is added before the viewer and View assigned after: Add appends, so the toggles sit above the picture, and assigning View adopts what the pane is already showing rather than pushing this strip's first segment over it.
Fields and properties (4)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusprotected override AccessibleRole NativeRolepublic ImageView? ViewThe view being driven, or null for a strip that drives nothing.
Methods (2)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
public void Show()Reads the view's current request back onto the two strips.
Used by (6)
- ImageViewBarTestsVixen.Ui.Controls.Advanced.Tests
- ImageViewBarWiringTestsVixen.Editor.Texturing.Tests
- LayerStackChromeVixen.Editor.Texturing
- LayerStackViewVixen.Editor.Texturing
- PaintUvViewVixen.Editor.Texturing
- TextureGraphViewVixen.Editor.Texturing