WPF INTERVIEW QUESTION & ANSWERS
26. |
What class is used to save and load the content of a RichTextBox? |
|
To save or load the content of a RichTextBox, use the TextRange class. |
27. |
What are the types of binding in WPF? |
|
There are two types of binding in WPF : - Key Binding
- Mouse Binding
|
28. |
What is the difference between key binding and mouse binding? |
|
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. |
29. |
What type is used to render WPF output to a bitmap? |
|
Use RenderTargetBitmap to render WPF visuals to a bitmap. |
30. |
What is the base class for all renderable types in WPF? |
|
All elements that are renderable must inherit from Visual. |