I understand what you are saying. It makes sense but does not behave as hoped. Below is an entire sample of the LibraryContainer. It's empty but shows the odd behaviors I'm getting. Namely: no resizing, a background rectangle I can't rid myself of..
Any suggestions are appreciated... rob
< s:SurfaceWindow x:Class="SurfaceApplication1.SurfaceWindow1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.microsoft.com/surface/2008"
Title="SurfaceApplication1"
>
< s:SurfaceWindow.Resources>
< ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
< XmlDataProvider x:Key="MyData" XPath="CoverList" x:Name="xdpList">
< !-- Describe teh data grouping and bind to the data above -->
< CollectionViewSource
x:Key="MySourceOfData"
Source="{Binding Source={StaticResource MyData}, XPath=Item}" >
< CollectionViewSource.GroupDescriptions>
< PropertyGroupDescription PropertyName="@Size" />
< /CollectionViewSource.GroupDescriptions>
< /CollectionViewSource>
< DataTemplate x:Key="MyDataTemp">
< Border BorderThickness="1" BorderBrush="White" Margin="3">
< Image Source="{Binding XPath=@Image}">
< /Border>
</DataTemplate>
</s:SurfaceWindow.Resources>
<Grid Background="{StaticResource WindowBackground}" >
<s:ScatterView>
<s:LibraryContainer Name="MainLibraryContainer"
Width="400" Height="200"
ViewingMode="Bar"
ItemsSource="{Binding Source={StaticResource MySourceOfData}}" CanSwitchViewingMode="False" IsActive="True">
<!-- Provide the view if a stack view select (not in use) -->
<s:LibraryContainer.StackView>
<s:StackView
NormalizedTransitionSize="1,1"
ItemTemplate="{StaticResource MyDataTemp}">
</s:StackView>
</s:LibraryContainer.StackView>
<!-- bar view of the data -->
<s:LibraryContainer.BarView>
<s:BarView
Rows="1"
ItemTemplate="{StaticResource MyDataTemp}">
</s:BarView>
</s:LibraryContainer.BarView>
</s:LibraryContainer>
</s:ScatterView>
</Grid>