September 03, 2006

WPF - Content Model

Content Model

  • templates for many controls, such as labels and captions
  • contain placeholders for additional content, which allows for the composition of elements

  • flexible content model that enables use of any content in these placeholders, including other controls, drawings, or animations and obviously text, or a bitmap


<Page x:Class="TestXBAP.Page1"



Title="Page1" >


<Button Name="dkdk" Width="126" HorizontalAlignment="Right">

<Image Source=" "/>


<Button Name="fw" HorizontalAlignment="Left" VerticalAlignment="Top" Width="166">

<TextBlock>This is Button</TextBlock>


</Grid >