Treelist to use Vector image defined in the Xaml

3 posts, 1 answers
  1. OmegaMan
    OmegaMan avatar
    8 posts
    Member since:
    Mar 2012

    Posted 05 Jul 2012 Link to this post

    I would like the TreeListView to display a vector image for each Item state instead of a graphics file (png/jpg) and use for example, this path as defined in the Xaml.

    Is that possible?
    <Window.Resources>
       <Path x:Key="MyVectorImage" 
                  x:Shared="False"
                  Stroke="DarkGoldenRod"
                  StrokeThickness="3"
                  Data="M 10,20 C 10,25 40,35 40,17 H 28"
                  Stretch="Fill"
                  Width="100"
                  Height="40"/>
    </Window.Resources>

  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 06 Jul 2012 Link to this post

    Hi,

    Generally the entire UI of the treelist is with vector images and there will be no problem to use your own together with the component - declared in some DataTemplate or directly inserted in the control template using Blend. 

    All the best,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. OmegaMan
    OmegaMan avatar
    8 posts
    Member since:
    Mar 2012

    Posted 06 Jul 2012 Link to this post

    I will explore the data template option. Thanks.

    -Bill
Back to Top