private void MyAppBar_Loaded(object sender, RoutedEventArgs e) { if (SearchBar != null) { SearchBar.Focus(Windows.UI.Xaml.FocusState.Programmatic); } }
private void MyAppBar_Opened(object sender, object e) { if (SearchBar != null) { SearchBar.Focus(Windows.UI.Xaml.FocusState.Programmatic); } }
public MainWindow() { if (File.Exists(filename)) { json = File.ReadAllText(filename); users = Deserialize(json); } else { File.Create(filename); users = new List <User> { new User { Name = "", Department = "", Phone = "" } }; } InitializeComponent(); flag.Visibility = Visibility.Collapsed; SearchBar.Focus(); view = CollectionViewSource.GetDefaultView(users); view.SortDescriptions.Clear(); view.SortDescriptions.Add(new SortDescription("Name", ListSortDirection.Ascending)); DataGrid.ItemsSource = view; }
private void MainWindow_OnActivated(object sender, EventArgs e) { RepositionToPrimaryScreen(); SearchBar.SelectAll(); SearchBar.Focus(); }
protected override void OnAppearing() { base.OnAppearing(); if (string.IsNullOrEmpty(SearchBar.Text)) { SearchBar.Focus(); } }
void OnMenuItemClicked(object sender, RoutedEventArgs args) { var menuItem = (MenuItem)sender; var searchModel = (ISearchMenuModel)menuItem.Tag; searchModel.NotifyActivated(); SearchBar.Focus(); }
public SearchPage() { InitializeComponent(); SearchBar.Focus(); service = new GooglePlacesAPIService <Places.RootObject>(); results = new List <Places.Prediction>(); }
private void SearchToolbarItem_Clicked(object sender, EventArgs e) { if (displayedProducts.Count != 0) { this.ToolbarItems.Clear(); ToolbarItems.Add(endSearchToolbarItem); BodyLayout.TranslateTo(0, 0); SearchBar.Focus(); } }
public void OnToolbar_Cliked(object sender, EventArgs e) { try { SearchBar.IsVisible = true; SearchBar.Focus(); searchbar_icon.Icon = ""; searchbar_icon.Text = ""; } catch { } }
private async void Search_Tapped(object sender, EventArgs e) { SearchFrame.IsVisible = true; TitleControls.FadeTo(0, 200); await SearchIndicator.ScaleTo(1.4, 85); SearchIndicator.ScaleTo(1, 85); SearchFrame.FadeTo(1, 170); await SearchFrame.TranslateTo(0, 0, 200); SearchBar.Focus(); }
/// <summary> /// search bar clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> async void Search_Clicked(object sender, EventArgs e) { SearchBar.IsVisible = !SearchBar.IsVisible; Header.Icon = SearchBar.IsVisible ? "@drawable/cancel.png" : "@drawable/search.png"; if (SearchBar.IsVisible) { SearchBar.Focus(); } else { SearchBar.Text = ""; } }
private void SearchButton_Click(object sender, RoutedEventArgs e) { if (SearchBar.Height == 0) { SearchBar.Focus(); Animate(SearchBar, 0, 16, new TimeSpan(0, 0, 0, 0, 300)); Animate(SearchText, 0, 16, new TimeSpan(0, 0, 0, 0, 300)); ModsListView.Items.Filter = new Predicate <object>(SearchFilter); } else { Animate(SearchBar, 16, 0, new TimeSpan(0, 0, 0, 0, 300)); Animate(SearchText, 16, 0, new TimeSpan(0, 0, 0, 0, 300)); ModsListView.Items.Filter = null; } }
public SearchPage() { // BindingContext = _SearchViewModel = new SearchViewModel(); stacklayout = new StackLayout { Spacing = 0 }; searchbarstack = new StackLayout { Opacity = 0.8, Padding = new Thickness(0, 0, 0, 0) }; _Map = new Map() { IsShowingUser = true, VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand }; _Searchbar = new SearchBar() { Placeholder = "Search for place or address", HorizontalOptions = LayoutOptions.Fill, FontSize = _120PercentOfSmall }; _Searchbar.TextChanged += (sender, e) => { /*Work to be done at time text change*/ }; _Searchbar.SearchButtonPressed += async(sender, e) => { /*Work to be done at time of Search button click*/ //var viewModel = new SearchListViewModel(_Searchbar.Text); //await viewModel.FilterSpaceData(); await PushSearchListPage(); }; _Searchbar.Focus(); searchbarstack.Children.Add(_Searchbar); stacklayout.Children.Add(searchbarstack); stacklayout.Children.Add(_Map); ToolbarItems.Add(new ToolbarItem("Add", "add_ios_gray", async() => await PushWebSubmitPage())); //_SalesDashboardLeadsViewModel.PushTabbedLeadPageCommand.Execute(null))); Content = stacklayout; }
protected override async void OnAppearing() { base.OnAppearing(); _palavraChaveSearchBar.Focus(); if (IniciarEmPosicaoAtual) { if (!GPSUtils.UsaLocalizacao) { return; } await GPSUtils.Current.inicializar(); if (GPSUtils.Current.estaDisponivel()) { atualizarPontoNoMapa(); } } }
private async void Searchbar_TextChanged(object sender, TextChangedEventArgs e) { if (e.NewTextValue == "" && e.OldTextValue.Length > 0) { if (searchBarRefreshed == false) { searchBarRefreshed = true; searchBarText = ""; await updateList(Maincnx, null); searchbar.Focus(); } } if (e.NewTextValue.Length > 0) { searchBarRefreshed = false; } }
protected override async void OnAppearing() { base.OnAppearing(); _BarraBusca.Focus(); if (_ponto.Posicao != null) { _Mapa.MoveToRegion(MapSpan.FromCenterAndRadius((Position)_ponto.Posicao, Distance.FromMiles(0.3))); var pin = new Pin { Type = PinType.Place, Position = (Position)_ponto.Posicao, Address = _ponto.Text, Label = _PinLabel }; _Mapa.Pins.Clear(); _Mapa.Pins.Add(pin); } else { if (IsLocationAvailable()) { var posicao = await CrossGeolocator.Current.GetLastKnownLocationAsync(); var mapaPosicao = new Position(posicao.Latitude, posicao.Longitude); UserDialogs.Instance.ShowLoading("Carregando..."); var retGeocoder = await new Geocoder().GetAddressesForPositionAsync(mapaPosicao); UserDialogs.Instance.HideLoading(); if (retGeocoder != null && retGeocoder.Count() > 0) { _Mapa.MoveToRegion(MapSpan.FromCenterAndRadius(mapaPosicao, Distance.FromMiles(0.3))); var pin = new Pin { Type = PinType.Place, Position = mapaPosicao, Label = _PinLabel, Address = retGeocoder.LastOrDefault() }; _Mapa.Pins.Clear(); _Mapa.Pins.Add(pin); } } } }
void Cards_OnKeyDown(object sender, KeyEventArgs e) { if (!(DataContext is CardSearchViewModel vm)) { return; } switch (e.Key) { case Key.Escape: HideList(); SearchBar.Focus(); break; case Key.Enter: vm.Open(); HideList(); break; } }
private void OnFocusExecuted(object sender, ExecutedRoutedEventArgs e) { SearchBar.Focus(); }
public FindAdvertiserWindow() { InitializeComponent(); DataContext = new FindAdvertiserViewModel(); SearchBar.Focus(); }
protected override void OnAppearing() { base.OnAppearing(); SearchBar.Focus(); }
private void SearchButton_Clicked(object sender, EventArgs e) { MakeVisible(); Search.Focus(); }
public SearchPage() { stotras = InitializeStotras(); searchBar = new SearchBar { Placeholder = "Enter search term", }; searchBar.Focus(); searchBar.SearchButtonPressed += SearchBar_SearchButtonPressed; searchBar.SearchCommand = SearchCommand; searchBar.TextChanged += SearchBar_TextChanged; listView = new ListView { ItemsSource = stotras, ItemTemplate = new DataTemplate(() => { Label nameLabel = new Label(); nameLabel.SetBinding(Label.TextProperty, "Name"); //BoxView boxView = new BoxView(); //boxView.Color = Color.Orange; return(new ViewCell { View = new StackLayout { Padding = new Thickness(0, 5), Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.Center, Children = { //boxView, new StackLayout { VerticalOptions = LayoutOptions.Center, Spacing = 0, Children = { nameLabel } } } } }); }) }; listView.ItemSelected += OnItemSelected; this.Content = new StackLayout { Children = { searchBar, listView } }; }
public TopluDuzenle() { var o = new int(); Device.OnPlatform(iOS: () => o = 20, Android: () => o = 0); Padding = new Thickness(0, o, 0, 0); Grid a = new Grid(); Grid b = new Grid(); Grid c = new Grid() { BackgroundColor = Color.FromHex("#e6e6e6") }; for (var i = 0; i < 57; i++) { a.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); } for (var i = 0; i < 114; i++) { a.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); } b.RowDefinitions.Add(new RowDefinition { Height = new GridLength(6, GridUnitType.Absolute) }); b.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); b.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); b.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); b.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); c.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); c.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); var SBar = new SearchBar() { BackgroundColor = Color.White, Placeholder = "Ara", PlaceholderColor = Color.Gray, CancelButtonColor = Color.Black }; var top1 = new Image() { Source = "topluduzenle3.png" }; var top2 = new Image() { Source = "topluduzenle4.png" }; var top3 = new Image() { Source = "topluduzenle5.png" }; var top4 = new Image() { Source = "topluduzenle7.png" }; var geri = new Image() { Source = "geributonu2.png", HorizontalOptions = LayoutOptions.Start, Margin = new Thickness(10, 10, 0, 10), HeightRequest = 30, WidthRequest = 30 }; var Ust = new Image() { Source = "UstTabLogo.png", HorizontalOptions = LayoutOptions.Center, Margin = new Thickness(0, 10, 0, 10), HeightRequest = 30, WidthRequest = 30 }; ScrollView Liste = new ScrollView() { BackgroundColor = Color.White }; var gayagay = new Image() { Source = "gaydirganlik.png", VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand }; var gayagay1 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.FillAndExpand }; var gayagay2 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.FillAndExpand }; var gayagay3 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.FillAndExpand }; var gayagay4 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.FillAndExpand }; gayagay1.IsVisible = true; gayagay2.IsVisible = false; gayagay3.IsVisible = false; gayagay4.IsVisible = false; b.Children.Add(gayagay, 0, 0); Grid.SetColumnSpan(gayagay, 4); b.Children.Add(gayagay1, 0, 0); b.Children.Add(gayagay2, 1, 0); b.Children.Add(gayagay3, 2, 0); b.Children.Add(gayagay4, 3, 0); c.Children.Add(geri, 0, 0); c.Children.Add(Ust, 0, 0); a.Children.Add(c, 0, 0); Grid.SetColumnSpan(c, 57); Grid.SetRowSpan(c, 8); a.Children.Add(b, 0, 19); Grid.SetColumnSpan(b, 57); Grid.SetRowSpan(b, 2); a.Children.Add(top1, 5, 10); Grid.SetColumnSpan(top1, 8); Grid.SetRowSpan(top1, 8); a.Children.Add(top2, 18, 10); Grid.SetColumnSpan(top2, 8); Grid.SetRowSpan(top2, 8); a.Children.Add(top3, 31, 10); Grid.SetColumnSpan(top3, 8); Grid.SetRowSpan(top3, 8); a.Children.Add(top4, 44, 10); Grid.SetColumnSpan(top4, 8); Grid.SetRowSpan(top4, 8); a.Children.Add(SBar, 2, 21); Grid.SetColumnSpan(SBar, 53); Grid.SetRowSpan(SBar, 8); a.Children.Add(Liste, 0, 30); Grid.SetColumnSpan(Liste, 57); Grid.SetRowSpan(Liste, 83); var tapGestureRecognizer1 = new TapGestureRecognizer(); tapGestureRecognizer1.Tapped += (s, e) => { gayagay1.IsVisible = true; gayagay2.IsVisible = false; gayagay3.IsVisible = false; gayagay4.IsVisible = false; }; top1.GestureRecognizers.Add(tapGestureRecognizer1); var tapGestureRecognizer2 = new TapGestureRecognizer(); tapGestureRecognizer2.Tapped += (s, e) => { gayagay1.IsVisible = false; gayagay2.IsVisible = true; gayagay3.IsVisible = false; gayagay4.IsVisible = false; }; top2.GestureRecognizers.Add(tapGestureRecognizer2); var tapGestureRecognizer3 = new TapGestureRecognizer(); tapGestureRecognizer3.Tapped += (s, e) => { gayagay1.IsVisible = false; gayagay2.IsVisible = false; gayagay3.IsVisible = true; gayagay4.IsVisible = false; }; top3.GestureRecognizers.Add(tapGestureRecognizer3); var tapGestureRecognizer4 = new TapGestureRecognizer(); tapGestureRecognizer4.Tapped += (s, e) => { gayagay1.IsVisible = false; gayagay2.IsVisible = false; gayagay3.IsVisible = false; gayagay4.IsVisible = true; }; top4.GestureRecognizers.Add(tapGestureRecognizer4); var tapGestureRecognizer5 = new TapGestureRecognizer(); tapGestureRecognizer5.Tapped += async(s, e) => { geri.RotationX = 180; await Navigation.PopModalAsync(); }; geri.GestureRecognizers.Add(tapGestureRecognizer5); a.BackgroundColor = Color.FromHex("#eee"); SBar.Focus(); Content = a; }
/// <summary> /// constructor; builds the page and controls. /// </summary> public EmaWikiPage(PageService pageService, IExternalBrowserService externalBrowserService) { _pageService = pageService; _searchBar = new SearchBar { Placeholder = "Search in wiki", IsVisible = false }; _searchBar.SearchButtonPressed += SearchBarOnSearchButtonPressed; var syncProgress = new SyncProgressContentView {IsVisible = false}; SyncBootstrapper.ShowSyncProgressIn(syncProgress); //prominent: the webview. _webView = new EmaWebView(externalBrowserService); _webView.RequestPage += (sender, args) => GoTo(args.PageName); _webView.RequestEdit += (sender, args) => EditCurrentPage(); Content = new StackLayout { Children = { _searchBar, syncProgress, _webView } }; ToolbarItems.Add(new ToolbarItem { Text = "Home", Icon = "ic_menu_home.png", Command = new Command(() => GoTo(PageService.DefaultPage)), Order = ToolbarItemOrder.Primary }); ToolbarItems.Add(new ToolbarItem { Text = "Edit", Icon = "ic_menu_edit.png", Command = new Command(EditCurrentPage), Order = ToolbarItemOrder.Primary }); ToolbarItems.Add(new ToolbarItem { Text = "Search", Icon = "ic_menu_search.png", Order = ToolbarItemOrder.Secondary, Command = new Command(() => { _searchBar.Text = ""; _searchBar.IsVisible = !_searchBar.IsVisible; if (_searchBar.IsVisible) { _searchBar.Focus(); } }) }); ToolbarItems.Add(new ToolbarItem { Text = "Refresh", Command = new Command(Refresh), Order = ToolbarItemOrder.Secondary }); ToolbarItems.Add(new ToolbarItem { Icon = "ic_menu_upload.png", Text = "Synchronize", Command = new Command(async () => await Synchronize()), Order = ToolbarItemOrder.Secondary }); ToolbarItems.Add(new ToolbarItem { Text = "Preferences", Icon = "ic_menu_preferences.png", Command = new Command(Settings), Order = ToolbarItemOrder.Secondary }); }
void OnSearchBarIconTapped(object sender, EventArgs e) { viewModel.ShowSearchBarCommand.Execute(null); SearchBar.Focus(); }
private void Tapped_Search() { SearchBar.Focus(); SearchBar.IsVisible = !SearchBar.IsVisible ? true : false; }
protected void OnAppearing(Object sender, EventArgs e) { base.OnAppearing(); searchBar.Focus(); }
/// <summary> /// constructor; builds the page and controls. /// </summary> public EmaWikiPage(PageService pageService, IExternalBrowserService externalBrowserService) { _pageService = pageService; _searchBar = new SearchBar { Placeholder = "Search in wiki", IsVisible = false }; _searchBar.SearchButtonPressed += SearchBarOnSearchButtonPressed; var syncProgress = new SyncProgressContentView { IsVisible = false }; SyncBootstrapper.ShowSyncProgressIn(syncProgress); //prominent: the webview. _webView = new EmaWebView(externalBrowserService); _webView.RequestPage += (sender, args) => GoTo(args.PageName); _webView.RequestEdit += (sender, args) => EditCurrentPage(); Content = new StackLayout { Children = { _searchBar, syncProgress, _webView } }; ToolbarItems.Add(new ToolbarItem { Text = "Home", Icon = "ic_menu_home.png", Command = new Command(() => GoTo(PageService.DefaultPage)), Order = ToolbarItemOrder.Primary }); ToolbarItems.Add(new ToolbarItem { Text = "Edit", Icon = "ic_menu_edit.png", Command = new Command(EditCurrentPage), Order = ToolbarItemOrder.Primary }); ToolbarItems.Add(new ToolbarItem { Text = "Search", Icon = "ic_menu_search.png", Order = ToolbarItemOrder.Secondary, Command = new Command(() => { _searchBar.Text = ""; _searchBar.IsVisible = !_searchBar.IsVisible; if (_searchBar.IsVisible) { _searchBar.Focus(); } }) }); ToolbarItems.Add(new ToolbarItem { Text = "Refresh", Command = new Command(Refresh), Order = ToolbarItemOrder.Secondary }); ToolbarItems.Add(new ToolbarItem { Icon = "ic_menu_upload.png", Text = "Synchronize", Command = new Command(async() => await Synchronize()), Order = ToolbarItemOrder.Secondary }); ToolbarItems.Add(new ToolbarItem { Text = "Preferences", Icon = "ic_menu_preferences.png", Command = new Command(Settings), Order = ToolbarItemOrder.Secondary }); }
public void Focus() { SearchBar.Focus(FocusState.Programmatic); }
public void ClearSelectedTicket_OnClicked(object sender, EventArgs e) { SelectedTicket = null; SearchBar.Focus(); }
public Arama() { var o = new int(); Device.OnPlatform(iOS: () => o = 20, Android: () => o = 0); Padding = new Thickness(0, o, 0, 0); Grid a = new Grid(); Grid b = new Grid() { BackgroundColor = Color.FromHex("#e6e6e6"), }; ObservableCollection <Profile> plist = new ObservableCollection <Profile>(); ObservableCollection <Profile> plist2 = new ObservableCollection <Profile>(); List <NetWork> k = new List <NetWork>(); for (var i = 0; i < 57; i++) { a.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); } for (var i = 0; i < 114; i++) { a.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); } b.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) }); b.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); var SBar = new SearchBar() { BackgroundColor = Color.White, Placeholder = AppResource.agimplaceholder, PlaceholderColor = Color.Gray, CancelButtonColor = Color.Black }; var agimda = new Image() { Source = "agimda.png" }; var stats = new Image() { Source = "world.png" }; ScrollView Liste = new ScrollView() { BackgroundColor = Color.White }; var geri = new Image() { Source = "geributonu2.png", HorizontalOptions = LayoutOptions.Start, Margin = new Thickness(10, 10, 0, 10), HeightRequest = 30, WidthRequest = 30 }; var Ust = new Image() { Source = "UstTabLogo.png", HorizontalOptions = LayoutOptions.Center, Margin = new Thickness(0, 10, 0, 10), HeightRequest = 30, WidthRequest = 30 }; var gayagay = new Image() { Source = "gaydirganlik.png", VerticalOptions = LayoutOptions.EndAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand }; var gayagay1 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.EndAndExpand, HorizontalOptions = LayoutOptions.EndAndExpand }; var gayagay2 = new Image() { Source = "gaydirganlik2.png", VerticalOptions = LayoutOptions.EndAndExpand, HorizontalOptions = LayoutOptions.StartAndExpand }; gayagay1.IsVisible = true; gayagay2.IsVisible = false; var tapGestureRecognizer = new TapGestureRecognizer(); tapGestureRecognizer.Tapped += async(s, e) => { geri.RotationX = 180; await Navigation.PopModalAsync(); }; geri.GestureRecognizers.Add(tapGestureRecognizer); a.Children.Add(agimda, 10, 14); Grid.SetColumnSpan(agimda, 18); Grid.SetRowSpan(agimda, 18); a.Children.Add(stats, 28, 14); Grid.SetColumnSpan(stats, 18); Grid.SetRowSpan(stats, 18); a.Children.Add(gayagay, 0, 29); Grid.SetColumnSpan(gayagay, 57); Grid.SetRowSpan(gayagay, 2); a.Children.Add(gayagay1, 12, 29); Grid.SetColumnSpan(gayagay1, 14); Grid.SetRowSpan(gayagay1, 2); a.Children.Add(gayagay2, 30, 29); Grid.SetColumnSpan(gayagay2, 14); Grid.SetRowSpan(gayagay2, 2); a.Children.Add(SBar, 2, 9); Grid.SetColumnSpan(SBar, 53); Grid.SetRowSpan(SBar, 8); a.Children.Add(Liste, 0, 30); Grid.SetColumnSpan(Liste, 57); Grid.SetRowSpan(Liste, 83); b.Children.Add(geri, 0, 0); b.Children.Add(Ust, 0, 0); a.Children.Add(b, 0, 0); Grid.SetColumnSpan(b, 57); Grid.SetRowSpan(b, 8); a.BackgroundColor = Color.FromHex("#eee"); //ağım listesi list2.ItemTemplate = new DataTemplate(() => { Label nameLabel = new Label(); Label nameLabel1 = new Label(); nameLabel.SetBinding(Label.TextProperty, "FirstName"); nameLabel1.SetBinding(Label.TextProperty, "LastName"); return(new ViewCell { View = new StackLayout { Padding = new Thickness(0, 5), Orientation = StackOrientation.Horizontal, Children = { new StackLayout { VerticalOptions = LayoutOptions.Center, Orientation = StackOrientation.Horizontal, Spacing = 10, Children = { nameLabel, nameLabel1 } } } } }); }); list2.IsPullToRefreshEnabled = true; list2.Refreshing += async(s, e) => { var x = await GirisSayfasi.manager.GetNetWorksAsync(GirisSayfasi.manager.prof); plist2 = x.Item1; k = x.Item2; if (plist2 != null) { foreach (var z in plist2) { if (z.FirstName == null) { z.FirstName = ""; } if (z.LastName == null) { z.LastName = ""; } } list2.ItemsSource = plist2; } list2.EndRefresh(); }; list2.ItemSelected += async(s, e) => { var yeniProfil = list2.SelectedItem as NoteWork.Modals.Profile; var nets = k.Find(items => items.FPID == GirisSayfasi.manager.prof.ID && items.SPID == yeniProfil.ID); var bool1 = await GirisSayfasi.manager.IsNetWork(yeniProfil); Navigation.PushModalAsync(new BaskasininProfili(yeniProfil, nets, bool1)); }; a.Children.Add(list2, 2, 35); Grid.SetColumnSpan(list2, 53); Grid.SetRowSpan(list2, 60); //ağım listesi sonu //dünya listesi list.ItemTemplate = new DataTemplate(() => { Label nameLabel = new Label(); Label nameLabel1 = new Label(); nameLabel.SetBinding(Label.TextProperty, "FirstName"); nameLabel1.SetBinding(Label.TextProperty, "LastName"); return(new ViewCell { View = new StackLayout { Padding = new Thickness(0, 5), Orientation = StackOrientation.Horizontal, Children = { new StackLayout { VerticalOptions = LayoutOptions.Center, Orientation = StackOrientation.Horizontal, Spacing = 10, Children = { nameLabel, nameLabel1 } } } } }); }); list.IsPullToRefreshEnabled = true; list.Refreshing += async(s, e) => { plist = await GirisSayfasi.manager.GetProfileAsync(); if (plist != null) { foreach (var z in plist) { if (z.FirstName == null) { z.FirstName = ""; } if (z.LastName == null) { z.LastName = ""; } } list.ItemsSource = plist; } list.EndRefresh(); }; var bos = new NetWork() { ID = "", SPID = "", FPID = "", Distinctive = "", FirstImpression = "", MeetState = "", MeetWhen = "", MeetWhere = "", NetWorks = "", }; list.ItemSelected += async(s, e) => { var yeniProfil = list.SelectedItem as NoteWork.Modals.Profile; var nets = bos; var bool1 = await GirisSayfasi.manager.IsNetWork(yeniProfil); await Navigation.PushModalAsync(new BaskasininProfili(yeniProfil, nets, bool1)); }; a.Children.Add(list, 2, 35); Grid.SetColumnSpan(list, 53); Grid.SetRowSpan(list, 60); //dünya listesi sonu list.IsVisible = false; list2.IsVisible = true; //butonlar var tapGestureRecognizer1 = new TapGestureRecognizer(); tapGestureRecognizer1.Tapped += (s, e) => { gayagay1.IsVisible = true; gayagay2.IsVisible = false; list.IsVisible = false; list2.IsVisible = true; }; agimda.GestureRecognizers.Add(tapGestureRecognizer1); var tapGestureRecognizer2 = new TapGestureRecognizer(); tapGestureRecognizer2.Tapped += (s, e) => { gayagay1.IsVisible = false; gayagay2.IsVisible = true; list.IsVisible = true; list2.IsVisible = false; }; stats.GestureRecognizers.Add(tapGestureRecognizer2); //butonların sonu SBar.Focus(); SBar.TextChanged += (s, e) => { if (list.IsVisible == true) { if (string.IsNullOrWhiteSpace(e.NewTextValue)) { list.ItemsSource = plist; } else { //|| i.LastName.Contains(e.NewTextValue)|| i.MiddleName.Contains(e.NewTextValue) try { string[] slist = e.NewTextValue.Split(' '); List <Profile> prlist = new List <Profile>(); for (var z = 0; z < slist.Length; z++) { if (!string.IsNullOrWhiteSpace(slist[z].ToLower())) { prlist.AddRange(plist.Where(i => i.FirstName.ToLower().Contains(slist[z].ToLower()) || i.LastName.ToLower().Contains(slist[z].ToLower())).OrderBy(c => c.FirstName).Except(prlist.ToList()).ToList()); } } ; list.ItemsSource = prlist; } catch (Exception ex) { // DisplayAlert("", ex.Message, "ok"); } } } if (list2.IsVisible == true) { if (string.IsNullOrWhiteSpace(e.NewTextValue)) { list2.ItemsSource = plist2; } else { //|| i.LastName.Contains(e.NewTextValue)|| i.MiddleName.Contains(e.NewTextValue) try { string[] slist = e.NewTextValue.Split(' '); List <Profile> prlist = new List <Profile>(); for (var z = 0; z < slist.Length; z++) { if (!string.IsNullOrWhiteSpace(slist[z].ToLower())) { prlist.AddRange(plist2.Where(i => i.FirstName.ToLower().Contains(slist[z].ToLower()) || (i.LastName != null && i.LastName.ToLower().Contains(slist[z].ToLower())) || (i.AssistantName != null && i.AssistantName.ToLower().Contains(slist[z].ToLower())) || (i.City != null && i.City.ToLower().Contains(slist[z].ToLower())) || (i.Company != null && i.Company.ToLower().Contains(slist[z].ToLower())) || (i.EMail != null && i.EMail.ToLower().Contains(slist[z].ToLower())) || (i.HighSchool != null && i.HighSchool.ToLower().Contains(slist[z].ToLower())) || (i.Hobbies != null && i.Hobbies.ToLower().Contains(slist[z].ToLower())) || (i.HomeAddress != null && i.HomeAddress.ToLower().Contains(slist[z].ToLower())) || (i.Hometown != null && i.Hometown.ToLower().Contains(slist[z].ToLower())) || (i.JobState != null && i.JobState.ToLower().Contains(slist[z].ToLower())) || (i.JobTitle != null && i.JobTitle.ToLower().Contains(slist[z].ToLower())) || (i.OfficeAddress != null && i.OfficeAddress.ToLower().Contains(slist[z].ToLower())) || (i.PreviousCompanies != null && i.PreviousCompanies.ToLower().Contains(slist[z].ToLower())) || (i.Profficiencies != null && i.Profficiencies.ToLower().Contains(slist[z].ToLower())) || (i.Projects != null && i.Projects.ToLower().Contains(slist[z].ToLower())) || (i.Sertificates != null && i.Sertificates.ToLower().Contains(slist[z].ToLower())) || (i.Sports != null && i.Sports.ToLower().Contains(slist[z].ToLower())) || (i.Team != null && i.Team.ToLower().Contains(slist[z].ToLower())) || (i.TelNo != null && i.TelNo.ToLower().Contains(slist[z].ToLower())) || (i.Travels != null && i.Travels.ToLower().Contains(slist[z].ToLower())) || (i.Universities != null && i.Universities.ToLower().Contains(slist[z].ToLower())) ).OrderBy(c => c.FirstName).Except(prlist.ToList()).ToList()); var ld = k.Where(j => (j.MeetWhen != null && j.MeetWhen.ToLower().Contains(slist[z].ToLower())) || (j.MeetWhere != null && j.MeetWhere.ToLower().Contains(slist[z].ToLower())) || (j.MeetState != null && j.MeetState.ToLower().Contains(slist[z].ToLower())) || (j.NetWorks != null && j.NetWorks.ToLower().Contains(slist[z].ToLower())) || (j.Distinctive != null && j.Distinctive.ToLower().Contains(slist[z].ToLower())) || (j.FirstImpression != null && j.FirstImpression.ToLower().Contains(slist[z].ToLower()))).Select(dd => dd.SPID).ToList(); foreach (var bb in ld) { prlist.AddRange(plist2.Where(bd => bd.ID == bb).Except(prlist.ToList()).ToList()); } } } ; list2.ItemsSource = prlist; } catch (Exception ex) { // DisplayAlert("", ex.Message, "ok"); } } } }; list.BeginRefresh(); list2.BeginRefresh(); Content = a; }