|
using System.Windows.Controls;
namespace TaskManagerDemo.Controls
{
public partial class InProgressDialog : UserControl
{
public double VerticalOffsetY { get; set; }
public double HorizontalOffsetX { get; set; }
public bool IsInDialog { get; set; }
public string TitleDialog
{
get { return Title.Text; }
set
{
if (!string.IsNullOrEmpty(value))
{
Title.Text = value;
}
}
}
public string MessageText
{
get { return Message.Text; }
set
{
if (!string.IsNullOrEmpty(value))
{
Message.Text = value;
}
}
}
public InProgressDialog()
{
InitializeComponent();
VerticalOffsetY = 150;
HorizontalOffsetX = 325;
}
public void ResetWidth()
{
this.Width = Message.Text.Length * 10.0 + 130 + 20.0;
VerticalOffsetY = 150;
HorizontalOffsetX = this.Width;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
George Henry has worked as a software developer for more than 20 years. He is currently employed by Concur in Bellevue, Washington, USA.