Add interface for WPF implementation and mark method as virtual.