public RootWindow() { Width = Console.WindowWidth; Height = Console.WindowHeight; RootCurserPositionProperty.Bind(this, ActiveControlProperty.Of(this).Over(FrameworkElement.CurserPositionReadOnlyProperty).ConvertOneWay(p => p)); }
public RootWindow(NsciOptions options) { if (options == null) { options = new NsciOptions(); } this.options = options; Width = Console.WindowWidth; Height = Console.WindowHeight; RootCurserPositionProperty.Bind(this, ActiveControlProperty.Of(this).Over(FrameworkElement.CurserPositionReadOnlyProperty).ConvertOneWay(p => p)); }