views:

18

answers:

0

Hi All

am creating a buttons dynamically.In my MainView.xaml,am binding these buttons to Canvas with contentcontrol here all buttons are generating as a single control now i have to spit those controls to use.. how can i do this? here is my canvas code

 Canvas Background="White"
             Height="421" HorizontalAlignment="Left" VerticalAlignment="Top"
             Margin="10,6,0,0" Name="grid" 
             Width="516"                              dnd:DragDropManager.DragSourceAdvisor="{StaticResourceadvisor}"dnd:DragDropManager.DropTargetAdvisor="{StaticResource advisor}"

             ContentControl
                      Content="{Binding Path=Workspaces}"
                      ContentTemplate="{StaticResource WorkspacesTemplate}" 
                      HorizontalAlignment="Stretch" VerticalAlignment="Top"    

            Canvas 

AnyOne Help me Plz Thanks In Advance