Ejemplo n.º 1
0
        public void Preview()
        {
            var view = new ListView();
            var src  = new MousePreviewBehavior();

            src.Attach(view);
            Assert.That(src.Command, Is.Null);
            src.Detach();
        }
Ejemplo n.º 2
0
        public void Properties() => Create(vm =>
        {
            var view = new ListView {
                DataContext = vm
            };
            var src = new MousePreviewBehavior();

            src.Attach(view);
            Assert.That(src.Command, Is.Null);
            src.Detach();
        });