Click here to Skip to main content
15,889,335 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: List in wpf designer Pin
Wes Aday31-Oct-08 10:01
professionalWes Aday31-Oct-08 10:01 
QuestionRe: List in wpf designer Pin
vincentgr31-Oct-08 10:31
vincentgr31-Oct-08 10:31 
AnswerRe: List in wpf designer Pin
Wes Aday31-Oct-08 11:46
professionalWes Aday31-Oct-08 11:46 
GeneralRe: List in wpf designer Pin
vincentgr1-Nov-08 8:45
vincentgr1-Nov-08 8:45 
GeneralRe: List in wpf designer Pin
Wes Aday1-Nov-08 10:51
professionalWes Aday1-Nov-08 10:51 
GeneralRe: List in wpf designer Pin
vincentgr2-Nov-08 2:08
vincentgr2-Nov-08 2:08 
QuestionRe: List in wpf designer Pin
vincentgr2-Nov-08 3:09
vincentgr2-Nov-08 3:09 
AnswerRe: List in wpf designer Pin
vincentgr4-Nov-08 8:04
vincentgr4-Nov-08 8:04 
YAY! I got it to work! well, not completely: i found this (NewItemTypesAttribute)[^] description and tried the sample (copied and pasted the parts I needed). I found out it just don't likes ints! A lot of things you enter int the NewItemTypesAttribute, like TextBlocks which i actually wanted to List (but this didn't work out because of a reason I don't get), but int just doesn't! I tried it after doing this with a List<textblock>, and amazingly, without the NewItemTypesAttribute, it just works!

The problem I first had was that I could add items through the designer (I think I was using Blend then), but if i checked Count or tried to get a value with operator[], it just told me 0 or threw an exception. I checked the Count now, and it works. All very strange..

Here's my code:
private List<TextBlock> _TextBlockList = new List<TextBlock>();
public List<TextBlock> TextBlockList
{
     get
     {
          return _TextBlockList;
     }

     set
     {
          _TextBlockList = value;
     }
}

Thanks for all your help!
Vincent
QuestionWPF in a web browser using a ElementHost Pin
Gareth H31-Oct-08 3:58
Gareth H31-Oct-08 3:58 
QuestionWPF - Getting a Frame control to scroll the content Pin
Evan Stein31-Oct-08 3:45
Evan Stein31-Oct-08 3:45 
AnswerRe: WPF - Getting a Frame control to scroll the content Pin
Wes Aday31-Oct-08 8:30
professionalWes Aday31-Oct-08 8:30 
GeneralRe: WPF - Getting a Frame control to scroll the content Pin
Evan Stein31-Oct-08 12:13
Evan Stein31-Oct-08 12:13 
GeneralRe: WPF - Getting a Frame control to scroll the content Pin
Wes Aday31-Oct-08 12:48
professionalWes Aday31-Oct-08 12:48 
QuestionHow to add text to richtextbox from different thread with wcf? Pin
Daniel Jansson30-Oct-08 22:34
Daniel Jansson30-Oct-08 22:34 
AnswerRe: How to add text to richtextbox from different thread with wcf? Pin
schiebel-t8-Nov-08 3:21
schiebel-t8-Nov-08 3:21 
GeneralRe: How to add text to richtextbox from different thread with wcf? Pin
Daniel Jansson8-Nov-08 3:29
Daniel Jansson8-Nov-08 3:29 
QuestionHosting .NET 2.0 controls in WPF Pin
Johan Lombaard30-Oct-08 22:17
Johan Lombaard30-Oct-08 22:17 
AnswerRe: Hosting .NET 2.0 controls in WPF Pin
Pete O'Hanlon31-Oct-08 2:26
mvePete O'Hanlon31-Oct-08 2:26 
GeneralRe: Hosting .NET 2.0 controls in WPF Pin
Johan Lombaard2-Nov-08 20:47
Johan Lombaard2-Nov-08 20:47 
GeneralRe: Hosting .NET 2.0 controls in WPF Pin
Pete O'Hanlon3-Nov-08 8:27
mvePete O'Hanlon3-Nov-08 8:27 
QuestionIssue with setting the margin on several WPF controls Pin
robertw01930-Oct-08 17:03
robertw01930-Oct-08 17:03 
AnswerRe: Issue with setting the margin on several WPF controls Pin
User 27100930-Oct-08 19:25
User 27100930-Oct-08 19:25 
GeneralRe: Issue with setting the margin on several WPF controls Pin
robertw01930-Oct-08 19:48
robertw01930-Oct-08 19:48 
GeneralRe: Issue with setting the margin on several WPF controls Pin
User 27100931-Oct-08 3:34
User 27100931-Oct-08 3:34 
GeneralRe: Issue with setting the margin on several WPF controls Pin
robertw01931-Oct-08 13:50
robertw01931-Oct-08 13:50 

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.