<Window x:Class="RefreshDemo.Window6"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:oxy="http://oxyplot.org/wpf"
        Title="Refresh by changing InvalidateFlag property on the Plot" Height="480" Width="640">
    <DockPanel>
        <TextBlock DockPanel.Dock="Top" Text="{Binding Title}"/>
        <oxy:Plot InvalidateFlag="{Binding Refresh}">
            <oxy:LineSeries ItemsSource="{Binding Points}"/>
        </oxy:Plot>
    </DockPanel>
</Window>
