Here I am sharing my technology experience and some technical issues I came across on C#, Asp.Net, SharePoint 2010/2013, Silverlight, WPF, HTML, JavaScript, JQuery, User Controls, Custom Controls, CSS, Azure, Angular JS, React JS, Python, Spark, and Kafka.
Wednesday, September 09, 2009
Billiards Game developed in Silverlight
How to get content and text of each element of a Window
foreach (UIElement oObject in this.LayoutRoot.Children)
}
Tuesday, September 08, 2009
Silverlight ComBoBox Selected Item not Setting
<UserControl x:Class="WorldOfVenkat.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="900" Height="600">
<Canvas x:Name="LayoutRoot" Background="Black">
<ComboBox Name="comBoBox" Width="400" Height="30" ></ComboBox></Canvas>
</UserControl>
Code behind in C#public partial class Page : UserControl
{ public Page(){
InitializeComponent(); BindComBoBox(); }private void BindComBoBox()
{List<Country> coutries = new List<Country>();
Country India = new Country(1,"India");Country USA = new Country(2, "USA");
Country Canada = new Country(3,"Canada");coutries.Add(India);
coutries.Add(USA);coutries.Add(Canada);
comBoBox.ItemsSource = coutries; comBoBox.DisplayMemberPath = "Name"; comBoBox.SelectedItem = Canada;}
public class Country{
public int ID { get; set; }public string Name { get; set; }
public Country(int id,string name)
{ID = id;
Name = name;}
} }