WPF beginners questions
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: WPF beginners questions

  1. #1
    Join Date
    Sep 2010

    WPF beginners questions

    Hey all, I'm new to WPFs and I need to learn it. I can do VB.net and C# rather well, so I only need to know a few things.

    How to do you use controls and their properties? I have a text box, and i need to know how (and where) to reference its contents. I tried to reference it in a button_click event but it didn't like that at all.

    How do you manage multiple forms (...or whatever they're called)?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004

    Re: WPF beginners questions

    Post your xaml code and the C# code behind for your text box question.

    What do you mean by 'multiple forms'? In what context are you talking about?

  3. #3
    Join Date
    Nov 2007
    .NET 3.5 / VS2008 Developer

    Re: WPF beginners questions

    Referencing the controls is just the same as you would do in WinForms. Some of the properties have changed. Like the "Text" property of some of the controls was changed to "Content"(TextBlock and ComboBox are two that come to mind). Also, properties like "Enabled" are now "IsEnabled".

    Other than that, you reference the controls the same way.
    My Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center