blob: 1fdf0c729485a263a7496c775774a9d70cc0e6b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Timers;
using System.Windows.Media;
using Tango.Core;
namespace Tango.PPC.Common.Notifications
{
/// <summary>
/// Represents a base notification item.
/// </summary>
public abstract class NotificationItem : ItemBase
{
private bool _isExpanded;
/// <summary>
/// Gets or sets a value indicating whether the notification panel is expanded.
/// </summary>
public bool IsExpanded
{
get { return _isExpanded; }
set { _isExpanded = value; RaisePropertyChangedAuto(); }
}
/// <summary>
/// Called when the item has been pressed.
/// </summary>
protected override void OnPreesed()
{
base.OnPreesed();
Close();
}
}
}
|