Results 1 to 2 of 2

Thread: User Control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    User Control

    I have created a user control, it's a button.

    I call my buttons like this but i want to know how to add a text element to my buttons at this stage

    Code:
     <UserControls:UserControl1></UserControls:UserControl1>
                    <UserControls:UserControl1></UserControls:UserControl1>
                    <UserControls:UserControl1></UserControls:UserControl1>
                    <UserControls:UserControl1></UserControls:UserControl1>

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: User Control

    The usercontrol should have a Text (or better a Content) property, then you set the value of that property
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

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