?????: ?? DynamicResource ?? ????? ???? ??? ?? ???? ???????? ??????, ?? ?????? ????? WPF ????????? ??? ??

???? ?????? ???? ??????
???? ID: 2651992 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

?? ???????? ?? ????? ????:
  • ??? ?? ?? Microsoft Windows ????????? ???? (WPF) ????????? ?? Microsoft ?????? ????? ????????? ????? 3.0 ?? Microsoft.??? ????? 3.5?
  • ????????? ???? ????????, ?? ??? ???????? ????????? XAML ????? ??? ????????? ???? ???
    • ???? ???????? ?? ????? ???? ?? ?? DynamicResource ??? ???????? ?????? ?? ???? ?????? ?? ???,
      <Application.Resources>
      
      <Color x:Key="color1">#ff4050ff</Color>
      
      <SolidColorBrush x:Key="brush1" Color="{DynamicResource color1}"/>
      
      </Application.Resources>
    • ???? ???????? ?? ??? ??? ???????? ?? ?? DynamicResource ?? WPF ????? ?? ?????????? ???????? ?? ???? ???????? ???? ?????? ?? ???,
      <Window x:Class="WpfApplication6.Window1"
      
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      
      Title="Window1" Height="300" Width="300" Background="{DynamicResource brush1}">
      
      </Window>
  • ?? ????? ?? ????? ?? ?????????? ???????? ?? ???????? ??? ?????

?? ???????? ???, ???????????? ?? ?? ?????? ?????? ???????? (GC) ??? ??? ??? ??? ?? ??? ?? ???? ???? ???? ???? ????? ?? ?????????? ???????? ?? ?? ????, ?? ???? ?????? ??? ??? ??? ?? ??? ??? ??? ?? ???, ?? ?????? ????? ???? ??? ?????, ?? ??????? ?? System.OutOfMemoryException ??????

??? ?? ?????? ??????? ???? ???? ??, ?? Microsoft ????????? ?????? ????????? ????? 4?

????

?? ?????? ????? ???? ?? ??????? ??? ?????? ????? ?????? ??? WPF ??-???? wires ResourceReferenceExpression???????? ?? ????? ?? ?????????? ???????? ?? ????? ?? ??? ?? ?????? ?? ??? ?????? ???? ??? ?????, ?? ?????????? ???????? ??? ?? ??? ???? ?? ??? ?? ?? ??, ?? ?? ????? ?????? ?????? ???? ?????? ???? ???

????????

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

?? ?? ??????? ???????? Microsoft ?? ?????? ??? ?? ?????, ???? ?? ???? ??? ?????? ?????? ?? ??? ???? ?? ??? ?????? ??? ?? ?? ?? ??????? ?????? ?? ????? ?? ??? ??? ???? ????? ???????? ?? ???? ???? ????

?? ?????? ?? ?? ???? ?? ???, ???????? ??????? ???? ?? ??? Microsoft ?????? ?????? ???? ?? ?????? ????? ?????? ????? ?? ???? ??? ??????? ?? Microsoft ?????? ?????? ???? ?? ??? ?????? ?? ???? ???? ?? ???, ????? Microsoft ??? ???? ?? ????:
http://support.microsoft.com/contactus/?ws=support
??? ????? ?????? ???, ????? ?? ?????????? ?????? ????? ?? ??? ???? ???? ??? ???? ???? ?? ???? ?? ??? Microsoft ?????? ????????? ????????? ???? ?? ?? ??? ????? ?????? ???? ?????? ?? ?????? ????? ???????? ?????? ???????? ?? ?? ???????? ?? ????? ??? ???????????? ?????? ?? ????? ????, ??????? ?????? ????? ???? ??????

??????????

?? ???????? ?? ???? ???? ?? ???, ?? Microsoft ???? ?????? ?????? ????? 3.5.1 ????? ???????? ???????? ??? ?? ??? ?? ??? ??? ???????? ?? ???????:
  • Windows 7 ?????? ??? 1 (SP1)
  • Windows Server 2008 R2 ?????? ??? 1 (SP1)


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

???????? ??????? ????? ?? ?? ??? ??, ?? ?? ?? ???????? ?? ???? ???? ?? ??? ???? ???????? ?? ???????? ???? ?????

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

?? ???????? ?? ??????? ??????? ??? ????? ????????? (?? ??? ?? ????? ?????????) ??? ?? ????? ?????? ??? ???????? ???? ?????? ?? ???, ?? ??????? ?? ??? ??????? ????????? ??? (UTC ???) ???????? ???? ???? ??? ?? ????? ??????? ????? ???, ?? ??? ??????? ??? ??? ?????? ???? ???? ??? UTC ?? ??????? ??? ??? ???? ????? ?? ???, ?? ????? ???? ??? ???? ??? ??? ?????? ?? ??? ???????? ???? ?????

