Adapt to removed WPF helpers.