81 lines
3.5 KiB
Plaintext
81 lines
3.5 KiB
Plaintext
|
<Window x:Class="GraphingCalculator.Controls.IntegralWindow"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
Title="Integral" Height="331" Width="261" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen">
|
||
|
<Window.Resources>
|
||
|
<ResourceDictionary>
|
||
|
<ResourceDictionary.MergedDictionaries>
|
||
|
<ResourceDictionary Source="/Styles/ButtonStyle.xaml" />
|
||
|
<ResourceDictionary Source="/Styles/RadioButtonStyle.xaml" />
|
||
|
<ResourceDictionary Source="/Styles/GroupBoxStyle.xaml" />
|
||
|
<ResourceDictionary Source="/Styles/WarningGroupBoxStyle.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
</ResourceDictionary>
|
||
|
</Window.Resources>
|
||
|
|
||
|
<Window.Background>
|
||
|
<LinearGradientBrush StartPoint="0,0" EndPoint=".5,1">
|
||
|
<GradientStop Color="#EEE" Offset="0" />
|
||
|
<GradientStop Color="#999" Offset="1" />
|
||
|
</LinearGradientBrush>
|
||
|
</Window.Background>
|
||
|
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition />
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<GroupBox Style="{StaticResource WarningGroupBox}"
|
||
|
Grid.Row="0" Grid.ColumnSpan="2" Margin="8,5,8,2"
|
||
|
HorizontalContentAlignment="Stretch"
|
||
|
Header="Warning" TextBlock.TextAlignment="Center" >
|
||
|
<TextBlock TextWrapping="Wrap">This feature is experimental, so the given results may not fully be accurate.</TextBlock>
|
||
|
</GroupBox>
|
||
|
|
||
|
<GroupBox Header="Expression" Grid.Row="1">
|
||
|
<TextBox Name="inputExpression" TextWrapping="Wrap" />
|
||
|
</GroupBox>
|
||
|
|
||
|
<GroupBox Header="Interval" Grid.Row="2">
|
||
|
<StackPanel>
|
||
|
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="32" />
|
||
|
<ColumnDefinition />
|
||
|
<ColumnDefinition Width="5" />
|
||
|
<ColumnDefinition Width="32" />
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<TextBlock Grid.Column="0" VerticalAlignment="Center">From:</TextBlock>
|
||
|
<TextBox Name="inputIntervalBeg" Grid.Column="1" VerticalAlignment="Center">-1</TextBox>
|
||
|
<TextBlock Grid.Column="3" VerticalAlignment="Center">To:</TextBlock>
|
||
|
<TextBox Name="inputIntervalEnd" Grid.Column="4" VerticalAlignment="Center">1</TextBox>
|
||
|
</Grid>
|
||
|
|
||
|
</StackPanel>
|
||
|
</GroupBox>
|
||
|
|
||
|
<GroupBox Header="Result" Grid.Row="3">
|
||
|
<TextBox Name="outputResult" IsReadOnly="True" Background="White"/>
|
||
|
</GroupBox>
|
||
|
|
||
|
<Grid Grid.Row="4">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition />
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Button Name="buttonCalculate" Grid.Column="0" HorizontalAlignment="Right" Width="80" Click="buttonCalculate_Click">Calculate</Button>
|
||
|
<Button Name="buttonClose" Grid.Column="1" HorizontalAlignment="Left" Width="80" Click="buttonClose_Click">Close</Button>
|
||
|
</Grid>
|
||
|
|
||
|
</Grid>
|
||
|
|
||
|
</Window>
|