.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> WPF >> Post New Question Subscribe to Interview Questions

How to define a button USING XAML?

Posted By :Abhisek Panda     Posted Date :February 22, 2010    Points :10   Category :WPF 
To define a button in WPD using XAML use the following syntax,

<Button Name="btnName">btnCaption</Button>

Example:-
<Button Name="btnClick">Click Me</Button>

Here the <Button> element specifies the use of the Button class.

You can also find related Interview Question to How to define a button USING XAML?  below: 

How to define a button USING XAML?

  
To define a button in WPF using XAML, Syntax is given below-



Example:-




Here the

Define namespace in C++ ?

  
It is a feature in c++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the definitions. (More...)

Define precondition and post-condition to a member function.

  
Precondition:
A precondition is a condition that must be true on entry to a member function. A class is used correctly if preconditions are never false. An operation is not responsible for doing anything sensible if its precondition fails to hold.
For example, the interface invariants of stack class say nothing about pushing yet another element on a stack that is already full. We say that isful() is a precondition of the push operation.


Post-condition:
A post-condition is a condition that must be true on exit from a member function if the precondition was valid on entry to that function. A class is implemented correctly if post-conditions are never false.
For example, after pushing an element on the stack, we know that isempty() must necessarily hold. This is a post-condition of the push operation. (More...)

Define the "integrity rules"

  
There are two Integrity rules.
1.Entity Integrity: States that "Primary key cannot have NULL value"

2.Referential Integrity: States that "Foreign Key can be either a NULL value or should be Primary Key value of other relation. (More...)

Can I add more than one .xaml pages in silverlight application?

  
Yes, you can have multiple .xaml files in a single project.

In the App.xaml, in the method Application_Startup you can choose, which page you want to

initially display. (More...)

How to clear a datagrid on a button click?

  
You need to Clear the DataSource of the dadaGrid.
So try this: dataSet1.Clear();
dataGrid1.DataSource = dataSet1.TableNameHere.DefaultView;
or
C#: dataGrid1.DataSource = null;
VB: dataGrid1.DataSource = nothing (More...)

What is contained in the AppManifest.xaml file in silverlight?

  
The AppManifest.xaml file contains the deployment details needed to run the silverlight application.

Basic example:

(More...)

Suppose you want a certain ASP.NET function executed on MouseOver for a certain button. Where do you add an event handler?

  
Add an OnMouseOver attribute to the button. Example: btnSubmit.Attributes.Add("onmouseover","someClientCodeHere();"); (More...)

Whether XAML and WPF are same?

  
No,XAML is not meant only for WPF.XAML is a XML-based language and it had various variants.

WPF XAML is used to describe WPF content, such as WPF objects, controls and documents. In WPF XAML we also have XPS XAML which defines an XML representation of electronic documents. (More...)

What is Silverlight XAML?

  
Silverlight XAML is a subset of WPF XAML meant for Silverlight applications. Silverlight is a cross-platform browser plug-in which helps us to create rich web content with 2-dimensional graphics, animation, and audio and video. (More...)

To define abstract class in VB which keyword is used?

  
MustInherit keyword is used to create an abstract class in VB. (More...)

To define abstract method which keyword is used in VB?

  
MustOverride keyword is used to define an abstract method in VB. (More...)

In Analysis service what is the technology used define the expressions?

  
Multidimensional Expressions also abbrevated as MDX (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend