| WPF-Question-Answers-61-70 | C# Threading QA-41-50 | |
WPF (Windows Presentation Foundation) Question Answers - (71–80) |
ObservableCollection implements INotifyCollectionChanged interface, which allows to update the UI on any updates to the collection. ObservableCollection does not have AddRange method.
KeyBinding allows you to define gestures for commands that consist of a keystroke possibly combined with one or more modifiers, whereas MouseBinding allows you to define gestures for the mouse that can also be optionally combined with modifiers on the keyboard.
TextBlock:
Label:
Windows Communication Foundation is focused on messaging. This API greatly simplifies all sorts of networking and communication tasks. It covers everything from web services to remoting to P2P and more.
Windows Workflow Foundation is a powerful library for building workflow-enabled applications. It utilizes a markup language for declaring workflows in an application, preventing workflows from becoming hard-coded and making it easy to create custom workflow tasks.
"xmlns" defines a namespace in which to resolve XML element names and is defined without a qualifier.
"xmlns:x" defines a namespace with qualifier 'x'. If we want an element or attribute name to be resolved within this namespace, we should qualify it with 'x'.
Example:
<StackPanel x:Name="MyFirstStack" />
StackPanel is resolved in the default WPF namespace. x:Name is resolved within the XAML document namespace.
Object element syntax is the XAML markup syntax that instantiates a CLR class or structure by declaring an XML element.
Declaring an XML element in XAML is equivalent to instantiating the corresponding object via a default constructor. Setting an attribute on the object element is equivalent to setting a property of the same name or hooking up an event handler of the same name.
Markup extensions are the most common means of declaring a data binding. They are identified by the use of curly brackets ({}).
Data binding is needed in WPF because when the data changes its value, the elements that are bound to the data reflect changes automatically. No need to update the UI separately.
Popup has one content property: Child. A Popup can have a maximum of one child, which can be any UIElement.
A Popup displays its content in its own window on the screen. It supports animation when the AllowsTransparency property is set to true and the application is running with full trust.
A Popup is sized to its content by default.
The x:Name attribute allows you to uniquely identify an instance of an object defined in XAML. The value of the x:Name attribute can be referenced in the associated C# or VB code.
| WPF-Question-Answers-61-70 | C# Threading QA-41-50 | |