Skip to content

Commit 0036158

Browse files
authored
Merge pull request #1 from SuthiYuvaraj/master
MAUI-3771: Updated Sample
2 parents 4b49368 + 4a65fe9 commit 0036158

File tree

2 files changed

+85
-85
lines changed

2 files changed

+85
-85
lines changed

ListViewMaui/Model/PlaceInfoRepository.cs

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
9696

9797
readonly string[] Place1Description = new string[]
9898
{
99-
"Central Park is an urban park & fifth largest park in New York City.",
100-
"The Metropolitan Museum is the largest art museum in the Western Hemisphere.",
99+
"Central Park is an urban park and the fifth largest park in New York City.",
100+
"The Metropolitan Museum is the largest art museum in the western hemisphere.",
101101
"The Statue of Liberty is a colossal neoclassical sculpture on Liberty Island.",
102-
"The Empire State Building is a 102-story Art Deco skyscraper in Mid-Manhattan.",
103-
"The Solomon R. Guggenheim Museum is an art museum, Manhattan in New York City. ",
104-
"Times Square is a tourist destination in Mid-Manhattan and More.",
102+
"The Empire State Building is a 102-story art deco skyscraper in mid-Manhattan.",
103+
"The Solomon R. Guggenheim Museum is an art museum in Manhattan.",
104+
"Times Square is a tourist destination in mid-Manhattan.",
105105
"The Brooklyn Bridge is a hybrid cable-stayed bridge in New York City.",
106-
"It is a natural history museum on the Upper West Side of Manhattan, New York City.",
106+
"The American Museum of Natural History sits in the Upper West Side of Manhattan.",
107107

108108
};
109109
readonly string[] Place2 = new string[]
@@ -120,13 +120,13 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
120120

121121
readonly string[] Place2Description = new string[]
122122
{
123-
"The one-mile-wide strait connecting San Francisco Bay and the Pacific Ocean.",
124-
"Alcatraz Island is a small island in San Francisco Bay,California.",
125-
"It is a modern & contemporary art museum in San Francisco.",
126-
"The Park is a large urban park consisting of 1,017 acres of public grounds.",
127-
"The California Academy is a research institute & natural history museum.",
128-
"It is famous for a steep and one-block section with eight hairpin turns.",
129-
"It is located on Mount Tamalpais near the Pacific coast, California.",
123+
"This bridge crosses the one-mile-wide strait between San Francisco Bay and the Pacific Ocean.",
124+
"Alcatraz is a former prison on a small island in the San Francisco Bay.",
125+
"A modern and contemporary art museum in San Francisco.",
126+
"The park is a large urban park consisting of 1,017 acres of public grounds.",
127+
"The California Academy of Sciences is a research institute and natural history museum.",
128+
"Lombard St. is famous for a steep one-block section with eight hairpin turns.",
129+
"Muir Woods protects an old-growth redwood forest on Mount Tamalpais.",
130130

131131
};
132132
readonly string[] Place3 = new string[]
@@ -143,14 +143,14 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
143143

144144
readonly string[] Place3Description = new string[]
145145
{
146-
"The Art Institute of Chicago have been a fixture on the creative landscape.",
147-
"It is a natural history museum and one of the largest such museums in the world. ",
148-
"Navy Pier is a 3,300-foot-long pier on the shoreline of Lake Michigan, Chicago.",
146+
"The Art Institute of Chicago is the second-largest art museum in the USA.",
147+
"The Field Museum is one of the largest natural history museums in the world. ",
148+
"Navy Pier is a 3,300-foot-long pier and tourist attraction on the shore of Lake Michigan.",
149149
"Millennium Park is a public park located in the Loop community area of Chicago.",
150-
"Shedd Aquarium is an indoor public aquarium and Opened on May 30, 1930.",
151-
"The Lincoln Park Zoo is a 35-acre zoo in Lincoln Park, Chicago, Illinois.",
150+
"Shedd Aquarium is an indoor public aquarium that opened in 1930.",
151+
"The Lincoln Park Zoo is a 35-acre zoo opened in 1868 in Chicago.",
152152
"The Cloud Gate is a public sculpture by Indian-born British artist Anish Kapoor.",
153-
"The Willis Tower is a 108-story, 1,450-foot skyscraper in Chicago.",
153+
"At 108 stories, the Willis Tower was the world’s tallest skyscraper for 25 years.",
154154

155155
};
156156
readonly string[] Place4 = new string[]
@@ -168,15 +168,15 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
168168

