Vixen
feb85697
csharp
public sealed class AssetTile

One realised tile of an AssetGrid: the element, and what it is showing.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A view over a pool slot rather than the element itself, since #1406. A tile used to be a control of this name with four typed parts, created by the grid's CreateTile in C#. The tile template is @rows markup now, and a pool makes every slot by tag name — so the slot is a plain <asset-tile> element, and this names its parts for a caller that wants them, which is what the grid hands out.

⚠ Made on each ask and not kept. The slot is rebound to another item as the grid scrolls, so a view held across a scroll names whatever the slot shows now while its Node still says what it showed then. Ask the grid again.

Fields and properties (6)

  • public UiElement Element

    The slot's element, which is what is laid out, hit and styled.

  • public AssetTreeNode? Node

    Which asset it shows.

  • public Icon Glyph

    The glyph, shown while there is no picture and for everything that has none.

  • public Image Picture

    The picture, when the asset has one.

  • public UiElement Caption

    The name under it.

  • public UiElement Status

    The source-control mark in the corner, hidden when there is nothing to say.

Methods (1)

  • public AssetTile(UiElement element, AssetTreeNode? node)

    One realised tile of an AssetGrid: the element, and what it is showing.

Used by (10)

  • AssetGridVixen.Editor.App
  • AssetGridDumpTestsVixen.Editor.App.Tests
  • AssetPickerTestsVixen.Editor.App.Tests
  • AssetPreviewContributionTestsVixen.Editor.App.Tests
  • BrowserCollectionTestsVixen.Editor.App.Tests
  • BrowserFolderTreeTestsVixen.Editor.App.Tests
  • ContentBrowsingVixen.Editor.App
  • GridViewTestsVixen.Editor.App.Tests
  • SourceControlColumnTestsVixen.Editor.App.Tests
  • ThumbnailTestsVixen.Editor.App.Tests