本文整理匯總了C#中System.Windows.Input.MouseButtonEventArgs.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# MouseButtonEventArgs.ToString方法的具體用法?C# MouseButtonEventArgs.ToString怎麽用?C# MouseButtonEventArgs.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Input.MouseButtonEventArgs
的用法示例。
在下文中一共展示了MouseButtonEventArgs.ToString方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: setMinValue
/// <summary>
/// sets Personal Stack to min value
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void setMinValue(object sender, MouseButtonEventArgs e)
{
log.Debug("setMinValue(object " + sender.ToString() + " MouseButtonEventArgs " + e.ToString() + ") - Begin");
//Update the personal stack
personalStack = kvp.Value[1].amount;
personalStackField_h.Text = personalStack.ToString();
personalStackField_v.Text = personalStack.ToString();
checkCash(kvp.Key.position);
setActionButtonText();
log.Debug("setMinValue() - End");
e.Handled = true;
}
示例2: OnMouseClick
/// <summary>
/// Send send change event when the mouse clicks down the track bar.
/// </summary>
/// <param name="sender">Source object, track.</param>
/// <param name="args">Mouse button args.</param>
private void OnMouseClick(object sender, MouseButtonEventArgs args)
{
Debug.WriteLine("OnMouseDownHorizontal sender=" + sender.ToString() + " args=" + args.ToString());
Value = CalcValue(args);
}