?????? ???? ???? ??????? ??? ??????? ??? ???????? ?? ?????? ???????? ???? ????? Windows

?????? ????????? ?????? ?????????
???? ???????: 938416 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

???????

??? ??????? ??? ???????? ?? Microsoft Windows ?????? Foundation (WPF) ? ?? ???? ????? ???? ???? ???????.

?????

???? ??? ??????? ??? ????? ???????? ?????????:
  • ???? ???? ??? ???????? ??? ??????? P ???? X.
  • ????? ???? X ???? ????? ?? ???? ??? ????? ??? ??? ????? ??? ????????.
  • ??? ?????? ??? ??????? P ?? ???? ???? PropertyDescriptor ????? ?? ???? DependencyProperty ?? ???? PropertyInfo.

???? ??????

??????? ?????? ??? ??? ??????? ?????? ???? ????? ???????.

??????? ??????

?????? ??? ??????? P ?? ???? ???? DependencyProperty.

??????? ???????

???? ?????? ?? ????? INotifyPropertyChanged ??? ???? X.

??????? ???????

????? ??? ??? ???????? OneTime.

?????

????? ??? ?????? ??? ???????.

??????? ????

?? WPF, ????? ????? ??? ???????? ???? ?? ??? ??? ????? ??? ??? ?? ???????? OneTime ??????? ??????? ?? ?????? ?????? (???? X). ?????? WPF ??????? ??????? ??? DependencyProperties ?? ????????? ?? ????? INotifyPropertyChanged.

?? ???? ??? ???? ??? DependencyProperties ? ????? INotifyPropertyChanged ? ?????? WPF ????? ValueChanged. ????? ??? ?????? ??????? ??????? PropertyDescriptor.AddValueChanged ??? ???? PropertyDescriptor ???????? ?? ??????? P. ???? ????? ???? ??? ??????? ??? ????? ????? ?????? (CLR) ?????? ???? ???? ?? ??? ?????? ??? ???? PropertyDescriptorX. ????? CLR ????? ???? ??? ???? PropertyDescriptor ?? ???? ??????. ???? ??? ?????? ????? ???? ?? ??????? ??????:
  1. ???? ????????
  2. ???? PropertyDescriptor
  3. Object X
  4. ????? ??? ????????

    ?????? ???? ??? ???? X ?????? ??? ???????? ???? ?? ????? ????? ??????? ?? ??? "?????".
  5. ?????
????? ?? ??? ??????? ????? ??? ???????? ??? ?? ????? ????? ????? ?????????. ????? ?????? ?????? ??? ?????? PropertyDescriptor ??? ?????? ??? ???? X ???? ????? ??? ?????????. ???? ??? ?????? ???? ??????? ?? ???? X ??? ?? ???? ???? ??? ?? ???? X. ????? ??? ???????? ????? ??? ????????.

???? ?????? ??????? ?????? "?" ???? ?????? ??????? ??????? ???? WPF ???????? ??? ????? ??????? ??????. ???? ?????? ??????? ??????? ????? WPF ?? ???????? ??????? ???????. ???? ?????? ????? ?????? ???? ????? ???? ??? ???? PropertyDescriptor ?? ???? X.

??? ????? ???? ???? ?? ???? ???????? ???????? ??????.
<Label Name="MyLabel">
   <Stack Panel Name="MyStackPanel">
      <TextBlock Text="{Binding ElementName=MyStackPanel, Path=Children.Count}" />
   </StackPanel>
</Label>
?? ??? ?????? ??? ???? ??????? Count ??????? P. ???????? ??? ???? ??? ????? ???? XUIElementCollection ??? ?? ????? ??????? StackPanel.Children.

?? ????? ????? ????? ?? ??? "?????" ??? ?????? X ???? ??? ????? ?????? X. ????? ??? ??????? ????? ????? ????? ????? ??? ???? TextBlock.

?? ????? ????? ?????? ?? ??? "?????" ??? ??????? P ??? ???? DependencyProperty ?? ???? ???? X ?????? ????? INotifyPropertyChanged. ???? ??? ?????? ?? ????? UIElementCollection ????? TextBlock ???? ??? ?????. ???????? ??? ???? ??? ????? StackPanel ?? ??? ????? ? ???? ??? UIElementCollection ????? ??? ???? ??? ??? ????? StackPanel. ???? ??? ?????? ??? ??? ??? UIElementCollection ????? TextBlock ??? ????? ?? ???? ??????? ???????? ????? ?????? ?? code:
MyLabel.Content = <Some New Content>;

???????

???? ???????: 938416 - ????? ??? ??????: 12/???/1428 - ??????: 1.1
????? ???
  • Microsoft .NET Framework 3.0
????? ??????: 
kbmt kbtshoot kbprb KB938416 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????938416

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com