简体   繁体   English

Mainwindow.xaml无法在打开时进行设计,但仍会从工具箱中删除项目

[英]Mainwindow.xaml can not design when open but still drop item from toolbox

Somethings went wrong when I open Mainwindow.xaml .I couldn't drag, move or edit control( button, textbox ,.....). 当我打开Mainwindow.xamlMainwindow.xaml 。我无法拖动,移动或编辑控件( button, textbox ,.....)。

Click to see my error 点击查看我的错误

This is what I try to fix it: 这是我尝试解决的问题:

•I try to edit by coding, every controls in designing form still were changed when I edited by code but could not move or edit by designing •我尝试通过编码进行编辑,当我通过代码进行编辑时, designing form每个控件仍然被更改,但无法通过设计进行移动或编辑

•I also try to drag some controls from toolbox to designing form and it work correctly(every controls could move or edit by designing) but controls appear before still perform. •我还尝试将一些控件从工具箱拖到designing form并且它可以正常工作(每个控件都可以通过设计移动或编辑),但是控件在执行之前就出现了。

•Try open Mainwindow.xaml by Blend Visua Studio •尝试打开Blend Visua Studio Mainwindow.xaml Blend Visua Studio Mainwindow.xaml

I'm using WPF , Design by Ribbon- Control 我正在使用WPF ,通过Ribbon- Control设计

THANKS! 谢谢!

If you accidentally (or intentionally) engaged the Lock on the controls, that would prevent you from dragging them around. 如果您不小心(或有意)使用了控件上的Lock,则可能会导致您无法拖动它们。

Go the the Design menu in VS and then Lock then select "Unlock All" and see if that helps. 在VS中转到“设计”菜单,然后单击“锁定”,然后选择“全部解锁”,看看是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM