Click here to Skip to main content
15,899,475 members
Home / Discussions / WPF
   

WPF

 
Questionwpf command parameters Pin
cechode7-Jul-08 9:34
cechode7-Jul-08 9:34 
AnswerRe: wpf command parameters Pin
Gideon Engelberth9-Jul-08 5:06
Gideon Engelberth9-Jul-08 5:06 
QuestionBind Objects to ListView / Grid where Objects hold their Position in Grid [modified] Pin
ezazazel7-Jul-08 4:33
ezazazel7-Jul-08 4:33 
AnswerRe: Bind Objects to ListView / Grid where Objects hold their Position in Grid Pin
Gideon Engelberth9-Jul-08 5:14
Gideon Engelberth9-Jul-08 5:14 
GeneralRe: Bind Objects to ListView / Grid where Objects hold their Position in Grid Pin
ezazazel9-Jul-08 8:51
ezazazel9-Jul-08 8:51 
GeneralRe: Bind Objects to ListView / Grid where Objects hold their Position in Grid Pin
Gideon Engelberth9-Jul-08 12:51
Gideon Engelberth9-Jul-08 12:51 
GeneralRe: Bind Objects to ListView / Grid where Objects hold their Position in Grid Pin
ezazazel10-Jul-08 1:15
ezazazel10-Jul-08 1:15 
GeneralRe: Bind Objects to ListView / Grid where Objects hold their Position in Grid Pin
Gideon Engelberth10-Jul-08 3:25
Gideon Engelberth10-Jul-08 3:25 
I am not sure what about that line of code you are stuck on, but hopefully this article on CodeProject that explains the visual and logical trees can help you. There is a link to another article on the same topic in the comments at the end of the article.

The reason for the first line is that when you do databinding like this, the ListBox.Items property will return the actual MatrixElement instead of the ListBoxItem that is used to draw to the screen. So the line of code you put here is getting the ListBoxItem that is generated for the MatrixElement so I can get into the visual tree. After the item is found, I start walking up the visual tree to find the grid that is generated by the list box, since the only other way to get the rows and columns would be to put the row and column definitions in XAML.

Another thought that came to mind is that the UniformGrid that I suggested earlier will not work for your situation because it ignores the Grid.Row and Grid.Column properties and just places one item after the other. I know that some people use Blend, but so far I have not used Blend and can achieve the same or better results than I did with WinForms. I do use XamlHack when I want to see the default template of a class, but other than that Visual Studio has been enough.
QuestionrichTextbox to HTML ? [modified] Pin
Mohammad Dayyan5-Jul-08 14:27
Mohammad Dayyan5-Jul-08 14:27 
AnswerRe: richTextbox to HTML ? Pin
Pete O'Hanlon6-Jul-08 4:00
mvePete O'Hanlon6-Jul-08 4:00 
QuestionShow CHM Help File Pin
Jammer5-Jul-08 10:49
Jammer5-Jul-08 10:49 
AnswerRe: Show CHM Help File Pin
Pete O'Hanlon6-Jul-08 8:50
mvePete O'Hanlon6-Jul-08 8:50 
GeneralRe: Show CHM Help File Pin
Jammer6-Jul-08 13:14
Jammer6-Jul-08 13:14 
GeneralRe: Show CHM Help File Pin
Krishnraj31-Jul-08 19:38
Krishnraj31-Jul-08 19:38 
QuestionHandle return(ENTER) pressing on richTextBox in WPF ? [modified] Pin
Mohammad Dayyan4-Jul-08 3:50
Mohammad Dayyan4-Jul-08 3:50 
AnswerRe: Handle return(ENTER) pressing on richTextBox in WPF ? Pin
Pete O'Hanlon4-Jul-08 9:41
mvePete O'Hanlon4-Jul-08 9:41 
GeneralRe: Handle return(ENTER) pressing on richTextBox in WPF ? Pin
Mohammad Dayyan4-Jul-08 9:47
Mohammad Dayyan4-Jul-08 9:47 
GeneralRe: Handle return(ENTER) pressing on richTextBox in WPF ? Pin
Pete O'Hanlon4-Jul-08 10:05
mvePete O'Hanlon4-Jul-08 10:05 
GeneralRe: Handle return(ENTER) pressing on richTextBox in WPF ? Pin
Mohammad Dayyan4-Jul-08 10:19
Mohammad Dayyan4-Jul-08 10:19 
QuestionSilverLight beta 2 Pin
Member 39206674-Jul-08 1:17
Member 39206674-Jul-08 1:17 
AnswerRe: SilverLight beta 2 Pin
Michael Sync4-Jul-08 20:13
Michael Sync4-Jul-08 20:13 
GeneralRe: SilverLight beta 2 Pin
Member 39206676-Jul-08 19:42
Member 39206676-Jul-08 19:42 
GeneralRe: SilverLight beta 2 Pin
Michael Sync6-Jul-08 20:25
Michael Sync6-Jul-08 20:25 
GeneralRe: SilverLight beta 2 Pin
Member 39206677-Jul-08 2:54
Member 39206677-Jul-08 2:54 
GeneralRe: SilverLight beta 2 Pin
Sam Xavier11-Jul-08 0:23
Sam Xavier11-Jul-08 0:23 

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.