This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition/> | |
<ColumnDefinition/> | |
<ColumnDefinition/> | |
</Grid.ColumnDefinitions> | |
</Grid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ListView> | |
<ListView.ItemContainerStyle> | |
<Style TargetType="ListViewItem"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate> | |
<ContentPresenter/> | |
</ControlTemplate> | |
</Setter.Value> | |
</Setter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some data to work with | |
List<string> countries = {"Argentina", "Australia", "Belgium", "Chile", "Denmark", "Fiji", "Germany", "Greece"}; | |
// Using a foreach loop | |
var filteredList = new List<string>(); | |
foreach(var c in countries) | |
{ | |
if (c.Contains("e")) | |
{ | |
filteredList.Add(c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Some data to work with | |
List<string> countries = {"Argentina", "Australia", "Belgium", "Chile", "Denmark", "Fiji", "Germany", "Greece"}; | |
// Using a foreach loop | |
var newList = new List<string>(); | |
foreach(var c in countries) | |
{ | |
if (c.Contains("e")) | |
{ | |
newList.Add(c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x => /*some code goes here*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<string> countries = {"Argentina", "Australia", "Belgium", "Chile", "Denmark", "Fiji", "Germany", "Greece"}; | |
var newList = from c in countries | |
where c.Contains("e") | |
select c.ToUpper(); |
NewerOlder