Reporter | Alexander Shvedov (shvedov) |
---|---|
Created | Jul 25, 2011 5:04:27 PM |
Updated | Oct 12, 2011 4:07:48 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Alexander Shvedov (shvedov) |
Subsystem | Language - XAML |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
When setting markup extension properties via nested elements syntax, the StaticResource.ResourceKey reference is unresolved:
..and works fine if real markup extension class name is specified:
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <UserControl.Resources> <SolidColorBrush x:Key="brush" Color="Red" /> </UserControl.Resources> <Button> <Button.Background> <StaticResource> <StaticResource.ResourceKey>brush</StaticResource.ResourceKey> </StaticResource> </Button.Background> </Button> </UserControl>
..and works fine if real markup extension class name is specified:
<Button> <Button.Background> <StaticResource> <StaticResourceExtensions.ResourceKey> brush </StaticResourceExtensions.ResourceKey> </StaticResource> </Button.Background> </Button>