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

    Meaning of x:Key and x: Name NEED HELP!!!

    Hello!
    Please, I am absolutely new here and just started Could someone please, help me find a source on the net which explains well for beginners what mean x: Key and x:Name in following example:

    Code:
    <Grid>
          <Grid.Resources>
               <Style x:Key="PinkButton" TargetType="Button">
        
                     <Setter Property="Background" Value="Pink"/>
               </Style>
         </Grid.Resources>
    
          <Button
                x:Name="myButton"
                ...>
        
         </Button>
    </Grid>
    Is x sth similar like the kind of "object" that is being managed at the right moment?

    Thanks a lot!

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,271

    Re: Meaning of x:Key and x: Name NEED HELP!!!

    Quote Originally Posted by NewKidOfTheBlock View Post
    Is x sth similar like the kind of "object" that is being managed at the right moment?
    Yes, in that context it is.
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

Tags for this Thread

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