V 1.0 Programming III. XAML Data Binding I.. V 1.0E-NIK, 2014 XAML namespaces Namespaces define the allowed tags and attributes The one without the prefix

  • View
    215

  • Download
    0

Embed Size (px)

DESCRIPTION

V 1.0ÓE-NIK, 2014 XAML namespaces This imports the most basic WPF-centered.NET namespaces into the XAML: –System.Windows –System.Windows.Controls –System.Windows.Data –System.Windows.Media –System.Windows.Navigation... etc. No need for prefixes in tags/attributes 3

Text of V 1.0 Programming III. XAML Data Binding I.. V 1.0E-NIK, 2014 XAML namespaces Namespaces define the...

V 1.0 Programming III. XAML Data Binding I. V 1.0E-NIK, 2014 XAML namespaces Namespaces define the allowed tags and attributes The one without the prefix (xmlns) allow us to use the tags defined in the referenced namespace without any prefix (e.g. Window, Grid...) The one with prefix (xmlns:x) allow us to use the tags defined in the referenced namespace with the specified prefix (x:Name, x:FieldModifier) 2 V 1.0E-NIK, 2014 XAML namespaces We can import any arbitrary.NET namespace clr-namespace:name_of_namespace NO SPACES ALLOWED!!! assembly: Typically DLL/EXE file that contains the class (without the extension) refer to the manual 5