Tech Off Thread

1 post

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

In WPF how to set style with fold paper tip image style

Back to Forum: Tech Off
  • User profile image
    ramaT

    I have managed to style a rectangle such that there is a fold paper tip image style in top right corner side. My requirement is I need to have style with multi-document view image. I can able to achive this below xaml. Now I need to set fold paper tip image style.

    Thanks in advance.

     

     

    <Window.Resoures>

     

     

     

      

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    <VisualBrush x:Key="Icon"> <VisualBrush.Visual> <Canvas Width="10" Height="10"> <Rectangle Width="20" Height="20" Fill="White" StrokeThickness=".2" Stroke="Gray" Canvas.Left="1" Canvas.Top="2"/> <Rectangle Width="20" Height="20" Fill="White" StrokeThickness=".2" Stroke="Gray" Canvas.Left="2" Canvas.Top="1"/> <Rectangle Width="20" Height="20" Fill="White" StrokeThickness=".2" Stroke="Gray" Canvas.Left="3" Canvas.Top="0"/> </Canvas> </VisualBrush.Visual> </VisualBrush> </Window.Resources> <Grid>  <ListBox> <Border Background="{StaticResource Icon}"> <ListBoxItem Padding="50">One</ListBoxItem> </Border> <ListBoxItem>Two</ListBoxItem> <ListBoxItem>Three</ListBoxItem> </ListBox> </Grid>

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.