, , , - . , , , , , .
- -, DependencyObject. ( ) CLR, . . .
:
Document RichTextBox. CLR. , , , CLR. "" RichTextBox . :
public FlowDocument Document
{
get { return (FlowDocument)GetValue(DocumentProperty); }
set { SetValue(DocumentProperty, value); }
}
Document, SetValue DocumentProperty. ? GetValue ? ... ?
. , RichTextBox DocumentProperty. , :
public static DependencyProperty DocumentProperty = DependencyProperty.Register(
"Document",
typeof(FlowDocument),
typeof(RichTextBox));
Register , RichTextBox - , - Document FlowDocument. ... -. , , , .
Document SetValue, SetValue DocumentProperty, , RichTextBox value , ... -. DependencyObject , . , , , Dictionary<DependencyProperty, object> DependencyObject, (, RichTextBox) , GetValue SetValue . , , .
, " ", RichTextBox, .
:
- CLR , . , .
GetValue SetValue, , , , , . - , -, , , . ( , -, . .)
- -, , . .
? .
. . , Binding , SetValue .
. , SetValue , . , : , , .
.. XAML, Background={DynamicResource MyBackground}, MyBackground, . ; SetValue.
. , . , SetValue, .
.. , , SetValue , .
. , , . GetValue , GetValue , . , , .
FontFamily Window ( ), . , , , - FontFamily ( ), FontFamily - (- , DependencyObject).