DiagramEditorControl
Grafische Komponente zum Bearbeiten von CompositionDiagramElement.
Erbt von: UserControl
Implementiert: IAsyncPersistable, IUndoRedoManager, IComponentConnector
Konstruktoren
public DiagramEditorControl()
diagramEditorControl = DiagramEditorControl()
Initialisiert eine neue Instanz von DiagramEditorControl.
Eigenschaften
public CompositionDiagramElement Composition { get; set; }
value = diagramEditorControl.Composition
diagramEditorControl.Composition = value
Verbundelement.
public IDictionary<Type, IDoubleClickHandler> DoubleClickHandlers { get; }
value = diagramEditorControl.DoubleClickHandlers
Double-Click Element Handler.
public ICommand HelpCommand { get; set; }
value = diagramEditorControl.HelpCommand
diagramEditorControl.HelpCommand = value
Hilfebefehl.
public bool IsEncrypted { get; set; }
value = diagramEditorControl.IsEncrypted
diagramEditorControl.IsEncrypted = value
ist verschlüsselt.
public bool IsReadOnly { get; set; }
value = diagramEditorControl.IsReadOnly
diagramEditorControl.IsReadOnly = value
Nur Lesemodus.
public ICommand OpenElementCommand { get; set; }
value = diagramEditorControl.OpenElementCommand
diagramEditorControl.OpenElementCommand = value
Befehl zum Öffnen des Kompositionselements.
public ICommand OpenPropertiesCommand { get; set; }
value = diagramEditorControl.OpenPropertiesCommand
diagramEditorControl.OpenPropertiesCommand = value
Befehl zum Öffnen von Elementeigenschaften.
public ICommand RedoCommand { get; set; }
value = diagramEditorControl.RedoCommand
diagramEditorControl.RedoCommand = value
Befehl Redo.
public ICommand RemoveCommand { get; set; }
value = diagramEditorControl.RemoveCommand
diagramEditorControl.RemoveCommand = value
Befehl entfernen.
public double Scale { get; set; }
value = diagramEditorControl.Scale
diagramEditorControl.Scale = value
Waage.
public DiagramElement SelectedElement { get; set; }
value = diagramEditorControl.SelectedElement
diagramEditorControl.SelectedElement = value
Ausgewähltes Element.
public IEnumerable<DiagramElement> SelectedElements { get; set; }
value = diagramEditorControl.SelectedElements
diagramEditorControl.SelectedElements = value
Ausgewählte Elemente.
public bool ShowOverview { get; set; }
value = diagramEditorControl.ShowOverview
diagramEditorControl.ShowOverview = value
Um das Review Panel zu zeigen.
public ICommand UndoCommand { get; set; }
value = diagramEditorControl.UndoCommand
diagramEditorControl.UndoCommand = value
Befehl zurücknehmen.
Methoden
public Task<CompositionDiagramElement> GetSelectionCopyElementAsync(CancellationToken cancellationToken)
result = diagramEditorControl.GetSelectionCopyElementAsync(cancellationToken)
To create a new element from the selected elements in the diagram.
- cancellationToken
- CancellationToken
Rückgabe: Composite element.
public void InitializeComponent()
diagramEditorControl.InitializeComponent()
InitializeComponent
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramEditorControl.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramEditorControl.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Rückgabe: Task
public void SaveToImage(Stream file)
diagramEditorControl.SaveToImage(file)
Um das Diagramm als Bild zu speichern.
- file
- Der Inhalt der Datei.
public void Select(DiagramElement element)
diagramEditorControl.Select(element)
Element auswählen.
- element
Ereignisse
public event Action<DiagramElement> ElementDoubleClicked
diagramEditorControl.ElementDoubleClicked += handler
Das Ereignis des Doppelklicks auf das Diagrammelement.
public event Action<DiagramElement> SelectionChanged
diagramEditorControl.SelectionChanged += handler
Das Ereignis der Elementauswahl im Diagramm.
public event Action<DiagramSocket, MouseAction> SocketClicked
diagramEditorControl.SocketClicked += handler
Socket Clicked Event.
Felder
public static readonly DependencyProperty CompositionProperty
value = DiagramEditorControl.CompositionProperty
DependencyProperty für Komposition.
public static readonly DependencyProperty HelpCommandProperty
value = DiagramEditorControl.HelpCommandProperty
DependencyProperty für HelpCommand.
public static readonly DependencyProperty OpenElementCommandProperty
value = DiagramEditorControl.OpenElementCommandProperty
DependencyProperty für OpenElementCommand.
public static readonly DependencyProperty OpenPropertiesCommandProperty
value = DiagramEditorControl.OpenPropertiesCommandProperty
DependencyProperty für OpenPropertiesCommand.
public static readonly DependencyProperty RedoCommandProperty
value = DiagramEditorControl.RedoCommandProperty
DependencyProperty für RedoCommand.
public static readonly DependencyProperty RemoveCommandProperty
value = DiagramEditorControl.RemoveCommandProperty
DependencyProperty für RemoveCommand.
public static readonly DependencyProperty ScaleProperty
value = DiagramEditorControl.ScaleProperty
DependencyProperty für Scale.
public static readonly DependencyProperty ShowOverviewProperty
value = DiagramEditorControl.ShowOverviewProperty
DependencyProperty für ShowOverview.
public static readonly DependencyProperty UndoCommandProperty
value = DiagramEditorControl.UndoCommandProperty
DependencyProperty für UndoCommand.