将以往的代码复制到代码库
This commit is contained in:
33
Future.Contract/Extensions/BubbleHelper.cs
Normal file
33
Future.Contract/Extensions/BubbleHelper.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace Future.Contract
|
||||
{
|
||||
/// <summary>
|
||||
/// 为气泡提示窗口提供辅助扩展类
|
||||
/// </summary>
|
||||
public static partial class FutureHelper
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 显示一个纯文本气泡提示
|
||||
/// </summary>
|
||||
/// <param name="infoContent">提示信息</param>
|
||||
/// <param name="placement">焦点丢失关闭功能的辅助器定位位置</param>
|
||||
/// <param name="delayTime">自动关闭延时</param>
|
||||
/// <param name="autoClose">是否自动关闭</param>
|
||||
public static void ShowBubble(this string infoContent, FrameworkElement placement = null, int delayTime = 1, bool autoClose = true) => BubbleWindow.ShowBubble(infoContent, placement, delayTime, autoClose);
|
||||
/// <summary>
|
||||
/// 显示一个UI元素气泡提示
|
||||
/// </summary>
|
||||
/// <param name="infoContent">提示信息</param>
|
||||
/// <param name="placement">焦点丢失关闭功能的辅助器定位位置</param>
|
||||
/// <param name="delayTime">自动关闭延时</param>
|
||||
/// <param name="autoClose">是否自动关闭</param>
|
||||
public static void ShowBubble(this UIElement infoContent, FrameworkElement placement = null, int delayTime = 1, bool autoClose = true) => BubbleWindow.ShowBubble(infoContent, placement, delayTime, autoClose);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user