Revision 53032fb7 trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml.cs
b/trunk/Pithos.Client.WPF/Preferences/AddAccountView.xaml.cs | ||
---|---|---|
22 | 22 |
public AddAccountView() |
23 | 23 |
{ |
24 | 24 |
InitializeComponent(); |
25 |
|
|
26 |
//When the busy indicator changes, force a focus change. Workaround for delayed change of the Next button's visibility |
|
27 |
ManualBusyMessage.IsVisibleChanged += (sender, evt) => Token.Focus(); |
|
28 |
ValidationMessage.IsVisibleChanged += (sender, evt) => ValidationMessage.Focus(); |
|
29 | 25 |
} |
30 | 26 |
|
31 | 27 |
|
... | ... | |
61 | 57 |
_history.Push(AccountWizard.CurrentPage); |
62 | 58 |
|
63 | 59 |
} |
60 |
|
|
61 |
private void OnTargetUpdated(object sender, DataTransferEventArgs e) |
|
62 |
{ |
|
63 |
//It is not enough to change the value of the CanSelectNextPage property of the page to enable |
|
64 |
//the next page button. |
|
65 |
//Must force the re-evaluation of the NextPage command's CanExecute method |
|
66 |
if (e.Property == WizardPage.CanSelectNextPageProperty) |
|
67 |
CommandManager.InvalidateRequerySuggested(); |
|
68 |
} |
|
64 | 69 |
} |
65 | 70 |
} |
Also available in: Unified diff