www.pudn.com > oscilloscope.rar > MainWindow.xaml, change:2014-06-30,size:1801b


<Window x:Class="TestChart.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d3="clr-namespace:Microsoft.Research.DynamicDataDisplay;assembly=DynamicDataDisplay" 
        xmlns:local="clr-namespace:TestChart" 
        Title="SerialDebugger" Height="350" Width="525" ShowInTaskbar="False" Loaded="Window_Loaded"> 
    <Grid> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="*"/> 
            <ColumnDefinition Width="100"/> 
        </Grid.ColumnDefinitions> 
        <Canvas Grid.Column="1"> 
            <Button Height="24" Name="startButton" Content="Start" Click="startButton_Click" Canvas.Left="20" Canvas.Top="105" Width="55"/> 
            <Button Height="24" Name="stopButton" Content="Stop" Click="stopButton_Click" Canvas.Left="20" Canvas.Top="162" Width="55"/> 
            <Button Height="24" Name="fitToViewButton" Content="Fit to view" Click="fitToViewButton_Click" Width="65" Canvas.Left="20" Canvas.Top="212" /> 
            <Button Height="48" Name="autoMoveTimeAxisButton" Click="autoMoveTimeAxisButton_Click" Width="80" Canvas.Left="10" Canvas.Top="262" TextOptions.TextHintingMode="Fixed"> 
                <TextBlock TextWrapping="WrapWithOverflow"> 
                    Auto move time axis 
                </TextBlock> 
            </Button> 
            <TextBlock x:Name="DutyCycleTextBlock"> 
                Duty Cycle 
            </TextBlock> 
            <Button Height="24" Name="clearAllLines" Content="Clear all lines" Click="clearAllLinesButton_Click" Width ="55" Canvas.Left="20" Canvas.Top="52"/> 
        </Canvas > 
        <!-- D3 markup starts here--> 
        <d3:ChartPlotter Name="plotter"/> 
    </Grid> 
</Window>