Home > other >  Is there any difference between WPF drag control and control? Why drag control special slow?
Is there any difference between WPF drag control and control? Why drag control special slow?

Time:09-25

Research learning WPF, recently discovered a problem, I don't know whether my own problem, directly from the WPF toolbox mouse drag and drop a control to the form, will be particularly slow, every drag and drop a control need at least a decade or two seconds, after but the mouse to choose the control, in the form directly, quickly, I VS version is 2017, I was in another VS2013 computer test, so, the computer is new, VS2017 run smoothly, not is machine problem, is my operating errors?

In addition, I found that even draw controls, sometimes when the debugging is turned off, have no direct painting, Ming chose a BUTTON control, the mouse or pointer state, another window switch, switch back again,,

Feel more strange, where is my operation is there a problem?

CodePudding user response:

Won't appear this kind of circumstance is arguably website now all out for a long time to use the 2019 2019 try it and then give a little advice to learn WPF had better not use WinForm thinking I now write WPF basically, the front desk to write xaml preview window page to watch is sometimes look at you in the end will find really didn't have to write directly to the convenient drag controls

CodePudding user response:

Understand, write directly xaml nothing, agree, just direct the mouse to drag a control card, let my heart feel very uncomfortable, the feeling is where there is a problem, but can't find the problem where I in different machines use different VS version (13/17), found that the problem is,

CodePudding user response:

I don't have any card here I use VS2019 community edition

CodePudding user response:

I changed to another desktop VS2013, nor caton, two laptops not 13 and 17, is not directly drag controls to the form, other all right, oddly

CodePudding user response:

reference 4 floor lovebaby response:
I changed another desktop VS2013, nor caton, two laptops not 13 and 17, is not directly drag controls to the form, other all right, oddly


1. Put the code in the solid state drives
2. Try to add a memory bank
3. Try to add a graphics card

CodePudding user response:

reference 5 floor lindexi_gd reply:
Quote: refer to 4th floor lovebaby response:

I changed to another desktop VS2013, nor caton, two laptops not 13 and 17, is not directly drag controls to the form, other all right, oddly


1. Put the code in the solid state drives
2. Try to add a memory bank
3. Try to add a video card

I said the above, I bought a new laptop, pure SSD, 12 gb of memory, 8 core i7 CPU, smooth run VS2017,,, is the time to drag the control card,

CodePudding user response:

Xaml write tag language directly, and painting is not working!

CodePudding user response:

Installed VS automatic updates, can now, which updates the role of, I don't know
  • Related