Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# GettingStarted-WPF-NotifyIcon
This repository contains the sample that how to use the WPF NotifyIcon control and its properties.
# Getting Started with WPF NotifyIcon
This example demonstrates how to use the Syncfusion WPF [NotifyIcon](https://help.syncfusion.com/wpf/classic/notify-icon/overview) control and its properties. The NotifyIcon control allows you to display an icon in the system tray and interact with users through context menus, balloon tips, and notifications. It is commonly used in applications that need to run in the background while providing quick access to features without occupying space on the taskbar.

## Why This Is Useful
- **Background Applications**: Ideal for apps that run silently but need quick user interaction.
- **Notifications**: Show balloon tips for alerts or updates.
- **Compact UI**: Keeps the taskbar clean while providing easy access to features.

## Key Features
- Display an icon in the system tray.
- Show balloon tips with custom title and text.
- Handle user interactions like mouse clicks or menu selections.

## Code Example
**XAML**
```XAML
<syncfusion:NotifyIcon Name="notify"
Header="NotifyIcon"
Height="80"
Width="150"
ShowInTaskBar="True"
Text="Notify me"
Icon="images\notifyicon.png"
BalloonTipTitle="Default NotifyIcon"
BalloonTipText="Custom NotifyIcon"
BalloonTipHeaderVisibility="Visible" />
```

**C#**
```C#
public MainWindow()
{
InitializeComponent();
// Show balloon tip for 3 seconds
notify.ShowBalloonTip(3000);
}
```

## Output
![WPF NotifyICon](output.png)