PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/Samples/v0.2/LineSample/Window1.xaml

#
XAML | 24 lines | 23 code | 1 blank | 0 comment | 0 complexity | 7913ad798eb7f06aef900450975d5f7c MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <Window x:Class="LineSample.Window1"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:c="http://research.microsoft.com/DynamicDataDisplay/1.0"
  5. Title="Line sample" Height="300" Width="300">
  6. <Grid>
  7. <c:ChartPlotter Name="plotter">
  8. <c:RectangleHighlight Bounds="0.1, 0.6, 0.15, 0.2" StrokeThickness="2" Fill="MidnightBlue"
  9. ToolTip="Sample region"/>
  10. <c:HorizontalLine Value="0.5" StrokeThickness="2" ToolTip="Hamster was here"/>
  11. <c:HorizontalLine Value="0.25"/>
  12. <c:VerticalLine Value="0.4"/>
  13. <c:VerticalLine Value="0.7"/>
  14. <c:Segment StartPoint="0.3, 0.45" EndPoint="0.5, 0.65" Stroke="Green" StrokeThickness="2"
  15. StrokeDashArray="2"/>
  16. <c:HorizontalRange Value1="0.1" Value2="0.15" Fill="Green"/>
  17. <c:VerticalRange Value1="0.1" Value2="0.12" Fill="Fuchsia"/>
  18. <c:PositionalViewportUIContainer Position="0.3,0.7">
  19. <Button>Hello!</Button>
  20. </c:PositionalViewportUIContainer>
  21. </c:ChartPlotter>
  22. </Grid>
  23. </Window>