custom node style

2 posts, 0 answers
  1. Ant
    Ant avatar
    18 posts
    Member since:
    Dec 2013

    Posted 20 Jan 2014 Link to this post

    Hi

    Using the GraphSource for binding with Nodes and Links is it possible to style nodes within code and not using StyleSelectors? E.g. change a node to a elipse or triangle

    Thanks
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 23 Jan 2014 Link to this post

    Hi Ant,

    In order to control the Geometry property in your ViewModel you can expose a string property and bind it in a Style like this:

    <Style TargetType="telerik:RadDiagramShape">
        <Setter Property="Geometry" Value="{Binding Geometry,Mode=TwoWay}"/>
    </Style>
    Please give this approach a try and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top