Example #1
0
 public MainWindow()
 {
     InitializeComponent();
     _dataService = new FakeAutoFillDataService();
     _searchAutoFillView = new SearchAutoFillViewModel(_dataService);
     InitializeContent();
 }
 public SearchAutoFillViewModel(IAutoFillDataService autoFillDataService)
 {
     _autoFillDataService = autoFillDataService;
     ClearTextImageVisibility = Visibility.Hidden;
     ClearTextCommand = new RelayCommand(() =>
         {
             SearchText = null;
         });
     SearchTextEnteredCommand = new RelayCommand(OnSearchTextEntered);
 }