Back to Main Load Limitations Page

Cannot Load Image Resource Specified via Binding


If the URI to a resource (such as an image) is supplied by a binding, the resource will not appear when the designer loads. Example:

<Window
		  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		  x:Class="CiderWindowsApplication20.Window1"
		  Title="Main Window">
		  <Window.Resources>
		    [<XmlDataProvider] x:Key="bloggers" Source="\ciderbloggers.xml" XPath="Bloggers/Person"/>
		  </Window.Resources>
		  <Grid DataContext="{StaticResource bloggers}">
		    <Image Source="{Binding XPath=@Picture}"/>
		  </Grid>
	
</Window>

StackPanel Ignores Style Setter for Background Property


The designer will not reflect a Style that sets the Background property.

<Window x:Class="CiderWindowsApplication20.Window1"
		        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
		        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		        Title="Contacts"
		        Height="287"
		        Width="488"
		         >
		  <Window.Resources>
		        <Style TargetType="{x:Type StackPanel}">
		          <Setter Property="Background" Value="Red"/>
		        </Style>
		  </Window.Resources>
		  <Grid>
		    [<StackPanel] Margin="97,52,0,0" HorizontalAlignment="Left" Width="216" Height="105" VerticalAlignment="Top"  />
		  </Grid>
	
</Window>

Resources Do Not Load using Component URI


The designer will not load resources that are loaded from referenced assemblies using component URI syntax, as shown below:

		    <Image Name="image1" Source="pack://application:,,,/CustomLib;component/image.jpg" Height="50" Width="50" />
	

Animated and Static Cursors Do Not Load


The designer will not load animated or static cursors that are specified as resources, as shown below:

<Window x:Class="CiderWindowsApplication20.Window1"
		        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
		        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
		        Title="Contacts"
		        Height="287"
		        Width="488"
		         >
	

		  <Grid  Margin="2">
		    [<Grid.ColumnDefinitions>]
		      [<ColumnDefinition] Width="0.493697478991597*" />
		      [<ColumnDefinition] Width="0.506302521008403*" />
		    [</Grid.ColumnDefinitions>]
		    <Border Margin="2" BorderBrush="Black" BorderThickness="1" Padding="2">
		      [<TextBlock] Cursor="Images/Horse.ani" TextWrapping="Wrap">Text block with animated horse [cursor</TextBlock>]
		    </Border>
		    <Border Grid.Row="1" Grid.Column="1" Margin="2" BorderBrush="Black" BorderThickness="1" Padding="2">
		      [<TextBlock] Cursor="Images/Plus! AqHand.cur" TextWrapping="Wrap">Text block with fishy static [cursor</TextBlock>]
		    </Border>
		  </Grid>
	

		  </Window>
	

Open designers are not refreshed when external resources (eg: resource dictionaries) are updated. More specifically,


*Open designers are not automatically refreshed when external resource dictionaries changed
*Closing an open designer and re-opening it will resolve the problem.
*External resource dictionaries must to be saved before closing and opening the designer to see changes that result from the update.

Back to Main Load Limitations Page
Microsoft Communities