In WPF, an interaction show how an analysis interacts with controls located in that view. The most normally known interactions are of two types −
Behaviours were introduced with Expression Blend 3 which can encapsulate some of the functionality into a reusable constituent. To add additional behaviours, you can attach these components to the controls. Behaviours present more flexibility to design complex user interactions simply.
Let’s take a look at a simple instance in which ControlStoryBoardAction behaviour is attach to controls.
When you accumulate and execute the above code, it will construct the following window which contains an ellipse and two buttons.
When you press the play button, it will start moving from left to right and then will return to its unique position. The stop button will stop the association the ellipse.
Drag and Drop on user interface can considerably advance the efficiency and productivity of the application. There are very a small number of applications in which drag and drop features are used because people think it is complex to implement. To a level, it is difficult to handle a drag and drop feature, but in WPF, you can handle it quite easily.
Let’s take a easy instance to understand how it works. We will create an application wherein you can drag and drop colour from one rectangle to another.
When you run your application, it will produce the following window.
If you drag a colour from the rectangle on the right side and drop it on the large rectangle to the left, you will observe its effect immediately.
Let’s drag the 4th one from the right side.
You can observe that the colour of the target rectangle has transformed. We suggest that you execute the above code and research with its description.
Windows Presentation Foundation(WPF) Related Interview Questions
|C#. NET Interview Questions||ASP.NET Interview Questions|
|Advanced Dot Net Interview Questions||OOPS Interview Questions|
|MVC Framework Interview Questions||MVVM Interview Questions|
|Windows Communication Foundation (WCF) Interview Questions||Dot Net Framework Interview Questions|
|Advanced C# Interview Questions||XAML Interview Questions|
|Win32 Api Interview Questions||Basic C Interview Questions|
|Asp Dot Net Mvc 4 Interview Questions||Windows Workflow Foundation Interview Questions|
Windows Presentation Foundation(WPF) Related Practice Tests
|C#. NET Practice Tests||ASP.NET Practice Tests|
|OOPS Practice Tests||Windows Communication Foundation (WCF) Practice Tests|
|Dot Net Framework Practice Tests|
Windows Presentation Foundation(wpf) Tutorial
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.