Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-274391: XAML unresolved references in markup extensions properties

$
0
0
Reporter Alexander Shvedov (shvedov) 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:
<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>

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>