|
0
|
1 |
using System; |
|
|
2 |
|
|
|
3 |
using System.Windows.Data; |
|
|
4 |
using System.Windows; |
|
|
5 |
using System.Windows.Controls; |
|
|
6 |
using System.Windows.Documents; |
|
|
7 |
using System.Windows.Ink; |
|
|
8 |
using System.Windows.Input; |
|
|
9 |
using System.Windows.Media; |
|
|
10 |
using System.Windows.Media.Animation; |
|
|
11 |
using System.Windows.Shapes; |
|
|
12 |
using Iri.Modernisation.BaseMVVM.Commands; |
|
|
13 |
namespace Iri.Modernisation.Controls.View |
|
|
14 |
{ |
|
|
15 |
public partial class ConsultMenu : UserControl |
|
|
16 |
{ |
|
|
17 |
public ConsultMenu() |
|
|
18 |
{ |
|
|
19 |
// Required to initialize variables |
|
|
20 |
InitializeComponent(); |
|
|
21 |
} |
|
|
22 |
|
|
|
23 |
private void SearchBox_KeyUp(object sender, KeyEventArgs e) |
|
|
24 |
{ |
|
|
25 |
BindingExpression be = SearchBox.GetBindingExpression(TextBox.TextProperty); |
|
|
26 |
be.UpdateSource(); |
|
|
27 |
Commands.ConsultMenu.GetBook.Execute(); |
|
|
28 |
} |
|
|
29 |
} |
|
|
30 |
} |