Click here to Skip to main content
15,563,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, please how i could implement this functionality , i have to use a listbox or CheckedListBox or other control. Please any help will be welcome

http://i.stack.imgur.com/JFFR7.png[^]

XML
<Border x:Name="border" BorderThickness="1" BorderBrush="Red">
                          <Grid>
                              <Grid.ColumnDefinitions>
                                  <ColumnDefinition Width="*"/>
                                  <ColumnDefinition Width="Auto"/>
                              </Grid.ColumnDefinitions>
                              <ContentPresenter Grid.Column="0" RecognizesAccessKey="True"
                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                Margin="{TemplateBinding Padding}"
                                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                              <!-- Marca en la esquina superior derecha -->
                              <Polygon x:Name="checkPoly" Points="0,0 24,24 24,0 0,0" Stroke="Purple" StrokeThickness="0" Width="24" Height="24"
                                       VerticalAlignment="Top" HorizontalAlignment="Right" Fill="#22aeff" />
                              <Path Stroke="White" Data="M 6,6 L 9, 9 L 14,2" StrokeThickness="2" Margin="0,1,2,0"
                                    VerticalAlignment="Top" HorizontalAlignment="Right" />
                          </Grid>
                      </Border>


What I have tried:

XML
<Border x:Name="border" BorderThickness="1" BorderBrush="Red">
                          <Grid>
                              <Grid.ColumnDefinitions>
                                  <ColumnDefinition Width="*"/>
                                  <ColumnDefinition Width="Auto"/>
                              </Grid.ColumnDefinitions>
                              <ContentPresenter Grid.Column="0" RecognizesAccessKey="True"
                                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                Margin="{TemplateBinding Padding}"
                                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                              <!-- Marca en la esquina superior derecha -->
                              <Polygon x:Name="checkPoly" Points="0,0 24,24 24,0 0,0" Stroke="Purple" StrokeThickness="0" Width="24" Height="24"
                                       VerticalAlignment="Top" HorizontalAlignment="Right" Fill="#22aeff" />
                              <Path Stroke="White" Data="M 6,6 L 9, 9 L 14,2" StrokeThickness="2" Margin="0,1,2,0"
                                    VerticalAlignment="Top" HorizontalAlignment="Right" />
                          </Grid>
                      </Border>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900