Categories C#

Windows Phone 7 Mango

Well, I got a Samsung Focus S to play around with this weekend and test the windows phone 7 OS out.  Overall, I liked it, but I can’t switch from iOS just yet. UI The “Metro” UI is actually quite nice, I found it easy to use and find everything.  […]

WPF Dynamically Added Controls and Getting Values

Today’s challenge was fun. I had added a bunch of textboxes and labels to a Grid with 2 StackPanel in my code behind. StackPanel sp1 = new StackPanel(); StackPanel sp2 = new StackPanel(); Grid g = new Grid(); ColumnDefinition colDef1 = new ColumnDefinition {Width = new GridLength(50)}; ColumnDefinition colDef2 = […]

Writing Out LINQ to XML Documents to CSV Text Files

This may sound stupid, but I wanted to store some text parsing I was doing for some VDP projects in LINQ to XML XDocuments. So, I created the following:XDocument recs = new XDocument();XElement records1 = new XElement(“Records”);XElement record1 = new XElement(“Record”);record1.Add(new XElement(“id”, “1”),new XElement(“Name”,”Test”),new XElement(“Address”,”123 Anywhere”));records1.Add(record1);recs.Add(records1);which should create an xml […]