예제 #1
0
        //------------------------------------------------------END ROUTING-----------------------------------------------//



        void Entry_TextChanged(object sender, TextChangedEventArgs e)
        {
            var oldText = e.OldTextValue;
            var newText = e.NewTextValue;
            var test2   = VenueService.GetShowareFirst();

            if (string.IsNullOrEmpty(e.NewTextValue))
            {
                SearchView.ItemsSource = VenueService.GetShowareFirst();
            }
            else
            {
                SearchView.ItemsSource = test2.Where(x => x.IconName.StartsWith(e.NewTextValue, StringComparison.Ordinal));
            }
        }
예제 #2
0
        public MapView()
        {
            InitializeComponent();

            topSearch.IsVisible        = false;
            topSearchView.IsVisible    = false;
            goIcon.IsVisible           = false;
            bottomSearch.IsVisible     = false;
            bottomSearchView.IsVisible = false;
            xIcon.IsVisible            = false;
            SearchView.IsVisible       = false;

            map = LevelService.GetLevel();

            SearchView.ItemsSource = VenueService.GetShowareFirst();
            LevelView.ItemsSource  = LevelService.GetLevel();

            LevelView.IsVisible       = false;
            LevelName.IsVisible       = false;
            LevelBackground.IsVisible = false;
        }