CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    24

    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 / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    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
  •  





Click Here to Expand Forum to Full Width

Featured