Skip to content

Commit 4a3b681

Browse files
committed
Move HintProxy into separate file
1 parent a4451d5 commit 4a3b681

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows.Controls;
7+
8+
namespace MaterialDesignThemes.Wpf
9+
{
10+
/// <summary>
11+
/// This interface is the adapter from UiControl (like <see cref="TextBox"/>, <see cref="ComboBox"/> and others) to <see cref="SmartHint"/>
12+
/// <para/>
13+
/// You should implement this interface in order to use SmartHint for your own control.
14+
/// </summary>
15+
public interface IHintProxy : IDisposable
16+
{
17+
string Text { get; }
18+
bool IsLoaded { get; }
19+
bool IsVisible { get; }
20+
21+
event EventHandler TextChanged;
22+
event EventHandler IsVisibleChanged;
23+
event EventHandler Loaded;
24+
}
25+
}

MaterialDesignThemes.Wpf/SmartHint.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,4 @@ private void RefreshState(bool useTransitions)
165165
}));
166166
}
167167
}
168-
169-
public interface IHintProxy : IDisposable
170-
{
171-
string Text { get; }
172-
bool IsLoaded { get; }
173-
bool IsVisible { get; }
174-
175-
event EventHandler TextChanged;
176-
event EventHandler IsVisibleChanged;
177-
event EventHandler Loaded;
178-
}
179168
}

0 commit comments

Comments
 (0)