Click here to Skip to main content
15,897,891 members
Home / Discussions / WPF
   

WPF

 
QuestionImage Pixel Manipulation Pin
Califer28-Aug-09 14:30
Califer28-Aug-09 14:30 
QuestionWPF sleeping-monitor-un-painted-windows problem Pin
FocusedWolf28-Aug-09 9:05
FocusedWolf28-Aug-09 9:05 
AnswerRe: WPF sleeping-monitor-un-painted-windows problem [modified] Pin
FocusedWolf30-Aug-09 8:52
FocusedWolf30-Aug-09 8:52 
QuestionWith ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Frank W. Wu28-Aug-09 5:02
Frank W. Wu28-Aug-09 5:02 
AnswerRe: With ListBox embedded, DataGrid doesn’t popup ComboBox. Why? Pin
Abhinav S31-Aug-09 18:43
Abhinav S31-Aug-09 18:43 
QuestionNeed to convert win application to web application Pin
Hema Bairavan27-Aug-09 20:45
Hema Bairavan27-Aug-09 20:45 
AnswerRe: Need to convert win application to web application Pin
#realJSOP30-Aug-09 2:42
professional#realJSOP30-Aug-09 2:42 
Answer"specified element is already the logical child of another element. disconnect it first": (solved) PinPopular
kionaagility27-Aug-09 17:44
kionaagility27-Aug-09 17:44 
Hi,

I spent some time searching for an answer to this problem. While there are a fair number of postings on this error message, none of the solutions worked for me. Happily, I did figure out what was going wrong, and found a workaround. I'm posting the solution so that people who have the same problem in the future can find this and save themselves some time.

I had a user control of a grid of labels. In code, I was assigning one control's Content property to another, which worked fine for all the labels -- except one. For that label, I got an error message: "specified element is already the logical child of another element. disconnect it first." I'm quite new to Silverlight and didn't find the message too enlightening.

Label's content can be a simple string, or it can be a Run(); All the labels that worked happened to have strings, but the one that didn't had a Run(). I took that as a big fat hint. I tried writing a method that created a new Run and copied the relevant fields, and it worked; with this new Run() I can make assignments without errors.

Hope this helps some suffering dev in the future.

P.
GeneralRe: "specified element is already the logical child of another element. disconnect it first": (solved) Pin
Edbert P31-Aug-09 16:26
Edbert P31-Aug-09 16:26 
Questionmedialine element does not play video from internet. Pin
vrajaraman27-Aug-09 16:04
vrajaraman27-Aug-09 16:04 
QuestionMajor help regarding WPF Application and WPF Browser Application? Pin
Johnny7927-Aug-09 7:51
Johnny7927-Aug-09 7:51 
AnswerRe: Major help regarding WPF Application and WPF Browser Application? Pin
Super Lloyd27-Aug-09 19:19
Super Lloyd27-Aug-09 19:19 
GeneralRe: Major help regarding WPF Application and WPF Browser Application? Pin
Johnny7928-Aug-09 5:20
Johnny7928-Aug-09 5:20 
AnswerRe: Major help regarding WPF Application and WPF Browser Application? Pin
Gideon Engelberth28-Aug-09 7:17
Gideon Engelberth28-Aug-09 7:17 
GeneralRe: Major help regarding WPF Application and WPF Browser Application? Pin
Johnny7928-Aug-09 7:28
Johnny7928-Aug-09 7:28 
QuestionCan I show a ToolTip without hovering the mouse over an element? Pin
Etienne_12327-Aug-09 7:04
Etienne_12327-Aug-09 7:04 
AnswerRe: Can I show a ToolTip without hovering the mouse over an element? Pin
Pete O'Hanlon31-Aug-09 10:55
mvePete O'Hanlon31-Aug-09 10:55 
Questiondiffernt background color to wpf datagrid cell? Pin
sarath12427-Aug-09 0:43
sarath12427-Aug-09 0:43 
AnswerRe: differnt background color to wpf datagrid cell? Pin
vsaratkar27-Aug-09 11:02
vsaratkar27-Aug-09 11:02 
QuestionUsing Cascading Dropdown Pin
LucBite26-Aug-09 4:56
LucBite26-Aug-09 4:56 
AnswerRe: Using Cascading Dropdown Pin
Mark Salsbery26-Aug-09 8:06
Mark Salsbery26-Aug-09 8:06 
QuestionHow do I show balloon tips? Pin
Etienne_12326-Aug-09 4:33
Etienne_12326-Aug-09 4:33 
AnswerRe: How do I show balloon tips? Pin
michmela4426-Aug-09 8:44
michmela4426-Aug-09 8:44 
GeneralRe: How do I show balloon tips? Pin
Etienne_12327-Aug-09 7:01
Etienne_12327-Aug-09 7:01 
QuestionAccess files in a folder. Pin
Nekkantidivya25-Aug-09 21:42
Nekkantidivya25-Aug-09 21:42 

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.