Click here to Skip to main content
15,392,472 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: Context menu in Datatemplate Pin
Mark Salsbery11-Apr-09 7:42
MemberMark Salsbery11-Apr-09 7:42 
AnswerRe: Context menu in Datatemplate [modified] Pin
mikla52111-Apr-09 19:54
Membermikla52111-Apr-09 19:54 
QuestionRe: Context menu in Datatemplate Pin
Mark Salsbery13-Apr-09 8:47
MemberMark Salsbery13-Apr-09 8:47 
AnswerRe: Context menu in Datatemplate Pin
mikla52113-Apr-09 21:11
Membermikla52113-Apr-09 21:11 
GeneralRe: Context menu in Datatemplate Pin
Mark Salsbery14-Apr-09 7:00
MemberMark Salsbery14-Apr-09 7:00 
GeneralRe: Context menu in Datatemplate Pin
mikla52114-Apr-09 20:11
Membermikla52114-Apr-09 20:11 
GeneralRe: Context menu in Datatemplate Pin
Mark Salsbery14-Apr-09 20:23
MemberMark Salsbery14-Apr-09 20:23 
QuestionInheritence in XAML Pin
0x3c010-Apr-09 9:09
Member0x3c010-Apr-09 9:09 
I've recently decided to look into adding the ability to load WPF Windows to one of my pet projects. I also want to allow it to process speech, and other goodies. To achieve this, I've created a new class in my 'host' Windows Forms application, which inherits from System.Windows.Window. The requirements for a Window to be loaded are:

  1. It must have an attribute which contains the name, category, etc.
  2. It must inherit from my custom class

I have no problem with the first one, but the second one is where I fall down. I have added a reference to the 'host' application in the 'parasite' (sorry, don't know how else to describe it) application, and changed the C# back-end class to inherit from my custom class. When I try to build, I get this error
Partial declarations of 'SampleWPFMiniApp.wndMain' must not specify different base classes

I presume the designer is similar to that of Windows Forms in that the code is split between XAML and code. How would I specify the correct base class in XAML? For what it's worth, the base class I specified in my C# code is Host.ShellComponents.ParasiteWindow
AnswerRe: Inheritence in XAML Pin
0x3c010-Apr-09 9:24
Member0x3c010-Apr-09 9:24 
QuestionStyles - Where Do I Put them? Pin
#realJSOP10-Apr-09 8:57
mva#realJSOP10-Apr-09 8:57 
AnswerRe: Styles - Where Do I Put them? Pin
R2B210-Apr-09 9:15
MemberR2B210-Apr-09 9:15 
GeneralRe: Styles - Where Do I Put them? Pin
#realJSOP10-Apr-09 10:21
mva#realJSOP10-Apr-09 10:21 
GeneralRe: Styles - Where Do I Put them? Pin
R2B210-Apr-09 10:59
MemberR2B210-Apr-09 10:59 
AnswerRe: Styles - Where Do I Put them? Pin
Mark Salsbery10-Apr-09 9:31
MemberMark Salsbery10-Apr-09 9:31 
GeneralRe: Styles - Where Do I Put them? Pin
#realJSOP10-Apr-09 10:22
mva#realJSOP10-Apr-09 10:22 
AnswerRe: Styles - Where Do I Put them? Pin
Wes Aday10-Apr-09 19:42
professionalWes Aday10-Apr-09 19:42 
AnswerRe: Styles - Where Do I Put them? Pin
ctnightmare13-Apr-09 9:56
Memberctnightmare13-Apr-09 9:56 
AnswerRe: Styles - Where Do I Put them? Pin
Jammer14-Apr-09 8:09
MemberJammer14-Apr-09 8:09 
QuestionWPF Expander Control - Custom Header Pin
#realJSOP10-Apr-09 3:16
mva#realJSOP10-Apr-09 3:16 
AnswerRe: WPF Expander Control - Custom Header Pin
mikla52110-Apr-09 3:28
Membermikla52110-Apr-09 3:28 
AnswerRe: WPF Expander Control - Custom Header Pin
Insincere Dave10-Apr-09 3:28
MemberInsincere Dave10-Apr-09 3:28 
AnswerRe: WPF Expander Control - Custom Header Pin
Eslam Afifi10-Apr-09 3:35
MemberEslam Afifi10-Apr-09 3:35 
QuestionCreate a System::Windows::Controls::UserControl^ Pin
Member 377636710-Apr-09 2:25
MemberMember 377636710-Apr-09 2:25 
AnswerRe: Create a System::Windows::Controls::UserControl^ Pin
Mark Salsbery10-Apr-09 7:05
MemberMark Salsbery10-Apr-09 7:05 
QuestionWPF Datagrid: change image source on row clicked Pin
johnsontroye9-Apr-09 2:31
Memberjohnsontroye9-Apr-09 2:31 

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.