WCF/WF - View model in itemcontrol itemsource
Asked By Lavinia Rayan on 28-Jun-12 06:59 AM
Hi,
How to assign view model object to itemcontrol itemsource?
Ravichandran K replied to Lavinia Rayan on 07-Sep-12 12:06 AM
<ItemsControlItemsSource="{BindingPath=Items}"HorizontalAlignment="Center"VerticalAlignment="Center">
<ItemsControl.ItemTemplate>
<DataTemplate>
<local:ChildView>
</local:ChildView>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
A solution to this may look like this;
<ItemsControl ItemsSource="{Binding Path=Items}" HorizontalAlignment="Center" VerticalAlignment="Center">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding}" Visibility="Collapsed" x:Name="HiddenTextBlock"/>
<local:ChildView>
<local:BindingBehaviors.ObjectToObjectBinding>
<local:ObjectToObjectBinding Source="{Binding Path=Text, ElementName=HiddenTextBlock}" Target="{Binding Path=MyProperty, Mode=TwoWay}"/>
</local:BindingBehaviors.ObjectToObjectBinding>
</local:ChildView>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
you can reach out more information from below link....
http://blogs.profitbase.com/tsenn/?p=56
http://stackoverflow.com/questions/1664399/can-i-declaratively-bind-an-itemscontol-itemssource-to-an-observablecollection-i

What is the purpose of Silverlight? Why it is used? How can I use silverlight in my application? Any simple web example of silverlight with VS 2005 and .Net Framework 2.0 (not the Hellow world Application). ? I want to start with Silverlight and I am very new to Silverlight. What is Silverlight? Microsoft Silverlight is a web browser plugin that provides support for rich internet applications such
What is SilverLight, its concept, why to use it and how to use it What is Silverlight? Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, Opera. The plugin required to run Silverlight is very small in size hence gets installed very quickly. It is combination of different platform that allows you to select tools and the programming language you want to use. Silverlight integrates seamlessly with your existing Javascript and ASP.NET AJAX code to complement functionality which you have already created. Silverlight aims to compete with Adobe Flash and the presentation components of Ajax . It also competes with Sun Microsystems' JavaFX, which was launched a few days after Silverlight. Currently there are 2 versions of Silverlight: Silverlight 1.0 : Silverlight 1.0 consists of
hi, plz ans me. . . Regards, Tanmay Custom binding has a limit of 64K keywords: Silverlight, Silverlight WPF, WPF, Custom binding, maximum limit description: finding maximum limit for binding in silverlight hi, plz ans me. . . Regards, Tanmay 06-Jun-13 10:15 AM
how to group the data in datagrid Hi go through the below link http: / / timheuer.com / blog / archive / 2009 / 04 / 08 / grouping-in-silverlight-datagrid.aspx keywords: Silverlight, Silverlight WPF, grouping, WPF, datagrid Silverlight, grouping data, datagrid description: grouping data in datagrid in silverlight how to group the data in datagrid 06-Jun-13 10:01 AM
if one person has gain master in silverlight than wiil this help him in learning wpf Hi Malik, WPF has a more advanced and mature XAML support than Silverlight. Silverlight used to be called (WPF / E) and is a subset of the WPF XAML design well and other items. WPF is hardware accelerated and supports things like GPU shaders which Silverlight 2 does not. Silverlight 2 does have the VisualStateManager inside Blend 2, which I think WPF needs an add on and a tweak to work. I think that is the only case where Silverlight 2 XAML was / is slightly ahead of WPF's. Here is a link on XAML
hai am working in windows application.now i want to use silverlight, is it possible? Hi. . SilverLight is used for web pages. . if you want rich ui in you windows app then you can go for WPF application. hi, Silverlight is primarly for web pages, so you use silverlight only for asp.net. If you want to use something similar to Silverlight in your Windows Forms applications, I would recommend to use WPF . WPF provides an even richer feature set than Silverlight. In addition, you can more easily use WPF within your Windows Forms applications. Hope this
Hi friends , i want to learn silverlight , actually i don't have any idea about silver light, what he is or what we can do using silverlight, but in new interview there r so amny quetion tat , have worked on silverlight, so plz send me some link or referrer some book for silverlight There are many resources on net you can search for this and I would recommend you to begin with noen other than official site for silverlight site http: / / silverlight.net / and http: / / www.microsoft.com / SILVERLIGHT / you can visit this link to basic level
This explain how to access ASP.NET Session in Silverlight To begin with Silverlight cannot access Session of ASP.NET as Silverlight is on client side and ASP.NET is server side and there is no direct communications between both. Now, the question is how to access ASP.NET session state from Silverlight application. Here is an approach how to accomplish this, let us examine the steps to service contract which exposes a session query method using WCF as we consume this from Silverlight as Silverlight cannot directly talk to ASP.NET. [ServiceContract] p ublic interface ISessionService { [OperationContract] s tring SpeakToASPNETSession
Hi! I am new in Silverlight Concept, How to create a web application using Silverlight 3.0 in VS.Net 2008. Could you Explain in Step by Step. Thanks in Developer 2008 Express (which is free) and use the New Project dialog to create a " Silverlight Application " (note: you will need to download and install the Silverlight Tools for VS 2008 release to get this support) This is part one of eight tutorials that walk through how to build a simple Digg client application using Silverlight 2. These tutorials are intended to be read in-order, and help explain some of the core programming concepts of Silverlight. . . . Go thr this link, which will give you, step step information for Creating "Hello World