private BorderProps GetOrCreateBorderProps(BorderedCanvas view)
        {
            if (!_borderProps.TryGetValue(view, out var props))
            {
                props = new BorderProps();
                _borderProps.Add(view, props);
            }

            return(props);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Some border props do not affect appearance unless they are combined
        /// with other props. Such props are saved in the dictionary and applied
        /// later. This allows to not create the inner Border if it's not visible.
        /// </summary>
        private BorderProps GetBorderProps(BorderedCanvas view)
        {
            BorderProps props;

            if (!_borderProps.TryGetValue(view, out props))
            {
                props = new BorderProps();
                _borderProps.Add(view, props);
            }

            return(props);
        }