Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Equation Calculator with Graphing

, 25 Nov 2010 CPOL
Equation Calculator with Graphing
JespersCalculator03.2.zip
CommonUtils
bin
Debug
CommonUtils.dll
Color
Equation
GraphicalCanvas
Properties
Settings.settings
Themes
Calculator
Calculator
bin
Debug
Calculator.exe
Calculator.vshost.exe
Calculator.vshost.exe.manifest
CommonUtils.dll
Graphing
Properties
Settings.settings
Calculator.suo
JespersCalculator03_toremov.zip
CommonUtils.dll
Settings.settings
Calculator.exe
Calculator.vshost.exe
Calculator.vshost.exe.manifest
CommonUtils.dll
Settings.settings
Calculator.suo
JespersCalculator3.3.zip
Calculator.application
Calculator.exe
Calculator.exe.manifest
Calculator.vshost.application
Calculator.vshost.exe
Calculator.vshost.exe.manifest
CommonUtils.dll
Calculator.csproj.user
Calculator.csproj.vspscc
MSSCCPRJ.SCC
Settings.settings
Calculator.suo
Calculator.vssscc
MSSCCPRJ.SCC
CommonUtils.dll
CommonUtils.csproj.vspscc
MSSCCPRJ.SCC
Settings.settings
JespersCalculator3.4.zip
Release
CommonUtils.csproj.vspscc
MSSCCPRJ.SCC
Settings.settings
Calculator.application
Calculator.exe
Calculator.exe.manifest
Calculator.vshost.application
Calculator.vshost.exe
Calculator.vshost.exe.manifest
CommonUtils.dll
Calculator.csproj.user
Calculator.csproj.vspscc
MSSCCPRJ.SCC
Settings.settings
Calculator.suo
Calculator.vssscc
MSSCCPRJ.SCC
<ResourceDictionary x:Class="CommonUtils.Themes.Generic"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:CommonUtils">

    <Style x:Key="DropDownButtonStyle" TargetType="{x:Type Button}" />
    <Style TargetType="local:TextBoxWithHistory" BasedOn="{StaticResource {x:Type TextBox}}">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="TextBoxBase">
                        <ControlTemplate.Resources>
                        </ControlTemplate.Resources>
                        <Border 
                                BorderThickness="0.4"
                                Background="{TemplateBinding Background}" 
                                BorderBrush="{TemplateBinding Foreground}" 
                                >
                            <StackPanel>
                                <DockPanel>
                                    <Button Width="20" 
                                        x:Name="PART_DropButton"
                                        DockPanel.Dock="Right"
                                        Margin="3,0,0,0"
                                        Height="{TemplateBinding Height}" 
                                        Style="{DynamicResource DropDownButtonStyle}"
                                        Foreground="{TemplateBinding Foreground}"
                                        Focusable="False"
                                            >
                                        <Path Fill="{TemplateBinding Foreground}" Stroke="{TemplateBinding Foreground}" >
                                            <Path.Data>
                                                <PathGeometry Figures="M0,0L6,0L3,3z" />
                                            </Path.Data>
                                        </Path>
                                    </Button>
                                        <ScrollViewer Name="PART_ContentHost" 
                                        Margin="2"
                                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" 
                                        HorizontalContentAlignment="Center" 
                                        VerticalContentAlignment="Center"/>
                                </DockPanel>
                                <local:HistoryListPopup x:Name="PART_Popup"
                                       IsOpen="False" 
                                       StaysOpen="False"
                                       Placement="Bottom" 
                                       AllowsTransparency="True"
                                       Width="{TemplateBinding ActualWidth}"
                                       Height="200"
                                       >
                                    <ListBox ItemsSource="{Binding HistoryList}" 
                                         Background="{TemplateBinding Background}" 
                                         Foreground="{TemplateBinding Foreground}"
                                         SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                                         x:Name="m_historyListBox"
                                             >
                                        <!--SelectedItem="{TemplateBinding local:HistoryListPopup.SelectedItem, Mode=TwoWay}"-->
                                        <!--MouseDoubleClick="OnMouseDoubleClick"-->
                                    </ListBox>

                                </local:HistoryListPopup>
                            </StackPanel>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>


    <Style TargetType="{x:Type local:TestCustomControl}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TestCustomControl}">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}">
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

jkristia
Software Developer (Senior)
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.1411023.1 | Last Updated 25 Nov 2010
Article Copyright 2010 by jkristia
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid