Click here to Skip to main content
15,901,373 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 8:11
sponsorJudah Gabriel Himango9-Dec-09 8:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 8:14
Ian Shlasko9-Dec-09 8:14 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:02
sponsorJudah Gabriel Himango9-Dec-09 11:02 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 11:31
Ian Shlasko9-Dec-09 11:31 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Judah Gabriel Himango9-Dec-09 11:34
sponsorJudah Gabriel Himango9-Dec-09 11:34 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Ian Shlasko9-Dec-09 13:08
Ian Shlasko9-Dec-09 13:08 
AnswerRe: MVVM newbie question - this doesn't seem to work with databinding Pin
Pete O'Hanlon9-Dec-09 10:11
mvePete O'Hanlon9-Dec-09 10:11 
GeneralRe: MVVM newbie question - this doesn't seem to work with databinding [modified] Pin
Judah Gabriel Himango9-Dec-09 10:59
sponsorJudah Gabriel Himango9-Dec-09 10:59 
QuestionDependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:01
rj_hogan9-Dec-09 4:01 
AnswerRe: Dependancy Property not setting on user control Pin
Ian Shlasko9-Dec-09 4:31
Ian Shlasko9-Dec-09 4:31 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 4:46
rj_hogan9-Dec-09 4:46 
GeneralRe: Dependancy Property not setting on user control Pin
rj_hogan9-Dec-09 6:45
rj_hogan9-Dec-09 6:45 
GeneralRe: Dependancy Property not setting on user control Pin
Mark Salsbery9-Dec-09 6:53
Mark Salsbery9-Dec-09 6:53 
QuestionFreeze first item in listbox from scrolling. Pin
Member 23244838-Dec-09 10:28
Member 23244838-Dec-09 10:28 
QuestionDynamicResource not working, but StaticResource does ??? Pin
assassin3168-Dec-09 3:18
assassin3168-Dec-09 3:18 
QuestionSession variables in Silverlight or wcf service Pin
Nekkantidivya7-Dec-09 18:43
Nekkantidivya7-Dec-09 18:43 
AnswerRe: Session variables in Silverlight or wcf service Pin
Abhinav S10-Dec-09 6:37
Abhinav S10-Dec-09 6:37 
QuestionApplication menu button issue Pin
trey white7-Dec-09 8:40
trey white7-Dec-09 8:40 
QuestionWPF Ribbon bar issue Pin
trey white7-Dec-09 8:35
trey white7-Dec-09 8:35 
AnswerRe: WPF Ribbon bar issue Pin
trey white7-Dec-09 11:09
trey white7-Dec-09 11:09 
QuestionError in RoutedEventHandler() Pin
Anu_Bala7-Dec-09 0:04
Anu_Bala7-Dec-09 0:04 
Hi, Im using WPF controls in MFC.IN one dialog i want to get these controls,textbox,button etc.,And for button i wrote function.But it shows error at bolded line as
error C3364: 'System::Windows::RoutedEventHandler' : invalid argument for delegate constructor; delegate target needs to be a pointer to a member function

HWND GetHwnd(HWND parent,CSampleWPF* view,int x, int y, int width, int height)
{
// Create an HwndSource WPF object
System::Windows::Interop::HwndSourceParameters^ sourceParams = gcnew System::Windows::Interop::HwndSourceParameters ("WPFSourceWindow");
sourceParams->PositionX = x;
sourceParams->PositionY = y;
sourceParams->Height = height;
sourceParams->Width = width;
sourceParams->ParentWindow = IntPtr(parent);
sourceParams->WindowStyle = WS_VISIBLE | WS_CHILD;
HwndSource^ source = gcnew System::Windows::Interop::HwndSource(*sourceParams);

view->m_wpfTextBox = gcnew TextBox();
view->m_wpfTextBox->Width=100;
view->m_wpfTextBox->Height=20;
view->m_wpfTextBox->Text = "Some WPF Text";
source->RootVisual = view->m_wpfTextBox;

view->m_Button = gcnew Button();
view->m_Button->Height=60;
view->m_Button->Margin=Thickness(2);
view->m_Button->Background::set(Brushes::SkyBlue);
view->m_Button->Click += gcnew RoutedEventHandler(view->m_Button,&CSampleWPF::OnBtnExit); source->RootVisual = view->m_Button;
return (HWND) source->Handle.ToPointer();
}

void CSampleWPF::OnBtnExit(Object^ sender, RoutedEventArgs^ e)
{
AfxMessageBox(_T("Simple message box."));

}

And also in output,its shows only the button not the textbox.Wats the mistake??

Anu

QuestionUsing WPF Browser application in website. Pin
Hema Bairavan6-Dec-09 18:02
Hema Bairavan6-Dec-09 18:02 
QuestionSimple templated grid row. Pin
Dunge6-Dec-09 9:21
Dunge6-Dec-09 9:21 
QuestionScaleTransform sometimes produces glaring artifacts [modified] Pin
fjparisIII5-Dec-09 13:47
fjparisIII5-Dec-09 13:47 
AnswerRe: ScaleTransform sometimes produces glaring artifacts [modified] Pin
Insincere Dave6-Dec-09 13:55
Insincere Dave6-Dec-09 13:55 

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.