file-scoped namespaces and update of modernwpfui

This commit is contained in:
2022-10-22 13:26:01 +02:00
parent 02e3af3dcb
commit 644e2628e3
10 changed files with 638 additions and 647 deletions

View File

@ -14,9 +14,9 @@
<ItemGroup>
<PackageReference Include="FastMember" Version="1.5.0" />
<PackageReference Include="Hardcodet.NotifyIcon.Wpf" Version="1.1.0" />
<PackageReference Include="ModernWpfUis" Version="1.2.0" />
<PackageReference Include="MvvmGen" Version="1.1.2" />
<PackageReference Include="YamlDotNet" Version="11.2.1" />
<PackageReference Include="ModernWpfUI" Version="0.9.7-preview.2" />
<PackageReference Include="MvvmGen" Version="1.1.5" />
<PackageReference Include="YamlDotNet" Version="12.0.2" />
<PackageReference Include="MahApps.Metro.IconPacks.FontAwesome" Version="4.11.0" />
</ItemGroup>

View File

@ -1,8 +1,8 @@
using System;
using System.Windows.Media;
namespace ModernWpfPlayground.Types
{
namespace ModernWpfPlayground.Types;
public enum AccentColors
{
Green,
@ -27,4 +27,3 @@ namespace ModernWpfPlayground.Types
};
}
}
}

View File

@ -6,8 +6,8 @@ using System.Linq;
using System.Windows.Data;
using System.Windows.Markup;
namespace Controls
{
namespace Controls;
/// <summary>
/// Converts enums to a List with KeyValuePairs.
/// </summary>
@ -46,4 +46,3 @@ namespace Controls
public override object ProvideValue(IServiceProvider serviceProvider) => _converter ??= new EnumToItemSourceConverter();
}
}

View File

@ -2,8 +2,8 @@
using System.Windows.Controls;
using System.Windows.Markup;
namespace Controls
{
namespace Controls;
/// <summary>
/// Interaction logic for <see cref="MagicSymbolControl"/>
/// </summary>
@ -40,4 +40,3 @@ namespace Controls
Focusable = false;
}
}
}

View File

@ -8,8 +8,8 @@ using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
namespace Controls
{
namespace Controls;
/// <summary>
/// Magically converts a text to
/// </summary>
@ -149,4 +149,3 @@ namespace Controls
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
=> Binding.DoNothing;
}
}

View File

@ -2,8 +2,8 @@
using System.Windows;
using System.Windows.Controls;
namespace Controls
{
namespace Controls;
/// <summary>
/// Selects the right template on base of value-type.
/// </summary>
@ -36,4 +36,3 @@ namespace Controls
};
}
}
}

View File

@ -3,8 +3,8 @@ using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Markup;
namespace Controls
{
namespace Controls;
/// <inheritdoc cref="ContentControl" />
/// <summary>
/// Interaction logic for PropertyPresenter.xaml
@ -178,4 +178,3 @@ namespace Controls
return $"{base.ToString()} {Value}";
}
}
}

View File

@ -2,8 +2,8 @@
using System.Windows.Controls;
using System.Windows.Input;
namespace Controls
{
namespace Controls;
/// <inheritdoc />
/// <summary>
/// Represents a TextBox that can update the binding on enter.
@ -15,26 +15,26 @@ namespace Controls
/// </summary>
public static readonly DependencyProperty MoveFocusOnEnterProperty =
DependencyProperty.Register(
"MoveFocusOnEnter", typeof(bool), typeof(TextBoxEx), new UIPropertyMetadata(true));
nameof(MoveFocusOnEnter), typeof(bool), typeof(TextBoxEx), new UIPropertyMetadata(true));
/// <summary>
/// Identifies the <see cref="UpdateBindingOnEnter"/> dependency property.
/// </summary>
public static readonly DependencyProperty UpdateBindingOnEnterProperty =
DependencyProperty.Register(
"UpdateBindingOnEnter", typeof(bool), typeof(TextBoxEx), new UIPropertyMetadata(true));
nameof(UpdateBindingOnEnter), typeof(bool), typeof(TextBoxEx), new UIPropertyMetadata(true));
/// <summary>
/// Identifies the <see cref="ScrollToHomeOnFocus"/> dependency property.
/// </summary>
public static readonly DependencyProperty ScrollToHomeOnFocusProperty =
DependencyProperty.Register("ScrollToHomeOnFocus", typeof(bool), typeof(TextBoxEx), new PropertyMetadata(true));
DependencyProperty.Register(nameof(ScrollToHomeOnFocus), typeof(bool), typeof(TextBoxEx), new PropertyMetadata(true));
/// <summary>
/// Identifies the <see cref="SelectAllOnFocus"/> dependency property.
/// </summary>
public static readonly DependencyProperty SelectAllOnFocusProperty =
DependencyProperty.Register("SelectAllOnFocus", typeof(bool), typeof(TextBoxEx), new PropertyMetadata(true));
DependencyProperty.Register(nameof(SelectAllOnFocus), typeof(bool), typeof(TextBoxEx), new PropertyMetadata(true));
/// <inheritdoc />
/// <summary>
@ -162,4 +162,3 @@ namespace Controls
e.Handled = true;
}
}
}

View File

@ -1,7 +1,7 @@
using System.Windows;
namespace Controls
{
namespace Controls;
/// <summary>
/// A component of the symbol
/// </summary>
@ -28,4 +28,3 @@ namespace Controls
/// </summary>
public readonly BaselineAlignment Style;
}
}

View File

@ -11,8 +11,8 @@ using Brushes = System.Windows.Media.Brushes;
using FontFamily = System.Windows.Media.FontFamily;
using Point = System.Windows.Point;
namespace Controls
{
namespace Controls;
/// <summary>
/// Makes an Bitmap from every Imageformat.
/// </summary>
@ -97,4 +97,3 @@ namespace Controls
/// <inheritdoc />
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => Binding.DoNothing;
}
}