Jacek Ciereszko created an behavior class which allow users to open the combobox menu without mouse click. Simply move over the control and it will open automatically.
View Demo: New Window
Jacek Ciereszko created an behavior class which allow users to open the combobox menu without mouse click. Simply move over the control and it will open automatically.
When you click on the grid, it will be filled up with a random color.
The is no native support for double click in Silverlight 3. However, Terence Tsang created a sample to tackle this problem. When you double click on the application, a random geometry object will pop up.
There is no native support for double click in Silverlight. Mike has a workaround to solve this problem. This is achieved by using a combination of DispatcherTimer and MouseDown Event.
DispatcherTimer _doubleClickTimer;
public Page()
{
InitializeComponent();
_doubleClickTimer = new DispatcherTimer();
_doubleClickTimer.Interval = new TimeSpan(0, 0, 0, 0, 200);
_doubleClickTimer.Tick += new EventHandler(DoubleClick_Timer);
this.MouseLeftButtonDown += new MouseButtonEventHandler(Page_MouseLeftButtonDown);
}
// too much time has passed for it to be a double click.
void DoubleClick_Timer(object sender, EventArgs e)
{
_doubleClickTimer.Stop();
}
void Page_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (_doubleClickTimer.IsEnabled)
{
// a double click has occured
_doubleClickTimer.Stop();
}
else
{
_doubleClickTimer.Start();
}
}