void button_Click(object sender, RoutedEventArgs e)
        {
            string          guid  = "" + ((Button)sender).Tag;
            DynamoViewModel dynVM = Owner.DataContext as DynamoViewModel;
            var             VMU   = new ViewModelUtils(dynVM, Owner);

            VMU.ZoomToObject(guid);
        }
Example #2
0
        void button_Click(object sender, RoutedEventArgs e)
        {
            var    dynWindow = this.Owner;
            var    vm        = dynWindow.DataContext as DynamoViewModel;
            string guid      = "" + ((Button)sender).Tag;
            var    VMU       = new ViewModelUtils(vm, dynWindow);

            VMU.ZoomToObject(guid);
        }