public BottomRightCornerMargin(WpfHexViewHost wpfHexViewHost) { if (wpfHexViewHost == null) throw new ArgumentNullException(nameof(wpfHexViewHost)); canvas = new Canvas(); this.wpfHexViewHost = wpfHexViewHost; wpfHexViewHost.HexView.Options.OptionChanged += Options_OptionChanged; canvas.SetResourceReference(Control.BackgroundProperty, "EnvironmentScrollBarBackground"); UpdateVisibility(); }