hellow, i have a grid with some images,
i want to nake other grid that will be copy of this grid 'only smaller' i want that evry image i wiil add to the first grig will add also to the other grid/
if some one can help me.
hellow, i have a grid with some images,
i want to nake other grid that will be copy of this grid 'only smaller' i want that evry image i wiil add to the first grig will add also to the other grid/
if some one can help me.
If you use MVVM you have a binding that drives the first grid's contents. Rebind the second grid to the same data member and it will update to show the same contents even after edits were performed on that collection.
Use VisualBrush
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UniformGrid Rows="1">
<StackPanel Name="Original" Width="100" Height="100">
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
<TextBlock Text="Pretend I'm a list of images"/>
</StackPanel>
<Rectangle Name="Thumbnail" Width="50" Height="50">
<Rectangle.Fill>
<VisualBrush Visual="{Binding ElementName=Original}"/>
</Rectangle.Fill>
</Rectangle>
</UniformGrid>
</Page>