xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="627" Width="580">
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace ButtonSpeedTest
{
public partial class Window1 : Window
{
bool isDragging;
public Window1()
{
InitializeComponent();
}
private void MyMouseDown(object sender, MouseButtonEventArgs e)
{
isDragging = true;
}
private void MyMouseUp(object sender, MouseButtonEventArgs e)
{
isDragging = false;
}
private void MyMouseMove(object sender, MouseEventArgs e)
{
if (isDragging)
{
Point position = e.GetPosition(this);
rect.SetValue(Canvas.LeftProperty, position.X - rect.Width / 2);
rect.SetValue(Canvas.TopProperty, position.Y - rect.Height / 4);
}
}
}
}
Bechir BejaouiPosted Dec 23, 2008, 3:34 PM
Sergey SharikovPosted Dec 23, 2008, 6:05 AM
Hi,
It seems that signinficant performance slowdown can be seen only on Vista with Aero turned on. Note, that my machine should support Aero (quad 2.53, 4 Gb Ram, GeGorce 9800 GT), so the problem must be somewhere inside Aero..
Thanks,
Sergey.
Bechir BejaouiPosted Dec 21, 2008, 12:46 PM
Is there any other code that interfers with this one? might it negatively affects it.