Sei sulla pagina 1di 2

What is a Freezable? Ans: A freezable object is one that has a mechanism that allows you to "Freeze" it.

This locks downs all the state and makes the object immutable. This makes t he object more performant to use and safer to share between threads. Ques: 2 What is Path animation? Ans: Path animation in which the object moves along the path specified by the Pa th geometry. As the animation progresses, it reads the X-axis, Y-axis and angle information from the path geometry and generates the output. These are useful wh en an object has to be animated along a complex path. Ques: 3 What is the use of System.Windows.Media namespace? Ans:This is the root namespace of several other media related namespaces. It pro vides different types to work with animations like 3D rendering, text rendering and other multimedia services. Ques: 4 What are the core WPF assemblies? Ans:The core WPF assemblies are, WindowsBase.dll:- This is the core types constituting the infrastructure of WPF API. PresentationCore.dll:- It defines numerous types constituting foundation of WPF GUI layer. PresentationFoundation.dll:- It defines WPF control types, animation & multimedi a support, data binding suport and other WPF services. Besides these three libraries WPF also uses an unmanaged binary called milcore .dll which acts as a bridge between WPF assemblies and DirectX runtime layer. Ques: 5 How to define a button USING XAML? Ans:To define a button in WPF using XAML, Syntax is given below<Button Name="btnName">btnCaption</Button> Example:<Button Name="btnClick">Click Me</Button> Here the <Button> element specifies the use of the Button class. What is the use of System.Windows.Navigation namespace in WPF? Ans:This namespace contains different classes for navigation between windows. Ques: 7 Which namespace is used to work with 3D in WPF. Ans:System.Windows.Media.Medi3D namespace is used for working with 3D. Ques: 8 What is a Routed event? Ans:In WPF application it contains many elements. These elements exist in an ele ment tree relationship with each other. A routed event is a type of event that c an invoke handlers on multiple listeners in an element tree, rather than just on the object that raised the event. Ques: 9 Can you explain how we can separate code and XAML? Ans: This is one of the most important features of WPF, separating the XAML fr om the code to be handled. So designers can independently work on the presentati on of the application and developers can actually write the code logic independe

nt of how the presentation is. Ques: 10 What kind of documents are supported in WPF? Ans: There are two kind of major document supported in WPF Fixed format docume nts and Flow format document. Fixed format documents look like PDF format. They display content regardless of screen size and resolution. But flow format docume nt adjust depending on screen size and resolution. What are dependency properties? Ans:These dependency properties belong to one class but can be used in another. Consider the below code snippet:<Rectangle Height="72" Width="131" Canvas.Left="74" Canvas.Top="77" /> Height and Width are regular properties of the Rectangle. But Canvas. Top and Ca nvas. Left is dependency property as it belongs the canvas class. It is used by the Rectangle to specify its position within Canvas. Ques: 12 What is XAML extensible markup language? Ans:XAML is an extensible markup language based on XML. XAML can be thought of a s a declarative script for creating .NET 3.0 UI. It is particularly used in WPF as a user interface markup language to define UI elements, data binding, eventin g and other features. It is also used in Windows Workflow Foundation (WF), in wh ich the workflows themselves can be defined in XAML code. Ques: 13 What is XBAP? Ans:XBAP means XAML Browser Application. XBAP allows for WPF applications to be used inside a browser. For this .NET framework is required to be installed on th e client system and hosted applications run in a partial trust sandbox environme nt. Ques: 14 What is WPF? Ans:Windows Presentation Foundation (WPF) is the presentation subsystem feature of the .NET Framework 3.0,that provide good design and advance controls. Silverl ight is the Subset of WPF. Through WPF we can create Windows and WebBrowser Appl ication.

Potrebbero piacerti anche