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

WPF

 
QuestionHow to make DropDown in Silverlight. Pin
fasih198111-Aug-08 1:43
fasih198111-Aug-08 1:43 
AnswerRe: How to make DropDown in Silverlight. Pin
Michael Sync18-Oct-08 22:14
Michael Sync18-Oct-08 22:14 
QuestionFetching DataGrid Columns Data [modified] Pin
fasih198111-Aug-08 1:36
fasih198111-Aug-08 1:36 
AnswerRe: Fetching DataGrid Columns Data Pin
Syed Mehroz Alam12-Aug-08 1:31
Syed Mehroz Alam12-Aug-08 1:31 
QuestionDifferent backgound on different theme selection Pin
Darmi10-Aug-08 23:59
Darmi10-Aug-08 23:59 
QuestionHow i navigate on local Host Pin
wasimsharp10-Aug-08 23:11
wasimsharp10-Aug-08 23:11 
AnswerRe: How i navigate on local Host Pin
Syed Mehroz Alam12-Aug-08 1:45
Syed Mehroz Alam12-Aug-08 1:45 
QuestionSilverlight Beta 2 | VB | Linq to XML confusion Pin
crystal915410-Aug-08 9:42
crystal915410-Aug-08 9:42 
OK, I cannot find any VB samples, (different issue if I was doing things in C#). Any way, I am using WebClient class and am successfully reading the XML file of business videos in my xaml.vb file asynchronously. But I am having a problem populating the datagrid properly:

My XML has these nodes:

<videos>
<profession name="lawyer">
<video id="1" title="Lawyer Title 1" />
<video id="2" title="Lawyer Title 2" />
</profession>
<profession name="doctor">
<video id="1" title="Doctor Title 1" />
<video id="2" title="Doctor Title 2" />
</profession>
</videos>

Here's my query

Dim BizVideos = _
From videos In xmlVideos.DescendantsAndSelf("profession") _
Where videos.Attribute("name") = "doctor" _
Select videos

dgridVideoList.ItemsSource = BizVideos

Here's the problem I am experiencing:

1. I am only getting one row in the datadrid with everything included in that one row, as opposed to what I want, i.e. one row for Video ID 1, and one for Video ID 2.

2. I am getting more fields in the datagrid than I want, i.e. "Has Elements", "Has Attributes", "Parent Node", etc.

Can anyone offer me (a.) the correct syntax for the query where I can break out the video child nodes under profession doctor and diplay them one video per row (b.) avoid showing superflulous fields like "Has Attributes", "Parent Node", etc., as well as (c.) what I am doing wrong in the binding of my datagrid?

Thank you all for your help.
QuestionAny recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 4:53
Michael Sync10-Aug-08 4:53 
AnswerRe: Any recommendation for WPF Datagrid?? Pin
Jammer10-Aug-08 11:05
Jammer10-Aug-08 11:05 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 18:14
Michael Sync10-Aug-08 18:14 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Jammer10-Aug-08 22:44
Jammer10-Aug-08 22:44 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 22:46
Michael Sync10-Aug-08 22:46 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 22:47
Michael Sync10-Aug-08 22:47 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Jammer10-Aug-08 22:55
Jammer10-Aug-08 22:55 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 23:31
Michael Sync10-Aug-08 23:31 
AnswerRe: Any recommendation for WPF Datagrid?? Pin
Jacquers11-Aug-08 21:19
Jacquers11-Aug-08 21:19 
QuestionWindow Background Brush Change Pin
BlitzPackage8-Aug-08 10:07
BlitzPackage8-Aug-08 10:07 
AnswerRe: Window Background Brush Change Pin
Insincere Dave8-Aug-08 13:58
Insincere Dave8-Aug-08 13:58 
GeneralRe: Window Background Brush Change Pin
BlitzPackage8-Aug-08 15:41
BlitzPackage8-Aug-08 15:41 
GeneralRe: Window Background Brush Change Pin
BlitzPackage8-Aug-08 15:51
BlitzPackage8-Aug-08 15:51 
AnswerRe: Window Background Brush Change Pin
Jammer8-Aug-08 22:38
Jammer8-Aug-08 22:38 
QuestionWPF Control Advice Pin
Harvey Saayman7-Aug-08 20:59
Harvey Saayman7-Aug-08 20:59 
AnswerRe: WPF Control Advice Pin
Jammer7-Aug-08 23:09
Jammer7-Aug-08 23:09 
AnswerRe: WPF Control Advice Pin
Gideon Engelberth8-Aug-08 3:19
Gideon Engelberth8-Aug-08 3:19 

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.