This commit is contained in:
Meik
2026-03-05 09:56:57 +01:00
parent 838e6b1ee1
commit 4013fa8e32
827 changed files with 743038 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace C4IT_CustomerPanel.UserControls
{
/// <summary>
/// Interaktionslogik für CustomProgressBar.xaml
/// </summary>
public partial class CustomProgressBar : UserControl
{
public CustomProgressBar()
{
InitializeComponent();
ProgressValue = 0;
}
private int privProgressValue = 0;
public int ProgressValue {
get { return privProgressValue; }
set {
privProgressValue = value;
if (privProgressValue < 0)
privProgressValue = 0;
if (privProgressValue > 100)
privProgressValue = 100;
double W = this.ActualWidth * ((double)privProgressValue / 100);
ProgressRect.Width = W;
}
}
private void UserControl_Loaded(object sender, RoutedEventArgs e)
{
ProgressValue = privProgressValue;
}
private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
{
ProgressValue = privProgressValue;
}
}
}