Set focus to textbox in Microsoft Silverlight

4 Comments

If you want to set the focus on a textbox in Microsoft Silverlight, use the Loaded event and the System.Windows.Browser.HtmlPage.Plugin.Focus() prior to calling Control.Focus() using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using

How to get all items from a list that are not unique with LINQ and C#

0 Comments

If you want to get all items from a list that are not unique with LINQ and C#, you can use: using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; namespace Ada.Cdf.Test

How to count items per category with LINQ and C#

0 Comments

If you want to count items per category with LINQ in C#, you van use: using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; namespace Ada.Cdf.Test { [TestFixture] public class IntegrationTester {

Get index of an item with LINQ and C#

3 Comments

If you want to use the index of an item with LINQ in C#, you can use the “index” statement: using System; using System.Collections.Generic; using System.Linq; using System.Text; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; namespace Ada.Cdf.Test {