ReaderSvgSwitchElementProcessingType Property |
Namespace: Ab2d
public ReaderSvgSwitchElementProcessingTypes SwitchElementProcessingType { get; set; }
SwitchElementProcessingType specifies which children of the svg switch element will be processed and shown. The switch element in svg file defines children that are shown based on the conditions defined in switch element. Because it is not possible to process svg conditions in WPF, it is possible to choose how the children will be imported.
By default only the first switch child is imported - the SwitchElementProcessingType is set to ShowFirstDiscardOthers.
With setting the SwitchElementProcessingType it is possible to disable importing switch children (Disabled), show the first child and set other to Hidden (ShowFirstHideOthers) or Collapsed (ShowFirstCollapseOthers). It is also possible to show all the children (ShowAll).