Click here to Skip to main content
16,004,901 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Control Properties in XAML Pin
thrakazog22-Jul-08 14:04
thrakazog22-Jul-08 14:04 
GeneralRe: WPF Control Properties in XAML Pin
chester22-Jul-08 14:10
chester22-Jul-08 14:10 
RantRe: WPF Control Properties in XAML Pin
thrakazog22-Jul-08 14:14
thrakazog22-Jul-08 14:14 
GeneralRe: WPF Control Properties in XAML Pin
chester22-Jul-08 14:15
chester22-Jul-08 14:15 
GeneralRe: WPF Control Properties in XAML Pin
Jammer22-Jul-08 22:26
Jammer22-Jul-08 22:26 
AnswerFound the Answer Pin
thrakazog23-Jul-08 14:03
thrakazog23-Jul-08 14:03 
QuestionHow to bind Ilist IN another IList to listBox. Pin
chandra vempati22-Jul-08 4:57
chandra vempati22-Jul-08 4:57 
QuestionOne Object Data Provider - Binding two datagrid Pin
Michael Sync20-Jul-08 7:31
Michael Sync20-Jul-08 7:31 
I must use only one object data provider in my wpf window. I have two methods that return two collections in code-behinded file. How can I bind those two methods to datagrid? (I'm using third-party datagrid but I think that the binding will be the same.) If I use the methodname in object data provider, i'm able to bind the datagrid. but I want to use one method for one datagrid..


// xmlns:igDP="http://infragistics.com/DataPresenter"

...
<Grid>
<Grid.Resources>
<ObjectDataProvider x:Key="myDataProvider"
ObjectType="{x:Type vm:myViewModel}"
/>
</Grid.Resources>

......


<igDP:XamDataGrid Margin="8,138,8,70" x:Name="mygrid"
DataSource="{Binding Source={StaticResource myDataProvider}, Path=myViewModel.GetDataMethod1}">
</igDP:XamDataGrid>




if I do like that, it will work..

<ObjectDataProvider x:Key="myDataProvider"
ObjectType="{x:Type vm:myViewModel}"
MethodName="GetDataMethod1"/>

I want something like that below but it doesn't work.


<Grid>
<Grid.Resources>
<ObjectDataProvider x:Key="myDataProvider"
ObjectType="{x:Type vm:myViewModel}"
/>
</Grid.Resources>

......


<igDP:XamDataGrid Margin="8,138,8,70" x:Name="mygrid1"
DataSource="{Binding Source={StaticResource myDataProvider}, Path=myViewModel.GetDataMethod1}">
</igDP:XamDataGrid>

<igDP:XamDataGrid Margin="8,138,8,70" x:Name="mygrid2"
DataSource="{Binding Source={StaticResource myDataProvider}, Path=myViewModel.GetDataMethod2}">
</igDP:XamDataGrid>




Any idea? Thanks in advance.

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


AnswerRe: One Object Data Provider - Binding two datagrid Pin
Jammer20-Jul-08 10:47
Jammer20-Jul-08 10:47 
GeneralRe: One Object Data Provider - Binding two datagrid Pin
Michael Sync20-Jul-08 21:36
Michael Sync20-Jul-08 21:36 
GeneralRe: One Object Data Provider - Binding two datagrid Pin
Jammer20-Jul-08 22:52
Jammer20-Jul-08 22:52 
QuestionDragSource Event ... has it been removed??? Pin
Jammer20-Jul-08 1:38
Jammer20-Jul-08 1:38 
AnswerRe: DragSource Event ... has it been removed??? Pin
Mark Salsbery20-Jul-08 8:46
Mark Salsbery20-Jul-08 8:46 
GeneralRe: DragSource Event ... has it been removed??? Pin
Jammer20-Jul-08 10:49
Jammer20-Jul-08 10:49 
QuestionWPF and Texture mapping.. need some help =( Pin
SilverD20-Jul-08 0:51
SilverD20-Jul-08 0:51 
AnswerRe: WPF and Texture mapping.. need some help =( Pin
Insincere Dave21-Jul-08 7:39
Insincere Dave21-Jul-08 7:39 
GeneralRe: WPF and Texture mapping.. need some help =( Pin
SilverD24-Jul-08 7:30
SilverD24-Jul-08 7:30 
QuestionRead XAML file Pin
Krishnraj18-Jul-08 21:56
Krishnraj18-Jul-08 21:56 
AnswerRe: Read XAML file Pin
yanairon19-Jul-08 21:18
yanairon19-Jul-08 21:18 
GeneralRe: Read XAML file Pin
Krishnraj20-Jul-08 19:06
Krishnraj20-Jul-08 19:06 
QuestionHow to set the startup object in WPF? Pin
Michael Sync17-Jul-08 0:46
Michael Sync17-Jul-08 0:46 
AnswerRe: How to set the startup object in WPF? Pin
Wes Aday17-Jul-08 9:15
professionalWes Aday17-Jul-08 9:15 
GeneralRe: How to set the startup object in WPF? Pin
Michael Sync17-Jul-08 16:32
Michael Sync17-Jul-08 16:32 
AnswerRe: How to set the startup object in WPF? Pin
John Ad18-Jul-08 4:02
John Ad18-Jul-08 4:02 
GeneralRe: How to set the startup object in WPF? Pin
Michael Sync18-Jul-08 4:16
Michael Sync18-Jul-08 4:16 

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.