Пример #1
0
        public StoryboardLayer GetLayer(string name)
        {
            if (!layers.TryGetValue(name, out var layer))
            {
                layers[name] = layer = new StoryboardLayer(name, --minimumLayerDepth);
            }

            return(layer);
        }
Пример #2
0
        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);
        }