DiagramPaletteSource
Maintains the palette projection of a live composition registry.
Implementa: IDisposable
Construtores
public DiagramPaletteSource()
diagramPaletteSource = DiagramPaletteSource()
Initializes a new instance of the DiagramPaletteSource class.
Propriedades
public ReadOnlyObservableCollection<PaletteCategory> Categories { get; }
value = diagramPaletteSource.Categories
Gets categorized palette items.
public ObservableCollection<Guid> ExcludedTypeIds { get; }
value = diagramPaletteSource.ExcludedTypeIds
Gets type identifiers excluded from the palette.
public ReadOnlyObservableCollection<PaletteItem> Items { get; }
value = diagramPaletteSource.Items
Gets all leaf items.
public DiagramPaletteModel Model { get; set; }
value = diagramPaletteSource.Model
diagramPaletteSource.Model = value
Gets or sets the WPF-compatible live palette model.
public ICompositionRegistry Registry { get; set; }
value = diagramPaletteSource.Registry
diagramPaletteSource.Registry = value
Gets or sets the live composition registry.
Métodos
public void AddCategory(string categoryName, IEnumerable<PaletteItem> items)
diagramPaletteSource.AddCategory(categoryName, items)
Adds a compatibility category not backed by the registry.
- categoryName
- Category name.
- items
- Items.
public void Dispose()
diagramPaletteSource.Dispose()
Disposes of items in the pool that implement IDisposable.
public IReadOnlyList<PaletteItem> Filter(string text)
result = diagramPaletteSource.Filter(text)
Returns items matching their localized name, description, or category.
- text
- Search text.
Retorna: Matching items.
public void Refresh()
diagramPaletteSource.Refresh()
Rebuilds the sorted category projection.
internal void ResumeLanguageNotifications()
diagramPaletteSource.ResumeLanguageNotifications()
Resumes language-driven rebuilding without forcing an additional refresh.
internal void SuspendLanguageNotifications()
diagramPaletteSource.SuspendLanguageNotifications()
Stops language-driven rebuilding while an owning visual is detached.
internal void UpdatePublishers(ICompositionRegistry registry, DiagramPaletteModel model)
diagramPaletteSource.UpdatePublishers(registry, model)
Atomically replaces the external publishers and rebuilds their projection once.