public StoryboardLayer GetLayer(string name) { if (!layers.TryGetValue(name, out var layer)) { layers[name] = layer = new StoryboardLayer(name, --minimumLayerDepth); } return(layer); }
public StoryboardLayer GetLayer(string name) { if (!layers.TryGetValue(name, out var layer)) { layers[name] = layer = new StoryboardLayer(name, layers.Values.Min(l => l.Depth) - 1); } return(layer); }