Dynamically display timebar lines

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    55 posts
    Member since:
    Jun 2008

    Posted 23 May 2011 Link to this post

    I have a list of items that are generated based on user selections and I would like to display them on a timebar. I did create a converter to convert from my item to a RadLinearSparkline, but I can not figure out how to attach this Observable collection to display on the RadTimeBar. Is it only possible in the code behind?
  2. Patrick
    Patrick avatar
    55 posts
    Member since:
    Jun 2008

    Posted 23 May 2011 Link to this post

    After thinking about it a bit more I came to a solution.

    <ItemsControl ItemsSource="{Binding Path=SelectedSnapshotUnits, Converter={StaticResource SnapshotUnitsToSparklineConverter}}" >
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <Grid/>
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
    </ItemsControl>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top