diff --git a/Annotations.cs b/Annotations.cs index 6d013bd..ebd21ee 100644 --- a/Annotations.cs +++ b/Annotations.cs @@ -21,6 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using System; + // ReSharper disable InheritdocConsiderUsage #pragma warning disable 1591 @@ -31,7 +32,7 @@ using System; // ReSharper disable MemberCanBeProtected.Global // ReSharper disable InconsistentNaming -namespace ModernWpfPlayground.Annotations +namespace ModernWpfPlayground { /// /// Indicates that the value of the marked element could be null sometimes, diff --git a/BaseViewModel.cs b/BaseViewModel.cs index 399e437..966ebcc 100644 --- a/BaseViewModel.cs +++ b/BaseViewModel.cs @@ -7,7 +7,6 @@ using System.Runtime.CompilerServices; using System.Text.Json; using System.Windows; using Microsoft.Win32; -using ModernWpfPlayground.Annotations; namespace ModernWpfPlayground { diff --git a/MainWindow.xaml b/MainWindow.xaml index ea7cb01..2c95b41 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -2,11 +2,11 @@ x:Class="ModernWpfPlayground.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:controls="clr-namespace:LsBricks.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:ModernWpfPlayground" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ui="http://schemas.modernwpf.com/2019" + xmlns:propertyPresenter2="clr-namespace:ModernWpfPlayground.PropertyPresenter2" x:Name="Window" Title="TaBEA 3.0.0" Width="1200" @@ -210,17 +210,17 @@ - - - - + + - + - + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index b45eda3..179bfca 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -1,24 +1,9 @@ -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 ModernWpfPlayground +namespace ModernWpfPlayground { /// /// Interaction logic for MainWindow.xaml /// - public partial class MainWindow : Window + public partial class MainWindow { public MainWindow() { diff --git a/PropertyPresenter2/EnumToKeyValueListConverter.cs b/PropertyPresenter2/EnumToKeyValueListConverter.cs index 85809dd..9daf476 100644 --- a/PropertyPresenter2/EnumToKeyValueListConverter.cs +++ b/PropertyPresenter2/EnumToKeyValueListConverter.cs @@ -5,7 +5,7 @@ using System.Globalization; using System.Linq; using System.Windows.Data; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// Converts enums to a List with KeyValuePairs. diff --git a/PropertyPresenter2/MagicSymbolControl.cs b/PropertyPresenter2/MagicSymbolControl.cs index cf6645f..eb9a130 100644 --- a/PropertyPresenter2/MagicSymbolControl.cs +++ b/PropertyPresenter2/MagicSymbolControl.cs @@ -2,7 +2,7 @@ using System.Windows.Controls; using System.Windows.Markup; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// Interaction logic for diff --git a/PropertyPresenter2/MagicSymbolConverter.cs b/PropertyPresenter2/MagicSymbolConverter.cs index 27f317a..b0307be 100644 --- a/PropertyPresenter2/MagicSymbolConverter.cs +++ b/PropertyPresenter2/MagicSymbolConverter.cs @@ -1,5 +1,4 @@ -using LsBricks.ElementMVVM.Types; -using System; +using System; using System.Collections.Generic; using System.Globalization; using System.Text; @@ -9,7 +8,7 @@ using System.Windows.Data; using System.Windows.Documents; using System.Windows.Media; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// Magically converts a text to diff --git a/PropertyPresenter2/PropertyDataTemplateSelector.cs b/PropertyPresenter2/PropertyDataTemplateSelector.cs index b0ee3cc..45e707c 100644 --- a/PropertyPresenter2/PropertyDataTemplateSelector.cs +++ b/PropertyPresenter2/PropertyDataTemplateSelector.cs @@ -2,7 +2,7 @@ using System.Windows; using System.Windows.Controls; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// Selects the right template on base of value-type. diff --git a/PropertyPresenter2/PropertyPresenter2.xaml b/PropertyPresenter2/PropertyPresenter2.xaml index e11b283..385ddfa 100644 --- a/PropertyPresenter2/PropertyPresenter2.xaml +++ b/PropertyPresenter2/PropertyPresenter2.xaml @@ -1,10 +1,10 @@  - - - + - + - - /// diff --git a/PropertyPresenter2/TextBoxEx.cs b/PropertyPresenter2/TextBoxEx.cs index f12e3d4..e89e8d8 100644 --- a/PropertyPresenter2/TextBoxEx.cs +++ b/PropertyPresenter2/TextBoxEx.cs @@ -2,7 +2,7 @@ using System.Windows.Controls; using System.Windows.Input; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// @@ -38,7 +38,7 @@ namespace LsBricks.Controls /// /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// public TextBoxEx() { diff --git a/PropertyPresenter2/TextComponent.cs b/PropertyPresenter2/TextComponent.cs index 6bb4607..0e9616c 100644 --- a/PropertyPresenter2/TextComponent.cs +++ b/PropertyPresenter2/TextComponent.cs @@ -1,6 +1,6 @@ using System.Windows; -namespace LsBricks.ElementMVVM.Types +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// A component of the symbol diff --git a/PropertyPresenter2/ValueConverter.cs b/PropertyPresenter2/ValueConverter.cs index f1f1bef..3a5c6bc 100644 --- a/PropertyPresenter2/ValueConverter.cs +++ b/PropertyPresenter2/ValueConverter.cs @@ -11,7 +11,7 @@ using Brushes = System.Windows.Media.Brushes; using FontFamily = System.Windows.Media.FontFamily; using Point = System.Windows.Point; -namespace LsBricks.Controls +namespace ModernWpfPlayground.PropertyPresenter2 { /// /// Makes an Bitmap from every Imageformat. @@ -97,28 +97,4 @@ namespace LsBricks.Controls /// public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => Binding.DoNothing; } - - /// - /// negate double converter - /// - [ValueConversion(typeof(double), typeof(double))] - public class NegateDoubleConverter : IValueConverter - { - /// Converts a value. - /// A converted value. If the method returns null, the valid null value is used. - /// The value produced by the binding source. - /// The type of the binding target property. - /// The converter parameter to use. - /// The culture to use in the converter. - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => - value is double d ? -d : throw new ArgumentException(nameof(value) + " is not a doubles"); - - /// Converts a value. - /// A converted value. If the method returns null, the valid null value is used. - /// The value that is produced by the binding target. - /// The type to convert to. - /// The converter parameter to use. - /// The culture to use in the converter. - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => Binding.DoNothing; - } } \ No newline at end of file