Click here to Skip to main content
15,919,931 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 19:21
Abhinav S26-Aug-10 19:21 
GeneralRe: how to create silverlight project/ Pin
awinash kr26-Aug-10 19:24
awinash kr26-Aug-10 19:24 
AnswerRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 19:44
Abhinav S26-Aug-10 19:44 
GeneralRe: how to create silverlight project/ Pin
awinash kr26-Aug-10 20:19
awinash kr26-Aug-10 20:19 
GeneralRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 20:36
Abhinav S26-Aug-10 20:36 
AnswerRe: how to create silverlight project/ Pin
Kunal Chowdhury «IN»27-Aug-10 2:29
professionalKunal Chowdhury «IN»27-Aug-10 2:29 
AnswerRe: how to create silverlight project/ Pin
#realJSOP27-Aug-10 2:04
professional#realJSOP27-Aug-10 2:04 
QuestionCustom UserControl question.... [modified] Pin
Phil Boyd26-Aug-10 8:55
Phil Boyd26-Aug-10 8:55 
AnswerRe: Custom UserControl question.... Pin
Ian Shlasko26-Aug-10 10:07
Ian Shlasko26-Aug-10 10:07 
GeneralRe: Custom UserControl question.... Pin
Phil Boyd26-Aug-10 10:35
Phil Boyd26-Aug-10 10:35 
QuestionWPF Display performance Pin
Eduard Keilholz25-Aug-10 23:46
Eduard Keilholz25-Aug-10 23:46 
AnswerRe: WPF Display performance Pin
Abhinav S26-Aug-10 1:06
Abhinav S26-Aug-10 1:06 
QuestionFinding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 4:01
dbrenth25-Aug-10 4:01 
AnswerRe: Finding SortDescriptions for a DataGrid Pin
Abhinav S25-Aug-10 6:03
Abhinav S25-Aug-10 6:03 
GeneralRe: Finding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 7:38
dbrenth25-Aug-10 7:38 
GeneralRe: Finding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 8:03
dbrenth25-Aug-10 8:03 
Questioninterfaces and access modifiers Pin
Ed Hill _5_24-Aug-10 23:39
Ed Hill _5_24-Aug-10 23:39 
AnswerRe: interfaces and access modifiers [modified] Pin
Pete O'Hanlon24-Aug-10 23:47
mvePete O'Hanlon24-Aug-10 23:47 
GeneralRe: interfaces and access modifiers Pin
Ed Hill _5_25-Aug-10 0:07
Ed Hill _5_25-Aug-10 0:07 
GeneralRe: interfaces and access modifiers Pin
Pete O'Hanlon25-Aug-10 1:27
mvePete O'Hanlon25-Aug-10 1:27 
QuestionCalling one button's IsMouseOver style on mouseEnter of another button Pin
Prasoon Chaudhary24-Aug-10 22:24
Prasoon Chaudhary24-Aug-10 22:24 
QuestionHow to bind the ComboBox which is in a ListView using collection Pin
DavJes24-Aug-10 4:44
DavJes24-Aug-10 4:44 
AnswerRe: How to bind the ComboBox which is in a ListView using collection Pin
Ian Shlasko24-Aug-10 5:17
Ian Shlasko24-Aug-10 5:17 
GeneralRe: How to bind the ComboBox which is in a ListView using collection Pin
DavJes25-Aug-10 5:09
DavJes25-Aug-10 5:09 
Thanks for the info, It worked after I use FindResource.

But I have one more trouble, I have a button called ResetAll, Onclick of it, should reset all the Combo indexs to 0 or -1 in the listview. As the combo is built added part of datatemplate in each listview item. Can u throw me a way to do this. pl find the reference code below



Xmal :

<usercontrol.resources>
<objectdataprovider x:key="myList" objecttype="{x:Type local:NameList}">
<objectdataprovider x:key="myList" objecttype="{x:Type local:TaskList}">


<grid>
<listview x:name="ListView_Web" selectionmode="Single"
datacontext="{Binding Source={StaticResource TaskList}}"
issynchronizedwithcurrentitem="True" itemssource="{Binding}"
alternationcount="2" background="#FFD9D9D9">

<listview.view>
<gridview columnheadercontainerstyle="{DynamicResource CustomHeaderStyle}"> <gridviewcolumn header="Name" width="70" displaymemberbinding="{Binding Path=Name}">
<gridviewcolumn header="Age" width="100" displaymemberbinding="{Binding Path=EmpdId}">
<gridviewcolumn header="StateList" width="150">
<gridviewcolumn.celltemplate>
<datatemplate x:name="myDataTemp">
<combobox selectedvalue="{Binding Path=SelectedValue, Mode=TwoWay}"
="" itemssource="{Binding Source={StaticResource myList}, Mode=OneWay}" width="100" height="25">









Code :

Namespace N
{
public class NameList : List<string>
{
public NameList()
{

}
}

public class Window1
{
Window1()
{

ObjectDataProvider objectDataProvider = this.TryFindResource("myList") as ObjectDataProvider;
NameList nameList = objectDataProvider.Data as NameList;
AddItemsToCombo(ref nameList );//this adds items to combo from webserivce

}

On_ResetButtonClick()
{
//How do I reset the comboItems of each listview item.
}
}

Thanks in adavance
GeneralRe: How to bind the ComboBox which is in a ListView using collection Pin
Ian Shlasko25-Aug-10 5:53
Ian Shlasko25-Aug-10 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.