F?? Windows ?? x86-?????? ????????? x ??? ??????? 7
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
????? ?? ???????? ?? ???????????? ?? ???????????????????????
Presentationframework.dll3.0.6920.57385,283,84016-Dec-201101: 49x-86
Windowsbase.dll3.0.6920.57381,253,37616-Dec-201101: 49x-86
Presentationcore.dll3.0.6920.57384,218,88016-Dec-201101: 49x-86
Presentationframework.dll3.0.6920.57385,283,84016-Dec-201101: 49x-86
Presentationhostdll.dll3.0.6920.5738131,36016-Dec-201101: 49x-86
Presentationhost.exe4.0.40305.0296,22416-Dec-201101: 49x-86
Presentationhostproxy.dll4.0.31106.0100,13616-Dec-201101: 49x-86
Windowsbase.dll3.0.6920.57381,253,37616-Dec-201101: 49x-86

F?? x64-?????? ??????? Windows 7 ?? Windows Server 2008 R x ??? ???????2
?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
????? ?? ???????? ?? ???????????? ?? ???????????????????????
Presentationcore.dll3.0.6920.57383,998,72016-Dec-201101: 42x-64
Presentationframework.dll3.0.6920.57384,640,76816-Dec-201101: 42x-86
Presentationhostdll.dll3.0.6920.5738172,32016-Dec-201101: 42x-64
Presentationhost.exe4.0.31106.0321,31216-Dec-201101: 42x-64
Presentationhostproxy.dll4.0.31106.0110,88816-Dec-201101: 42x-64
Windowsbase.dll3.0.6920.57381,114,11216-Dec-201101: 42x-86
Presentationframework.dll3.0.6920.57385,283,84016-Dec-201101: 49x-86
Windowsbase.dll3.0.6920.57381,253,37616-Dec-201101: 49x-86
Presentationcore.dll3.0.6920.57384,218,88016-Dec-201101: 49x-86
Presentationframework.dll3.0.6920.57385,283,84016-Dec-201101: 49x-86
Presentationhostdll.dll3.0.6920.5738131,36016-Dec-201101: 49x-86
Presentationhost.exe4.0.40305.0296,22416-Dec-201101: 49x-86
Presentationhostproxy.dll4.0.31106.0100,13616-Dec-201101: 49x-86
Windowsbase.dll3.0.6920.57381,253,37616-Dec-201101: 49x-86



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

?? ?????? ?? ?? ???? ?? ???, ????? ??????? ??? ?? ???? ?? ?? ????? ????:
  • ?? ????? ??StaticResource ???? ???????? ??? ??? ???????? ?????? ?? ???? ?????? ?? ???, ????? ???? ?? ??? "?????" ??? ??? ????? ??? ?? XAML ????? ??? ??? ?? ???? ??? ????????:
    <Color x:Key="color1">#ff4050ff</Color> 
    <SolidColorBrush x:Key="brush1" Color="{StaticResource color1}"></SolidColorBrush>
  • ??? ????x: ???? ' % ws ' ?? ??? ??? ?????? DynamicResource ????? ???? ???? ??? ?????? ?? ???, ????? ???? ?? ??? "?????" ??? ??? ????? ??? ?? XAML ????? ??? ??? ?? ???? ??? ????????:
    <Application.Resources>
            <Color x:Key="color1">#ff4050ff</Color>
            <SolidColorBrush x:Key="brush1" x:Shared="False" Color="{DynamicResource color1}" />
        </Application.Resources>



??????

?? ???? ??? ???? ??????? ?? ??? DynamicResource ??????? ?????????, ????? MSDN ??? ???? ?? ????:
DynamicResource ??????? ????????? ?? ???? ??? ??????? ???????
WPF brushes ?? ???? ??? ???? ??????? ?? ???, ????? MSDN ??? ???? ?? ????:
WPF brushes ?? ???? ??? ??????? ???????

??????

Microsoft ?? ?????? ?? ?? ?? ?? "?? ?? ????" ???? ??? ???????? Microsoft ???????? ??? ?? ?????? ???

???

???? ID: 2651992 - ????? ???????: 10 ????? 2012 - ??????: 1.0
???? ???? ???? ??:
  • Microsoft .NET Framework 3.0
  • Microsoft .NET Framework 3.0 Service Pack 1
  • Microsoft .NET Framework 3.0 Service Pack 2
  • Microsoft .NET Framework 3.5
  • Microsoft .NET Framework 3.5 Service Pack 1
??????: 
kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew kbmt KB2651992 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:2651992

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

 

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