Browse Source

MessageBox: fixed messageBox drag when FlowDirection set RightToLeft

pull/1645/head
brianlagunas_cp 14 years ago
parent
commit
175403f030
  1. 9
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/Implementation/MessageBox.cs

9
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/Implementation/MessageBox.cs

@ -500,7 +500,14 @@ namespace Microsoft.Windows.Controls
/// <param name="e">The <see cref="System.Windows.Controls.Primitives.DragDeltaEventArgs"/> instance containing the event data.</param>
private void ProcessMove(DragDeltaEventArgs e)
{
Container.Left = Container.Left + e.HorizontalChange;
double left = 0.0;
if (FlowDirection == System.Windows.FlowDirection.RightToLeft)
left = Container.Left - e.HorizontalChange;
else
left = Container.Left + e.HorizontalChange;
Container.Left = left;
Container.Top = Container.Top + e.VerticalChange;
}

Loading…
Cancel
Save