Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

XAML Tags RSS

4 replies

Last post Jan 21, 2009 02:28 PM by Andrejt

(0)
  • tconz

    tconz

    0 Points

    12 Posts

    XAML Tags

    Jan 21, 2009 08:38 AM | LINK

    Hi everbody,

    does someone knows, which XAML Tags are used in which Case. Is there a reference or an exsiting XSD description which specifics the Tags.

    For example for a XAML Document i can use:

    <Page></Page>

    <UserControl></UserControl>

    <Canvas></Canvas>

    but which are the fitting subTags?

     Thx Tobi

  • Lars Buchleitner

    Lars Buchlei...

    Participant

    1667 Points

    336 Posts

    Re: XAML Tags

    Jan 21, 2009 10:48 AM | LINK

     I may be wrong, but it´s basicly the System.windows.control namespace of net for silverlight, isn´t it?

  • andrejt

    andrejt

    Participant

    902 Points

    141 Posts

    Re: XAML Tags

    Jan 21, 2009 01:51 PM | LINK

    Yes, UserControl and Canvas are both in System.Windows.Controls namespace (System.Windows.Controls assembly). A Page is derived from a UserControl in your project.

    In Xaml, these are controlled with the default namespace (http://schemas.microsoft.com/winfx/2006/xaml/presentation).

    Not sure exactly what you mean by fitting subTags...

    If you're asking for which tags can you put in your Xaml, well that depends on which Xaml you want to talk about and what libraries you're referencing :) Xaml is a declarative language, used in more than one technologies (WPF, Silverlight & WF to say the least); tags in the Xaml represent objects, which are available to you from the context of your Xaml page. You include a reference to your object library by inserting additional namespace aliases on the (usually) topmost element in your page. With Silverlight, a default namespace is already there when you create a new Page - that, generally speaking, means that you can include all presentation elements, available in the Silverlight by default - take a look at the System.Windows.Controls namespace to get the idea.

    Andrej Tozon
    MVP - Client Application Development | Blog | Twitter
  • tconz

    tconz

    0 Points

    12 Posts

    Re: Re: XAML Tags

    Jan 21, 2009 01:59 PM | LINK

    Hey,

     i want to obtain a XAML description which i can somehow directly display in a browser without compiling. So, as i understand so far it must be a XAML file which only contains the Silverlight Tags.

    I actually found some examples projects in the net which only containt the silverlight.js, a html file and the XAML description.

    The question is which tags (objects) can i use in my XAML description to approach this solution?

     

    Thx Tobi

     

  • andrejt

    andrejt

    Participant

    902 Points

    141 Posts

    Re: Re: XAML Tags

    Jan 21, 2009 02:28 PM | LINK

    You're probably thinking of "loose Xaml"... All objects, available in the default presentation namespace, should be ok I guess, as long as you don't add any code(behind). Your server should have a .xaml MIME type properly set up too.

    Silverlight is not a requirement for a loose Xaml to be displayed. .NET framework (at least 3.0, or presentation/WPF part) will do just fine.

    Andrej Tozon
    MVP - Client Application Development | Blog | Twitter