https://github.com/poojithathimegowda/calculator
WPF Project
https://github.com/poojithathimegowda/calculator
csharp wpf xaml
Last synced: 6 months ago
JSON representation
WPF Project
- Host: GitHub
- URL: https://github.com/poojithathimegowda/calculator
- Owner: poojithathimegowda
- Created: 2024-07-19T14:15:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T10:14:24.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T12:46:32.068Z (over 1 year ago)
- Topics: csharp, wpf, xaml
- Language: C#
- Homepage:
- Size: 238 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WPF Calculator
A simple and intuitive calculator application built using WPF (Windows Presentation Foundation) in C#. This project demonstrates basic arithmetic operations, user interface design, and event handling in WPF.
## Features
- **Basic Arithmetic Operations**: Perform addition, subtraction, multiplication, and division.
- **Clear Functionality**: Clear the current input or reset the entire calculation.
- **Real-Time Calculation**: Instant feedback as you enter numbers and operations.
- **Responsive UI**: The calculator interface is designed to be responsive and easy to use.
## Usage
1. **Enter numbers**:
- Use the number buttons (0-9) to input numbers into the calculator.
2. **Perform operations**:
- Select an arithmetic operation (`+`, `-`, `*`, `/`) after entering the first number, then enter the second number.
3. **Calculate**:
- Press the `=` button to display the result of the calculation.
4. **Clear input**:
- Use the `C` button to clear the current input or reset the entire calculation.
## Project Structure
- **MainWindow.xaml**: Contains the XAML markup for the user interface.
- **MainWindow.xaml.cs**: Contains the code-behind for handling user interactions and performing calculations.
- **App.xaml**: Defines application-wide resources and settings.
- **App.xaml.cs**: Contains the startup logic for the application.
## Supported Operations
- **Addition (`+`)**: Add two numbers.
- **Subtraction (`-`)**: Subtract one number from another.
- **Multiplication (`*`)**: Multiply two numbers.
- **Division (`/`)**: Divide one number by another.