Back to Main Load Limitations Page

Resizing Image or Video Controls in Designer Has Known Issues


When resizing an image or video control at design time, the position of the control may inadvertently change. There is also an issue with resizing through a size of 0,0.

The workaround is to use either the property browser or XAML Editor.

ImageSource/BitmapSource Fails to Load


Using an ImageSource, as shown below, will not load in the designer.

<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>
		    <Grid.Resources>
		      [<ImageSource] x:Key="s1">image.jpg</ImageSource>
		    </Grid.Resources>
		    <Button>
		      <Button.Background>
		        [<ImageBrush] ImageSource="{StaticResource s1}" />
		      </Button.Background>
		    </Button>
		  </Grid>
	
</Window>

Similarly, setting the ""ImageSource"" property on the ""ImageBrush"" will also fail with a parse error.

<Window x:Class="AvalonCSWindowApplication.Window1"
		    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		    Height="300" Width="300" Title="Test">
	

		  <Grid>
		    <Button>
		      <Button.Background>
		        [<ImageBrush>]
		          [<ImageBrush.ImageSource>image.jpg</ImageBrush.ImageSource>]
		        [</ImageBrush>]
		      </Button.Background>
		    </Button>
		  </Grid>
	
</Window>

Back to Main Load Limitations Page
Microsoft Communities