mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
7ad46c65cc
Looks like it's the proper way to do it anyway. https://stackoverflow.com/questions/751325/how-to-create-a-wpf-usercontrol-with-named-content UserControls are really just for super end-use
32 lines
930 B
C#
32 lines
930 B
C#
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 Wabbajack
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for AttentionBorder.xaml
|
|
/// </summary>
|
|
public partial class AttentionBorder : UserControl
|
|
{
|
|
public bool Failure
|
|
{
|
|
get => (bool)GetValue(FailureProperty);
|
|
set => SetValue(FailureProperty, value);
|
|
}
|
|
public static readonly DependencyProperty FailureProperty = DependencyProperty.Register(nameof(Failure), typeof(bool), typeof(AttentionBorder),
|
|
new FrameworkPropertyMetadata(default(bool)));
|
|
}
|
|
}
|