0

Possible Duplicate:
What does “{x:Static}” mean in XAML?

In a xaml file there is:

Command="{x:Static src:CustomCommands.Create}"

What does the x:Static mean? If I remove it then it throws an error when loading the xaml saying it "Cannot create unknown type CustomCommands.Create"

Community
  • 1
  • 1
dan gibson
  • 3,605
  • 3
  • 39
  • 57

1 Answers1

0

http://msdn.microsoft.com/en-us/library/ms742135.aspx

The link above from MSDN mentions:

References any static by-value code entity that is defined in a Common Language Specification (CLS)–compliant way. The static property that is referenced can be used to provide the value of a property in XAML.

MasterMastic
  • 20,711
  • 12
  • 68
  • 90
  • I see. I was thinking it was two values "x:Static" and "src:CustomCommands.Create" but it is actually one value "x:Static src:CustomerCommands.Create". – dan gibson Jun 01 '12 at 02:07