コード例 #1
0
        private WpfSvgWindow(ISvgControl control, SvgWindow parentWindow, long innerWidth, long innerHeight)
            : base(parentWindow, innerWidth, innerHeight)
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control), "control cannot be null");
            }

//            _preferUserSize = true;
            _svgControl = control;
        }
コード例 #2
0
        public WpfSvgWindow(ISvgControl control, ISvgRenderer renderer)
            : base(control.Width, control.Height, renderer)
        {
            if (control == null)
            {
                throw new ArgumentNullException(nameof(control), "control cannot be null");
            }
            if (this.BaseUrls == null)
            {
                this.BaseUrls = new HashSet <string>(StringComparer.OrdinalIgnoreCase);
            }

//            _preferUserSize = true;
            _svgControl = control;
        }