Click here to Skip to main content
15,903,203 members
Home / Discussions / WPF
   

WPF

 
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 
AnswerRe: How to resolve duplicated ResourceDictionary? Pin
Abhinav S24-Aug-10 5:21
Abhinav S24-Aug-10 5:21 
QuestionSerialize WPF and telerik controls [modified] Pin
michalush8523-Aug-10 20:39
michalush8523-Aug-10 20:39 
AnswerRe: Serialize WPF and telerik controls Pin
souidi abderrahman24-Aug-10 1:13
souidi abderrahman24-Aug-10 1:13 
QuestionGetting the value of Height through OneWayToSource binding Pin
la0123-Aug-10 14:50
la0123-Aug-10 14:50 
AnswerRe: Getting the value of Height through OneWayToSource binding Pin
AspDotNetDev27-Aug-10 11:14
protectorAspDotNetDev27-Aug-10 11:14 
GeneralRe: Getting the value of Height through OneWayToSource binding Pin
la0129-Aug-10 15:24
la0129-Aug-10 15:24 
QuestionHow to cache data at WPF after the application closed? Pin
michalush8522-Aug-10 4:49
michalush8522-Aug-10 4:49 
AnswerRe: How to cache data at WPF after the application closed? Pin
Pete O'Hanlon22-Aug-10 5:04
mvePete O'Hanlon22-Aug-10 5:04 
GeneralRe: How to cache data at WPF after the application closed? Pin
michalush8522-Aug-10 5:18
michalush8522-Aug-10 5:18 
GeneralRe: How to cache data at WPF after the application closed? Pin
Pete O'Hanlon22-Aug-10 5:26
mvePete O'Hanlon22-Aug-10 5:26 
GeneralRe: How to cache data at WPF after the application closed? Pin
michalush8522-Aug-10 20:03
michalush8522-Aug-10 20:03 
GeneralRe: How to cache data at WPF after the application closed? Pin
Pete O'Hanlon22-Aug-10 20:09
mvePete O'Hanlon22-Aug-10 20:09 
GeneralRe: How to cache data at WPF after the application closed? [modified] Pin
michalush8522-Aug-10 20:29
michalush8522-Aug-10 20:29 
GeneralRe: How to cache data at WPF after the application closed? Pin
Pete O'Hanlon22-Aug-10 21:40
mvePete O'Hanlon22-Aug-10 21:40 
GeneralRe: How to cache data at WPF after the application closed? Pin
michalush8522-Aug-10 22:24
michalush8522-Aug-10 22:24 
Questionviewing xml data in wpf [modified] Pin
Sonar8721-Aug-10 20:20
Sonar8721-Aug-10 20:20 

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.