Exemple #1
0
        public RootWindow()
        {
            Width  = Console.WindowWidth;
            Height = Console.WindowHeight;

            RootCurserPositionProperty.Bind(this, ActiveControlProperty.Of(this).Over(FrameworkElement.CurserPositionReadOnlyProperty).ConvertOneWay(p => p));
        }
Exemple #2
0
        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));
        }