169169
readonly string[] Place4Description = new string[]
170170
{
171-
"Yosemite Falls is the highest waterfall in Yosemite National Park, Sierra Nevada.",
171+
"Yosemite Falls is the highest waterfall in Yosemite National Park.",
172172
"The Half Dome is a granite dome at the eastern end of Yosemite Valley.",
173-
"Glacier Point is a viewpoint above Yosemite Valley in California.",
174-
"The El Capitan is a vertical rock formation in Yosemite National Park.",
173+
"Glacier Point is a viewpoint above Yosemite Valley.",
174+
"The El Capitan is a vertical rock formation in Yosemite National Park popular with climbers.",
175175
"The Yosemite Valley is a glacial valley in Yosemite National Park.",
176-
"The Tunnel View is a scenic viewpoint on California State Route 41. ",
177-
"The Bridalveil Fall is one of the most prominent waterfalls in Yosemite Valley.",
178-
"The Ahwahnee Hotel is a grand hotel in Yosemite National Park, California.",
179-
"The Tuolumne Meadows is a gentle, dome- studded, and sub-alpine meadow area.",
176+
"The Tunnel View is a scenic viewpoint on California State Route 41.",
177+
"Fed by Ostrander Lake, Bridalveil Fall is one of the tallest waterfalls in Yosemite Valley.",
178+
"The Ahwahnee Hotel is a grand hotel in Yosemite National Park.",
179+
"The Tuolumne Meadows is a gentle, dome- studded, sub-alpine meadow area.",
180180

181181
};
182182
readonly string[] Place5 = new string[]
@@ -193,14 +193,14 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
193193

194194
readonly string[] Place5Description = new string[]
195195
{
196-
"The White House is the official residence of the US president in Washington DC.",
197-
"The Capitol is the seat of the US Congress in Washington DC.",
198-
"The Smithsonian is a group of museums, education, and research centers etc.",
199-
"The Lincoln Memorial is built to honor the 16th president of the U.S, Abraham Lincoln.",
200-
"The National Gallery of Art is a national art museum in Washington DC, United States.",
201-
"It was founded in 1910 and is based in Washington, District of Columbia.",
202-
"The Washington Monument is an obelisk within the National Mall in Washington DC.",
203-
"It was established in 1946 as the National Air Museum.",
196+
"The White House is the official residence of the U.S. president in Washington, D.C.",
197+
"The Capitol building is the seat of the U.S. Congress.",
198+
"The Smithsonian is the largest group of museums, education and research centers in the world.",
199+
"The Lincoln Memorial was built to honor the 16th president of the U.S., Abraham Lincoln.",
200+
"The National Gallery of Art collects and exhibits Western art in Washington, D.C.",
201+
"Founded in 1910, this Smithsonian branch contains the largest natural history collection in the world.",
202+
"The Washington Monument is a 169-meter tall obelisk in the National Mall.",
203+
"The Air and Space Museum displays pieces like the first airplane and the command module of Apollo 11.",
204204

205205
};
206206
readonly string[] Place6 = new string[]
@@ -219,15 +219,15 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
219219

220220
readonly string[] Place6Description = new string[]
221221
{
222-
"It is a visual arts museum that offers a collection of paintings, photography etc.",
223-
"Disneyland is a theme park in Anaheim, California, which was opened in 1955.",
224-
"The Santa Monica Pier is a large double jointed pier at the foot of Colorado Avenue.",
225-
"It is a popular tourist attraction with a close view of the Hollywood Sign.",
226-
"It is a campus of the Getty Museum & other programs of the Getty Trust. ",
227-
"The Universal Studios Hollywood is a film studio and theme park.",
228-
"The Hollywood Sign is an American landmark and cultural icon.",
229-
"It is a collections-based educational and research institution.",
230-
"The Broad is a contemporary art museum on Grand Avenue in Los Angeles.",
222+
"A visual arts museum that offers a collection of paintings, photography, etc.",
223+
"Disneyland is a theme park in Anaheim, California, which opened in 1955.",
224+
"The Santa Monica Pier is a large, double-jointed pier with an amusement park.",
225+
"A popular tourist attraction with a close view of the Hollywood Sign.",
226+
"The campus of the Getty Museum and other programs of the Getty Trust.",
227+
"Universal Studios Hollywood is a film studio and theme park.",
228+
"Hollywoodis famously spelled out in 45-foot-high letters on Mount Lee.",
229+
"The Huntington exhibits rare American and European books and art and promotes research.",
230+
"The Broad is a contemporary art museum on Grand Avenue in L.A. ",
231231

232232
};
233233
readonly string[] Place7 = new string[]
@@ -243,11 +243,11 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
243243
readonly string[] Place7Description = new string[]
244244
{
245245
"It is the 20th largest art museum in the world, measured by the public gallery area.",
246-
"The Isabella Stewart Gardner Museum is an art museum in Boston, Massachusetts.",
247-
"The Museum of Science (MoS) is a science museum and indoor zoo in Boston.",
248-
"Fenway Park is a baseball stadium in Boston, near Kenmore Square. ",
249-
"The Faneuil Hall is a marketplace and meeting hall located near the waterfront.",
250-
"Boston Children's Museum is the second oldest children's museum in US.",
246+
"The Isabella Stewart Gardner Museum is an art museum in Boston.",
247+
"The Museum of Science contains 700 exhibits and an indoor zoo in Boston.",
248+
"Fenway Park is a baseball stadium in Boston, home of the Red Sox team. ",
249+
"Faneuil Hall is a marketplace and meeting hall from 1742 located near the waterfront.",
250+
"Boston Children's Museum is the second oldest children's museum in the U.S.",
251251

252252
};
253253
readonly string[] Place8 = new string[]
@@ -262,12 +262,12 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
262262

