Click here to Skip to main content
15,913,722 members
Home / Discussions / WPF
   

WPF

 
QuestionWhy doesn't the AllowDrop property work with a TextBox? [modified] Pin
fjparisIII25-Sep-09 5:18
fjparisIII25-Sep-09 5:18 
AnswerRe: Why doesn't the AllowDrop property work with a TextBox? Pin
Pete O'Hanlon25-Sep-09 10:24
mvePete O'Hanlon25-Sep-09 10:24 
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? [modified] Pin
fjparisIII26-Sep-09 4:48
fjparisIII26-Sep-09 4:48 
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? Pin
Pete O'Hanlon27-Sep-09 23:34
mvePete O'Hanlon27-Sep-09 23:34 
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? Pin
fjparisIII28-Sep-09 5:50
fjparisIII28-Sep-09 5:50 
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? Pin
Pete O'Hanlon28-Sep-09 8:50
mvePete O'Hanlon28-Sep-09 8:50 
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? Pin
fjparisIII28-Sep-09 16:41
fjparisIII28-Sep-09 16:41 
QuestionCan't update GUI with textbox Text Pin
marca29224-Sep-09 20:14
marca29224-Sep-09 20:14 
QuestionNeed to accept drop from drag and drop operation from Windows Explorer Pin
fjparisIII24-Sep-09 16:08
fjparisIII24-Sep-09 16:08 
AnswerRe: Need to accept drop from drag and drop operation from Windows Explorer Pin
Gideon Engelberth25-Sep-09 3:22
Gideon Engelberth25-Sep-09 3:22 
GeneralRe: Need to accept drop from drag and drop operation from Windows Explorer Pin
fjparisIII25-Sep-09 4:06
fjparisIII25-Sep-09 4:06 
QuestionFont difference between XP and Vista in wpf app Pin
ausadmin24-Sep-09 13:47
ausadmin24-Sep-09 13:47 
AnswerRe: Font difference between XP and Vista in wpf app Pin
Christian Graus24-Sep-09 14:22
protectorChristian Graus24-Sep-09 14:22 
QuestionCustom control Pin
Mikey_H23-Sep-09 9:11
Mikey_H23-Sep-09 9:11 
AnswerRe: Custom control Pin
Richard MacCutchan23-Sep-09 12:27
mveRichard MacCutchan23-Sep-09 12:27 
GeneralRe: Custom control Pin
Mikey_H25-Sep-09 3:19
Mikey_H25-Sep-09 3:19 
Thanks Richard, but not quite what I am looking for.

The control I am currently working on originated as a derived class of System.Windows.Controls.Panel. I got this to a point where I was happy with measure and arrange overrides of child objects. I wanted this container/panel to have a visual style to be applied to it, as well as the option to create alternate control templates. I changed the derived class from System.Windows.Controls.Panel to System.Windows.Controls.Control . At this point I lost the rendering of my control.

I am looking for some information on how to get the rendering of this object back, also how to set a control template for it.

Do I need to override any rendering code when working with a base class of System.Windows.Controls.Control?

I have tried to use a control template in the way I would have used it for a control derived off another base class eg.
SearchTextBox : TextBox
DefaultStyleKeyProperty.OverrideMetadata(typeof(SearchTextBox), new FrameworkPropertyMetadata(typeof(SearchTextBox)));

CustomControl : Control
DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomControl), new FrameworkPropertyMetadata(typeof(CustomControl)));

When I try to view this template in Blend I get the following error.

Unable to cast object of type 'Microsoft.Expression.DesignSurface.ArtboardBorder' to type 'ParentOfCustomControl'
(The custom control has a fixed Parent type which is derived from System.Windows.Controls.Grid)
GeneralRe: Custom control Pin
Richard MacCutchan25-Sep-09 7:55
mveRichard MacCutchan25-Sep-09 7:55 
QuestionCant see columns in listview on designer Pin
Haim Nachum23-Sep-09 4:36
Haim Nachum23-Sep-09 4:36 
AnswerRe: Cant see columns in listview on designer Pin
ABitSmart23-Sep-09 14:25
ABitSmart23-Sep-09 14:25 
GeneralRe: Cant see columns in listview on designer Pin
Haim Nachum23-Sep-09 23:02
Haim Nachum23-Sep-09 23:02 
QuestionClock timepicker Pin
pcsamer22-Sep-09 22:53
pcsamer22-Sep-09 22:53 
AnswerRe: Clock timepicker Pin
Mark Salsbery23-Sep-09 5:50
Mark Salsbery23-Sep-09 5:50 
QuestionVertical Text in Grid Pin
Adriaan Davel22-Sep-09 21:08
Adriaan Davel22-Sep-09 21:08 
AnswerRe: Vertical Text in Grid Pin
Mark Salsbery23-Sep-09 5:51
Mark Salsbery23-Sep-09 5:51 
GeneralRe: Vertical Text in Grid Pin
Adriaan Davel27-Sep-09 20:03
Adriaan Davel27-Sep-09 20:03 

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.