Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the type of Content property?

- String- Integer- Object- Text

user-image
Question added by Mohannad Bakbouk , Full Stack Web Developer , Almohtaseb
Date Posted: 2016/10/19
Abdul Rafi K
by Abdul Rafi K , Technical Lead , Symphony Teleca

A content is an object which has the ability to contain other controls.

 

WPF sample:

<Button> <StackPanel> <Ellipse Height="40" Width="40" Fill="Blue"/> <TextBlock TextAlignment="Center">Button</TextBlock> </StackPanel> 

</Button> 

 

C# Code reference:

// Create a Button which contains a DateTime object as its content. Button objectContent = new Button(); DateTime dateTime1 = new DateTime(2004, 3, 4, 13, 6, 55); objectContent.Content = dateTime1;

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.