263263
readonly string[] Place8Description = new string[]
264264
{
265-
"The Space Needle is an observation tower & Considered to be an icon of the city.",
266-
"It was founded by Microsoft co-founder Paul Allen in 2000.",
267-
"The Chihuly Garden and Glass is an exhibit in the Seattle Center.",
268-
"The Pike Place Market is a public market & opened on August 17, 1907.",
269-
"Its collections include African arts, American arts, decorative arts etc.",
270-
"The Discovery Park is a 534-acre park, Washington.",
265+
"The Space Needle is an observation tower and an icon of Seattle.",
266+
"MoPOP celebrates the music, films, video games, and fiction writing.",
267+
"The Chihuly Garden and Glass is an exhibit of glass art in the Seattle Center.",
268+
"Pike Place Market is a famous public market where Starbucks originated.",
269+
"The Seattle Art Museum’s collections include African, American, and decorative arts.",
270+
"At 534 acres, Discovery Park is Seattle’s largest public park.",
271271
};
272272
readonly string[] Place9 = new string[]
273273
{
@@ -279,10 +279,10 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
279279

280280
readonly string[] Place9Description = new string[]
281281
{
282-
"Outdoor museum with creative street art.",
282+
"An outdoor museum with creative street art.",
283283
"The Miami Seaquarium is a 38-acre oceanarium. It was founded in 1955.",
284+
"An 83-acre botanic garden known for collections of rare tropical plants.",
284285
"Interactive exhibits, classes, and shows.",
285-
"This park includes the Cape Florida Light.",
286286

287287
};
288288
readonly string[] Place10 = new string[]
@@ -300,14 +300,14 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
300300

301301
readonly string[] Place10Description = new string[]
302302
{
303-
"The Bellagio Resort and Casino is a building in Las Vegas, USA.",
304-
"The MGM Grand Las Vegas is a hotel and casino located on the Las Vegas Strip.",
305-
"The Las Vegas Strip is a stretch of Las Vegas Boulevard South in Clark County.",
306-
"It is an area managed by the Bureau of Land Management.",
307-
"The Mirage is a casino resort on the Las Vegas Strip in Paradise, Nevada.",
308-
"The Stratosphere Tower is a building in Las Vegas, Nevada, United States.",
309-
"The Neon Museum features signs from old casinos & other businesses.",
310-
"Its facilities and services include hotel rooms, entertainment shows etc. ",
303+
"The Bellagio Resort and Casino is a hotel on the Las Vegas Strip with an Italian theme.",
304+
"The MGM Grand is a hotel and casino located on the Las Vegas Strip.",
305+
"The Las Vegas Strip is the part of Las Vegas Boulevard South lined with famous casinos.",
306+
"This conservation area is popular for hiking, climbing, and bicycling.",
307+
"The Mirage is a casino resort on the Las Vegas Strip.",
308+
"The Strat Tower is a casino in Las Vegas with the tallest observation tower in the U.S.",
309+
"The Neon Museum features signs from old casinos and other businesses.",
310+
"The New York-New York is a hotel and casino on the Las Vegas Strip.",
311311
};
312312
readonly string[] Place11 = new string[]
313313
{
@@ -321,11 +321,11 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
321321

322322
readonly string[] Place11Description = new string[]
323323
{
324-
"Balboa Park is a 1,200-acre historic urban cultural park in San Diego.",
325-
"SeaWorld San Diego is an animal theme park, oceanarium, outside aquarium.",
324+
"Balboa Park is a 1,200-acre park with theaters, museums, a zoo, and outdoor space.",
325+
"SeaWorld San Diego is a marine theme park.",
326326
"The USS Midway Museum is a historical naval aircraft carrier museum.",
327-
"Cabrillo National Monument is at the southern tip of the Point Loma Peninsula.",
328-
"La Jolla Cove is a small cove with a beach that is surrounded by cliffs in La Jolla.",
327+
"Cabrillo National Monument commemorates where Europeans first landed on the west coast of the U.S.",
328+
"La Jolla Cove is a small cove with a beach that is surrounded by cliffs.",
329329

330330
};
331331
readonly string[] Place12 = new string[]
@@ -340,11 +340,11 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
340340

341341
readonly string[] Place12Description = new string[]
342342
{
343-
"Its aquarium acts as an aquatic science education institution.",
344-
"Zoo Atlanta is an Association of Zoos and Aquariums accredited zoological park.",
343+
"The Georgia aquarium is the largest in the States and is an aquatic education institution.",
344+
"Zoo Atlanta began in 1889 with the donation of former circus animals.",
345345
"The Atlanta Botanical Garden is a 30 acres botanical garden.",
346-
"Piedmont Park is an urban park, the land was owned by Dr. Benjamin Walker.",
347-
"Centennial Olympic Park is a 22-acre public park in downtown Atlanta, Georgia.",
346+
"Piedmont Park is an expanding urban park with playgrounds and athletic facilities.",
347+
"Centennial Olympic Park is a 22-acre public park built for the 1996 Summer Games.",
348348

349349
};
350350
readonly string[] Place13 = new string[]
@@ -359,10 +359,10 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
359359

360360
readonly string[] Place13Description = new string[]
361361
{
362-
"The National WWII Museum, is a military history museum.",
362+
"The National WWII Museum is a military history museum.",
363363
"Jackson Square is a historic park in the French Quarter of New Orleans.",
364-
"Bourbon Street is a historic street in the heart of the French Quarter.",
365-
"It is the seat of the Roman Catholic Archdiocese of New Orleans.",
364+
"Bourbon Street is party central for the French Quarter, lined with bars and clubs.",
365+
"City Park is a 1,300-acre public park in northern New Orleans with a botanic garden.",
366366

367367
};
368368
readonly string[] Place14 = new string[]
@@ -378,11 +378,11 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
378378
readonly string[] Place14Description = new string[]
379379
{
380380
"The Walt Disney World Resort, is an entertainment resort complex.",
381-
"Magic Kingdom Park is a theme park at the Walt Disney World Resort in Bay Lake.",
382-
"Epcot is a theme park at the Walt Disney World Resort.",
383-
"Disney's Hollywood Studios is a theme park at the Walt Disney World Resort.",
384-
"Disney's Animal Kingdom Theme Park is a zoological theme park.",
385-
"Universal Studios Florida is a theme park and opened to the public on June 7, 1990.",
381+
"The Magic Kingdom is a Disney theme park designed for families with small children.",
382+
"Epcot is a Disney theme park with an international theme.",
383+
"Disney's Hollywood Studios is a theme park based on film, TV, and music.",
384+
"Disney's Animal Kingdom centers around a zoological theme.",
385+
"Universal Studios Florida is a theme park dedicated to the entertainment industry.",
386386

387387
};
388388
readonly string[] Place15 = new string[]
@@ -395,10 +395,10 @@ public ObservableCollection<PlaceInfo> GenerateTouristPlaces(int index)
395395

396396
readonly string[] Place15Description = new string[]
397397
{
398-
"The 23-acre park contains a conservatory, a variety of theme gardens.",
399-
"Elitch Gardens Theme & Water Park is an amusement park in Denver, Colorado.",
400-
"Coors Field is a baseball stadium in downtown Denver, Colorado.",
401-
"The Colorado State Capitol Building, located at 200 East Colfax Avenue in Denver.",
398+
"The 23-acre park contains a conservatory and many themed gardens.",
399+
"Elitch Gardens Theme and Water Park is an amusement park in Denver.",
400+
"Coors Field is a baseball stadium in downtown Denver.",
401+
"The Colorado State Capitol Building houses the state’s General Assembly.",
402402
};
403403
#endregion
404404
}

ListViewMaui/View/HorizontalOrientation.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<RowDefinition Height="40"/>
2727
<RowDefinition Height="*"/>
2828
</Grid.RowDefinitions>
29-
<Label Grid.Row="0" Text="Tourist Places near by" FontSize="16" TextColor="#E3000000" FontFamily="Roboto-Medium" CharacterSpacing="0.25" Margin="16,10,0,0"/>
29+
<Label Grid.Row="0" Text="Tourist Destinations Near:" FontSize="16" TextColor="#E3000000" FontFamily="Roboto-Medium" CharacterSpacing="0.25" Margin="16,10,0,0"/>
3030
<ListView:SfListView x:Name="listView" Grid.Row="1"
3131
ItemsSource="{Binding Places}"
3232
ScrollBarVisibility="Never"

0 commit comments

Comments
 (0)