Rename System.StandardUI -> Microsoft.StandardUI
This commit is contained in:
Родитель
5bd09cf605
Коммит
a07a1edac2
|
@ -0,0 +1 @@
|
|||
Subproject commit 66397d2b2fa4222433beb4cb1ffba9a53b01936c
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microcharts
|
||||
{
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
/// <summary>
|
||||
/// A data entry for a chart.
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
|
||||
namespace Microcharts
|
||||
{
|
||||
|
|
|
@ -9,12 +9,12 @@ using System.Linq;
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using SkiaSharp;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using System.StandardUI.Shapes;
|
||||
using System.StandardUI.Media;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace Microcharts
|
||||
{
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
#if LATER
|
||||
|
||||
using System.Linq;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Microcharts
|
||||
|
|
|
@ -5,12 +5,12 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
using SkiaSharp;
|
||||
using SkiaSharp.HarfBuzz;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace Microcharts
|
||||
{
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Shapes;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
using SkiaSharp;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace Microcharts
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// Copyright (c) Aloïs DENIEL. All rights reserved.
|
||||
// Licensed under the MIT License. See LICENSE in the project root for license information.
|
||||
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using System.StandardUI.Text;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Text;
|
||||
using SkiaSharp;
|
||||
using SkiaSharp.HarfBuzz;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
|
||||
namespace Microcharts
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI;
|
||||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using static System.StandardUI.FactoryStatics;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
|
||||
namespace SimpleControls
|
||||
{
|
||||
|
|
|
@ -0,0 +1,144 @@
|
|||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using static Microsoft.StandardUI.FactoryStatics;
|
||||
|
||||
namespace TemplateStandardUI.Controls
|
||||
{
|
||||
// TODO: Add Indeterminate State
|
||||
public class ProgressBar : StandardUIControl
|
||||
{
|
||||
const string ElementBackground = "PART_Background";
|
||||
const string ElementProgress = "PART_Progress";
|
||||
const string ElementText = "PART_Text";
|
||||
|
||||
IBorder _background;
|
||||
IBorder _progress;
|
||||
ITextBlock _text;
|
||||
|
||||
public ProgressBar()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static readonly IUIProperty ProgressProperty =
|
||||
RegisterUIProperty(nameof(Progress), typeof(double), typeof(ProgressBar), UIPropertyMetdata(0.0d, OnValueChanged));
|
||||
|
||||
public double Progress
|
||||
{
|
||||
get => (double)GetValue(ProgressProperty);
|
||||
set { SetValue(ProgressProperty, value); }
|
||||
}
|
||||
|
||||
static void OnValueChanged(IUIPropertyObject bindable, IUIPropertyChangedEventArgs e)
|
||||
{
|
||||
(bindable as ProgressBar)?.UpdateProgress();
|
||||
}
|
||||
|
||||
public static readonly IUIProperty BackgroundColorProperty =
|
||||
RegisterUIProperty(nameof(BackgroundColor), typeof(Color), typeof(ProgressBar), UIPropertyMetdata(Color.Default));
|
||||
|
||||
public Color BackgroundColor
|
||||
{
|
||||
get => (Color)GetValue(BackgroundColorProperty);
|
||||
set { SetValue(BackgroundColorProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly IUIProperty ProgressColorProperty =
|
||||
RegisterUIProperty(nameof(ProgressColor), typeof(Color), typeof(ProgressBar), UIPropertyMetdata(Color.Default));
|
||||
|
||||
public Color ProgressColor
|
||||
{
|
||||
get => (Color)GetValue(ProgressColorProperty);
|
||||
set { SetValue(ProgressColorProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly IUIProperty BorderColorProperty =
|
||||
RegisterUIProperty(nameof(BorderColor), typeof(Color), typeof(ProgressBar), UIPropertyMetdata(Color.Default));
|
||||
|
||||
public Color BorderColor
|
||||
{
|
||||
get => (Color)GetValue(BorderColorProperty);
|
||||
set { SetValue(BorderColorProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly IUIProperty TextProperty =
|
||||
RegisterUIProperty(nameof(Text), typeof(string), typeof(ProgressBar), UIPropertyMetdata(string.Empty));
|
||||
|
||||
public string Text
|
||||
{
|
||||
get => (string)GetValue(TextProperty);
|
||||
set { SetValue(TextProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly IUIProperty TextColorProperty =
|
||||
RegisterUIProperty(nameof(TextColor), typeof(Color), typeof(ProgressBar), UIPropertyMetdata(Color.Default));
|
||||
|
||||
public Color TextColor
|
||||
{
|
||||
get => (Color)GetValue(TextColorProperty);
|
||||
set { SetValue(TextColorProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly IUIProperty CornerRadiusProperty =
|
||||
RegisterUIProperty(nameof(CornerRadius), typeof(double), typeof(ProgressBar), UIPropertyMetdata(0.0d));
|
||||
|
||||
public double CornerRadius
|
||||
{
|
||||
get => (double)GetValue(CornerRadiusProperty);
|
||||
set { SetValue(CornerRadiusProperty, value); }
|
||||
}
|
||||
|
||||
internal static readonly IUIProperty PercentagePropertyKey =
|
||||
RegisterUIProperty(nameof(Percentage), typeof(double), typeof(ProgressBar), UIPropertyMetdata(0.0d));
|
||||
|
||||
public static readonly IUIProperty PercentageProperty = PercentagePropertyKey.IDependencyProperty;
|
||||
|
||||
public double Percentage
|
||||
{
|
||||
get => (double)GetValue(PercentageProperty);
|
||||
private set
|
||||
{
|
||||
SetValue(PercentagePropertyKey, value);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnApplyTemplate()
|
||||
{
|
||||
base.OnApplyTemplate();
|
||||
|
||||
_background = GetTemplateChild(ElementBackground) as IBorder;
|
||||
_progress = GetTemplateChild(ElementProgress) as IBorder;
|
||||
_text = GetTemplateChild(ElementText) as IText;
|
||||
}
|
||||
|
||||
protected override void OnSizeAllocated(double width, double height)
|
||||
{
|
||||
base.OnSizeAllocated(width, height);
|
||||
|
||||
UpdateProgress();
|
||||
}
|
||||
|
||||
void UpdateProgress()
|
||||
{
|
||||
var percentage = _progress.Width = Math.Floor(_background.Width * Progress);
|
||||
|
||||
var textTranslationX = percentage / 2 - _text.ActualX / 2;
|
||||
|
||||
if (textTranslationX <= 0)
|
||||
{
|
||||
textTranslationX = _background.ActualWidth / 2 - _text.ActualX;
|
||||
_text.Foreground = SolidColorBrush().Color(TextColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
textTranslationX = percentage / 2 - _text.ActualX;
|
||||
_text.Foreground = SolidColorBrush().Color(BackgroundColor);
|
||||
}
|
||||
|
||||
_text.TranslationX = textTranslationX;
|
||||
|
||||
Percentage = Math.Round(Progress * 100, 1);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\StandardUI\StandardUI.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -1,8 +1,8 @@
|
|||
using Microcharts;
|
||||
using System.StandardUI;
|
||||
using System.StandardUI.SkiaVisualizer;
|
||||
using System.StandardUI.VisualEnvironment.WpfNative;
|
||||
using System.StandardUI.Wpf;
|
||||
using Microsoft.StandardUI;
|
||||
using Microsoft.StandardUI.SkiaVisualizer;
|
||||
using Microsoft.StandardUI.VisualEnvironment.WpfNative;
|
||||
using Microsoft.StandardUI.Wpf;
|
||||
using SimpleControls;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace StandardUI.CodeGenerator
|
|||
{
|
||||
public class Context
|
||||
{
|
||||
public const string RootNamespace = "System.StandardUI";
|
||||
public const string RootNamespace = "Microsoft.StandardUI";
|
||||
|
||||
public int IndentSize { get; } = 4;
|
||||
public Workspace Workspace { get; }
|
||||
|
@ -29,8 +29,8 @@ namespace StandardUI.CodeGenerator
|
|||
|
||||
QualifiedNameSyntax destinationNamespace = OutputType.RootNamespace;
|
||||
|
||||
// Map e.g. System.StandardUI.Media source namespace => System.StandardUI.WPF.Media destination namespace
|
||||
// If the source namespace is just System.StandardUI, don't change anything here
|
||||
// Map e.g. Microsoft.StandardUI.Media source namespace => Microsoft.StandardUI.WPF.Media destination namespace
|
||||
// If the source namespace is just Microsoft.StandardUI, don't change anything here
|
||||
if (childNamespaceName != null)
|
||||
destinationNamespace = QualifiedName(destinationNamespace, IdentifierName(childNamespaceName));
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace StandardUI.CodeGenerator
|
|||
public class Interface
|
||||
{
|
||||
public static int IndentSize = 4;
|
||||
public const string RootNamespace = "System.StandardUI";
|
||||
public const string RootNamespace = "Microsoft.StandardUI";
|
||||
|
||||
private readonly NameSyntax _sourceNamespaceName;
|
||||
private readonly CompilationUnitSyntax _sourceCompilationUnit;
|
||||
|
@ -94,7 +94,7 @@ namespace StandardUI.CodeGenerator
|
|||
"protected override int VisualChildrenCount => _uiElementCollection.Count;");
|
||||
mainClassNonstaticMethods.AddBlankLine();
|
||||
mainClassNonstaticMethods.AddLine(
|
||||
"protected override Windows.Media.Visual GetVisualChild(int index) => (Windows.Media.Visual) _uiElementCollection[index];");
|
||||
"protected override System.Windows.Media.Visual GetVisualChild(int index) => (System.Windows.Media.Visual) _uiElementCollection[index];");
|
||||
}
|
||||
|
||||
// If there are any attached properties, add the property descriptors and accessors for them
|
||||
|
@ -305,14 +305,14 @@ namespace StandardUI.CodeGenerator
|
|||
NameSyntax sourceUsingName = sourceUsing.Name;
|
||||
AddUsing(usingNames, sourceUsingName);
|
||||
|
||||
if (sourceUsingName.ToString().StartsWith("System.StandardUI."))
|
||||
if (sourceUsingName.ToString().StartsWith("Microsoft.StandardUI."))
|
||||
AddUsing(usingNames, Context.ToDestinationNamespaceName(sourceUsingName));
|
||||
}
|
||||
|
||||
AddUsing(usingNames, _sourceNamespaceName);
|
||||
|
||||
IEnumerable<QualifiedNameSyntax> outputTypeUsings = OutputType.GetUsings(hasPropertyDescriptors, DestinationTypeHasTypeConverterAttribute());
|
||||
foreach (QualifiedNameSyntax outputTypeUsing in outputTypeUsings)
|
||||
IEnumerable<NameSyntax> outputTypeUsings = OutputType.GetUsings(hasPropertyDescriptors, DestinationTypeHasTypeConverterAttribute());
|
||||
foreach (NameSyntax outputTypeUsing in outputTypeUsings)
|
||||
AddUsing(usingNames, outputTypeUsing);
|
||||
|
||||
foreach (var member in Declaration.Members)
|
||||
|
|
|
@ -8,13 +8,13 @@ namespace StandardUI.CodeGenerator
|
|||
{
|
||||
public abstract class OutputType
|
||||
{
|
||||
public static QualifiedNameSyntax SystemStandardUI = QualifiedName(IdentifierName("System"), IdentifierName("StandardUI"));
|
||||
public static QualifiedNameSyntax MicrosoftStandardUI = QualifiedName(IdentifierName("Microsoft"), IdentifierName("StandardUI"));
|
||||
|
||||
public abstract string ProjectBaseDirectory { get; }
|
||||
public abstract QualifiedNameSyntax RootNamespace { get; }
|
||||
public abstract TypeSyntax DestinationTypeForUIElementAttachedTarget { get; }
|
||||
public abstract string? DefaultBaseClassName { get; }
|
||||
public abstract IEnumerable<QualifiedNameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute);
|
||||
public abstract IEnumerable<NameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute);
|
||||
public abstract bool EmitChangedNotifications { get; }
|
||||
}
|
||||
|
||||
|
@ -30,17 +30,18 @@ namespace StandardUI.CodeGenerator
|
|||
public class WpfXamlOutputType : XamlOutputType
|
||||
{
|
||||
public static readonly WpfXamlOutputType Instance = new WpfXamlOutputType();
|
||||
public static QualifiedNameSyntax SystemWindows = QualifiedName(IdentifierName("System"), IdentifierName("Windows"));
|
||||
|
||||
public override string ProjectBaseDirectory => "StandardUI.Wpf";
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(SystemStandardUI, IdentifierName("Wpf"));
|
||||
public override string DependencyPropertyClassName => "Windows.DependencyProperty";
|
||||
public override TypeSyntax DestinationTypeForUIElementAttachedTarget => QualifiedName(IdentifierName("Windows"), IdentifierName("UIElement"));
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(MicrosoftStandardUI, IdentifierName("Wpf"));
|
||||
public override string DependencyPropertyClassName => "System.Windows.DependencyProperty";
|
||||
public override TypeSyntax DestinationTypeForUIElementAttachedTarget => QualifiedName(SystemWindows, IdentifierName("UIElement"));
|
||||
public override string? DefaultBaseClassName => "StandardUIDependencyObject";
|
||||
public override string WrapperSuffix => "Wpf";
|
||||
|
||||
public override IEnumerable<QualifiedNameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
public override IEnumerable<NameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
{
|
||||
var usings = new List<QualifiedNameSyntax>();
|
||||
var usings = new List<NameSyntax>();
|
||||
|
||||
#if NOT_NEEDED
|
||||
if (hasPropertyDescriptors)
|
||||
|
@ -64,12 +65,12 @@ namespace StandardUI.CodeGenerator
|
|||
public static readonly UwpXamlOutputType Instance = new UwpXamlOutputType();
|
||||
|
||||
public override string ProjectBaseDirectory => "StandardUI.UWP";
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(SystemStandardUI, IdentifierName("UWP"));
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(MicrosoftStandardUI, IdentifierName("UWP"));
|
||||
public override string DependencyPropertyClassName => "DependencyProperty";
|
||||
public override TypeSyntax DestinationTypeForUIElementAttachedTarget => IdentifierName("UIElement");
|
||||
public override string? DefaultBaseClassName => "StandardUIDependencyObject";
|
||||
public override string WrapperSuffix => "Uwp";
|
||||
public override IEnumerable<QualifiedNameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
public override IEnumerable<NameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
@ -80,15 +81,15 @@ namespace StandardUI.CodeGenerator
|
|||
public static readonly XamarinFormsXamlOutputType Instance = new XamarinFormsXamlOutputType();
|
||||
|
||||
public override string ProjectBaseDirectory => Path.Combine("XamarinForms", "StandardUI.XamarinForms");
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(SystemStandardUI, IdentifierName("XamarinForms"));
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(MicrosoftStandardUI, IdentifierName("XamarinForms"));
|
||||
public override string DependencyPropertyClassName => "BindableProperty";
|
||||
public override TypeSyntax DestinationTypeForUIElementAttachedTarget => IdentifierName("VisualElement");
|
||||
public override string? DefaultBaseClassName => "BindableObject";
|
||||
public override string WrapperSuffix => "Forms";
|
||||
|
||||
public override IEnumerable<QualifiedNameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
public override IEnumerable<NameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
{
|
||||
var usings = new List<QualifiedNameSyntax>();
|
||||
var usings = new List<NameSyntax>();
|
||||
usings.Add(QualifiedName(IdentifierName("Xamarin"), IdentifierName("Forms")));
|
||||
return usings;
|
||||
}
|
||||
|
@ -99,13 +100,13 @@ namespace StandardUI.CodeGenerator
|
|||
public static readonly StandardModelOutputType Instance = new StandardModelOutputType();
|
||||
|
||||
public override string ProjectBaseDirectory => Path.Combine("StandardUI", "StandardModel");
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(SystemStandardUI, IdentifierName("StandardModel"));
|
||||
public override QualifiedNameSyntax RootNamespace => QualifiedName(MicrosoftStandardUI, IdentifierName("StandardModel"));
|
||||
public override TypeSyntax DestinationTypeForUIElementAttachedTarget => IdentifierName("ObjectWithCascadingNotifications");
|
||||
public override string? DefaultBaseClassName => "ObjectWithCascadingNotifications";
|
||||
|
||||
public override IEnumerable<QualifiedNameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
public override IEnumerable<NameSyntax> GetUsings(bool hasPropertyDescriptors, bool hasTypeConverterAttribute)
|
||||
{
|
||||
return new List<QualifiedNameSyntax>();
|
||||
return new List<NameSyntax>();
|
||||
}
|
||||
|
||||
public override bool EmitChangedNotifications => false;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SkiaSharp;
|
||||
|
||||
namespace System.StandardUI.SkiaVisualizer
|
||||
namespace Microsoft.StandardUI.SkiaVisualizer
|
||||
{
|
||||
public class SkiaVisual : IVisual
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using SkiaSharp;
|
||||
using System;
|
||||
|
||||
namespace System.StandardUI.SkiaVisualizer
|
||||
namespace Microsoft.StandardUI.SkiaVisualizer
|
||||
{
|
||||
public class SkiaVisualEnvironment : IVisualEnvironment
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using SkiaSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.SkiaVisualizer
|
||||
namespace Microsoft.StandardUI.SkiaVisualizer
|
||||
{
|
||||
public class SkiaVisualizer : IVisualizer
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Windows.Media;
|
||||
|
||||
namespace System.StandardUI.SkiaVisualizer
|
||||
namespace Microsoft.StandardUI.SkiaVisualizer
|
||||
{
|
||||
public class WpfNativeVisual : IVisual
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace System.StandardUI.VisualEnvironment.WpfNative
|
||||
namespace Microsoft.StandardUI.VisualEnvironment.WpfNative
|
||||
{
|
||||
public class WpfNativeVisualEnvironment : IVisualEnvironment
|
||||
{
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using System.StandardUI.SkiaVisualizer;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.SkiaVisualizer;
|
||||
using System;
|
||||
using System.Windows.Media;
|
||||
using PenLineCap = System.StandardUI.Media.PenLineCap;
|
||||
using PenLineJoin = System.StandardUI.Media.PenLineJoin;
|
||||
using PenLineCap = Microsoft.StandardUI.Media.PenLineCap;
|
||||
using PenLineJoin = Microsoft.StandardUI.Media.PenLineJoin;
|
||||
|
||||
namespace System.StandardUI.VisualEnvironment.WpfNative
|
||||
namespace Microsoft.StandardUI.VisualEnvironment.WpfNative
|
||||
{
|
||||
public class WpfNativeVisualizer : IVisualizer
|
||||
{
|
||||
|
|
|
@ -1,29 +1,28 @@
|
|||
// This file is generated from ICanvas.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using System.Windows;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public partial class Canvas : Panel, ICanvas
|
||||
{
|
||||
protected override Windows.Size MeasureOverride(Windows.Size constraint)
|
||||
protected override System.Windows.Size MeasureOverride(System.Windows.Size constraint)
|
||||
{
|
||||
var childConstraint = new Windows.Size(double.PositiveInfinity, double.PositiveInfinity);
|
||||
var childConstraint = new System.Windows.Size(double.PositiveInfinity, double.PositiveInfinity);
|
||||
|
||||
foreach (IUIElement? childInterface in Children)
|
||||
{
|
||||
var child = (UIElement?)childInterface;
|
||||
var child = (System.Windows.UIElement?)childInterface;
|
||||
|
||||
if (child == null)
|
||||
continue;
|
||||
child.Measure(childConstraint);
|
||||
}
|
||||
|
||||
return new Windows.Size();
|
||||
return new System.Windows.Size();
|
||||
}
|
||||
|
||||
protected override Windows.Size ArrangeOverride(Windows.Size arrangeSize)
|
||||
protected override System.Windows.Size ArrangeOverride(System.Windows.Size arrangeSize)
|
||||
{
|
||||
//Canvas arranges children at their DesiredSize.
|
||||
//This means that Margin on children is actually respected and added
|
||||
|
@ -32,7 +31,7 @@ namespace System.StandardUI.Wpf.Controls
|
|||
|
||||
foreach (IUIElement childInterface in Children)
|
||||
{
|
||||
var child = (UIElement?)childInterface;
|
||||
var child = (System.Windows.UIElement?)childInterface;
|
||||
|
||||
if (child == null)
|
||||
continue;
|
||||
|
@ -52,7 +51,7 @@ namespace System.StandardUI.Wpf.Controls
|
|||
if (!double.IsNaN(top))
|
||||
y = top;
|
||||
|
||||
child.Arrange(new Windows.Rect(new Windows.Point(x, y), child.DesiredSize));
|
||||
child.Arrange(new System.Windows.Rect(new System.Windows.Point(x, y), child.DesiredSize));
|
||||
}
|
||||
return arrangeSize;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
using System.ComponentModel;
|
||||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
[TypeConverter(typeof(ColorTypeConverter))]
|
||||
public struct ColorWpf
|
||||
{
|
||||
public static readonly ColorWpf Default = new ColorWpf(System.StandardUI.Color.Default);
|
||||
public static readonly ColorWpf Default = new ColorWpf(Microsoft.StandardUI.Color.Default);
|
||||
public static readonly ColorWpf Transparent = new ColorWpf(Colors.Transparent);
|
||||
|
||||
public static ColorWpf FromColor(Color color) => new ColorWpf(color);
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class ControlTemplateWpf : IControlTemplate
|
||||
{
|
||||
private Windows.Controls.ControlTemplate _controlTemplate;
|
||||
private System.Windows.Controls.ControlTemplate _controlTemplate;
|
||||
|
||||
public ControlTemplateWpf(Windows.Controls.ControlTemplate controlTemplate)
|
||||
public ControlTemplateWpf(System.Windows.Controls.ControlTemplate controlTemplate)
|
||||
{
|
||||
_controlTemplate = controlTemplate;
|
||||
}
|
||||
|
||||
public Windows.Controls.ControlTemplate ControlTemplate => _controlTemplate;
|
||||
public System.Windows.Controls.ControlTemplate ControlTemplate => _controlTemplate;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +1,22 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI;
|
||||
using System.Windows;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class UIElementCollection : IUIElementCollection
|
||||
{
|
||||
private Windows.Controls.UIElementCollection _collection;
|
||||
private System.Windows.Controls.UIElementCollection _collection;
|
||||
|
||||
public UIElementCollection(FrameworkElement parent)
|
||||
public UIElementCollection(System.Windows.FrameworkElement parent)
|
||||
{
|
||||
_collection = new Windows.Controls.UIElementCollection(parent, parent);
|
||||
_collection = new System.Windows.Controls.UIElementCollection(parent, parent);
|
||||
}
|
||||
|
||||
public IUIElement this[int index]
|
||||
{
|
||||
get => (IUIElement)_collection[index];
|
||||
set => _collection[index] = (Windows.UIElement)value;
|
||||
set => _collection[index] = (System.Windows.UIElement)value;
|
||||
}
|
||||
|
||||
public int Count => _collection.Count;
|
||||
|
@ -26,12 +25,12 @@ namespace System.StandardUI.Wpf
|
|||
|
||||
public void Add(IUIElement item)
|
||||
{
|
||||
_collection.Add((Windows.UIElement) item);
|
||||
_collection.Add((System.Windows.UIElement) item);
|
||||
}
|
||||
|
||||
public void Clear() => _collection.Clear();
|
||||
|
||||
public bool Contains(IUIElement item) => _collection.Contains((Windows.UIElement)item);
|
||||
public bool Contains(IUIElement item) => _collection.Contains((System.Windows.UIElement)item);
|
||||
|
||||
public void CopyTo(IUIElement[] array, int arrayIndex)
|
||||
{
|
||||
|
@ -40,13 +39,13 @@ namespace System.StandardUI.Wpf
|
|||
|
||||
public IEnumerator<IUIElement> GetEnumerator() => new Enumerator(_collection.GetEnumerator());
|
||||
|
||||
public int IndexOf(IUIElement item) => _collection.IndexOf((Windows.UIElement)item);
|
||||
public int IndexOf(IUIElement item) => _collection.IndexOf((System.Windows.UIElement)item);
|
||||
|
||||
public void Insert(int index, IUIElement item) => _collection.Insert(index, (Windows.UIElement)item);
|
||||
public void Insert(int index, IUIElement item) => _collection.Insert(index, (System.Windows.UIElement)item);
|
||||
|
||||
public bool Remove(IUIElement item)
|
||||
{
|
||||
int index = _collection.IndexOf((Windows.UIElement)item);
|
||||
int index = _collection.IndexOf((System.Windows.UIElement)item);
|
||||
if (index == -1)
|
||||
return false;
|
||||
_collection.RemoveAt(index);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using System.StandardUI.Converters;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class BrushTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI.Converters;
|
||||
using Microsoft.StandardUI.Converters;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class ColorTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class GeometryTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI.Converters;
|
||||
using Microsoft.StandardUI.Converters;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class PointTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI.Converters;
|
||||
using Microsoft.StandardUI.Converters;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class PointsTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI.Converters;
|
||||
using Microsoft.StandardUI.Converters;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class SizeTypeConverter : TypeConverterBase
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ using System;
|
|||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
|
||||
namespace System.StandardUI.Wpf.Converters
|
||||
namespace Microsoft.StandardUI.Wpf.Converters
|
||||
{
|
||||
public class TypeConverterBase : TypeConverter
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel;
|
||||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
[TypeConverter(typeof(PointTypeConverter))]
|
||||
public struct PointWpf
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
[TypeConverter(typeof(PointsTypeConverter))]
|
||||
public struct PointsWpf
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public static class PropertyUtils
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public static class RectExtensions
|
||||
{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public static class SizeExtensions
|
||||
{
|
||||
public static Windows.Size ToWpfSize(this Size size) => new Windows.Size(size.Width, size.Height);
|
||||
public static System.Windows.Size ToWpfSize(this Size size) => new System.Windows.Size(size.Width, size.Height);
|
||||
|
||||
public static Size FromWpfSize(Windows.Size size) => new Size(size.Width, size.Height);
|
||||
public static Size FromWpfSize(System.Windows.Size size) => new Size(size.Width, size.Height);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.ComponentModel;
|
||||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
[TypeConverter(typeof(SizeTypeConverter))]
|
||||
public struct SizeWpf
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class StandardUIControlWpf : Windows.Controls.Control, IStandardUIControlEnvironmentPeer
|
||||
public class StandardUIControlWpf : System.Windows.Controls.Control, IStandardUIControlEnvironmentPeer
|
||||
{
|
||||
private StandardUIControl _standardUIControl;
|
||||
private ControlTemplateWpf? _controlTemplateWpf;
|
||||
|
@ -20,13 +20,13 @@ namespace System.StandardUI.Wpf
|
|||
MaxHeight = standardUIControl.MaxHeight;
|
||||
}
|
||||
|
||||
protected override Windows.Size MeasureOverride(Windows.Size constraint)
|
||||
protected override System.Windows.Size MeasureOverride(System.Windows.Size constraint)
|
||||
{
|
||||
_standardUIControl.Measure(new Size(constraint.Width, constraint.Height));
|
||||
return _standardUIControl.DesiredSize.ToWpfSize();
|
||||
}
|
||||
|
||||
protected override Windows.Size ArrangeOverride(Windows.Size arrangeSize)
|
||||
protected override System.Windows.Size ArrangeOverride(System.Windows.Size arrangeSize)
|
||||
{
|
||||
_standardUIControl.Arrange(new Rect(0, 0, arrangeSize.Width, arrangeSize.Height));
|
||||
return arrangeSize;
|
||||
|
@ -50,19 +50,19 @@ namespace System.StandardUI.Wpf
|
|||
|
||||
public object GetValue(IUIProperty dp)
|
||||
{
|
||||
Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
System.Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
return GetValue(wpfDependencyProperty);
|
||||
}
|
||||
|
||||
public object ReadLocalValue(IUIProperty dp)
|
||||
{
|
||||
Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
System.Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
return ReadLocalValue(wpfDependencyProperty);
|
||||
}
|
||||
|
||||
public void SetValue(IUIProperty dp, object value)
|
||||
{
|
||||
Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
System.Windows.DependencyProperty wpfDependencyProperty = ((UIProperty)dp).DependencyProperty;
|
||||
SetValue(wpfDependencyProperty, value);
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ namespace System.StandardUI.Wpf
|
|||
{
|
||||
get
|
||||
{
|
||||
Windows.Controls.ControlTemplate controlTemplate = Template;
|
||||
System.Windows.Controls.ControlTemplate controlTemplate = Template;
|
||||
if (controlTemplate == null)
|
||||
_controlTemplateWpf = null;
|
||||
else
|
||||
|
@ -93,7 +93,7 @@ namespace System.StandardUI.Wpf
|
|||
|
||||
IUIPropertyObject? IStandardUIControlEnvironmentPeer.GetTemplateChild(string childName)
|
||||
{
|
||||
Windows.DependencyObject? child = this.GetTemplateChild(childName);
|
||||
System.Windows.DependencyObject? child = this.GetTemplateChild(childName);
|
||||
if (child == null)
|
||||
return null;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
/// <summary>
|
||||
/// This is the base for predefined dependency objects;
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
using System.Collections.Generic;
|
||||
using System.StandardUI.Controls;
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using System.StandardUI.Wpf.Controls;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Wpf.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Wpf.Controls;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Wpf.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class StandardUIFactory : IStandardUIFactory
|
||||
{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
/// <summary>
|
||||
/// This is the base for predefined standard UI controls.
|
||||
|
|
|
@ -2,7 +2,7 @@ using System.Windows;
|
|||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
internal struct SizeInPixels
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ namespace System.StandardUI.Wpf
|
|||
|
||||
_bitmap.AddDirtyRect(new Int32Rect(0, 0, widthInPixels, heightInPixels));
|
||||
_bitmap.Unlock();
|
||||
drawingContext.DrawImage(_bitmap, new Windows.Rect(0, 0, widthInPixels, heightInPixels));
|
||||
drawingContext.DrawImage(_bitmap, new System.Windows.Rect(0, 0, widthInPixels, heightInPixels));
|
||||
|
||||
//var rect = new System.Windows.Rect(0, 0, 175, 50);
|
||||
//drawingContext.DrawRectangle(new SolidColorBrush(System.Windows.Media.Colors.Red), null, rect);
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
using System;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class StandardUIUserControlWpf : StandardUIControlWpf
|
||||
{
|
||||
|
@ -18,7 +19,7 @@ namespace System.StandardUI.Wpf
|
|||
MinHeight = userControl.MinHeight;
|
||||
MaxHeight = userControl.MaxHeight;
|
||||
|
||||
var content = (Windows.UIElement?) userControl.Content;
|
||||
var content = (System.Windows.UIElement?) userControl.Content;
|
||||
if (content != null)
|
||||
AddLogicalChild(content);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.StandardUI.Text;
|
||||
using Microsoft.StandardUI.Text;
|
||||
|
||||
namespace System.StandardUI.Wpf.Text
|
||||
namespace Microsoft.StandardUI.Wpf.Text
|
||||
{
|
||||
public struct FontWeightWpf
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Windows;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class UIProperty : IUIProperty
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class WpfStandardUIEnvironment : IStandardUIEnvironment
|
||||
{
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
// This file is generated from IBorder.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public class Border : StandardUIFrameworkElement, IBorder
|
||||
{
|
||||
public static readonly Windows.DependencyProperty BackgroundProperty = PropertyUtils.Register(nameof(Background), typeof(Brush), typeof(Border), null);
|
||||
public static readonly Windows.DependencyProperty BackgroundSizingProperty = PropertyUtils.Register(nameof(BackgroundSizing), typeof(BackgroundSizing), typeof(Border), "");
|
||||
public static readonly Windows.DependencyProperty BorderBrushProperty = PropertyUtils.Register(nameof(BorderBrush), typeof(Brush), typeof(Border), null);
|
||||
public static readonly Windows.DependencyProperty BorderThicknessProperty = PropertyUtils.Register(nameof(BorderThickness), typeof(Thickness), typeof(Border), Thickness.Default);
|
||||
public static readonly Windows.DependencyProperty ChildProperty = PropertyUtils.Register(nameof(Child), typeof(StandardUIFrameworkElement), typeof(Border), null);
|
||||
public static readonly Windows.DependencyProperty CornerRadiusProperty = PropertyUtils.Register(nameof(CornerRadius), typeof(CornerRadius), typeof(Border), CornerRadius.Default);
|
||||
public static readonly Windows.DependencyProperty PaddingProperty = PropertyUtils.Register(nameof(Padding), typeof(Thickness), typeof(Border), Thickness.Default);
|
||||
public static readonly System.Windows.DependencyProperty BackgroundProperty = PropertyUtils.Register(nameof(Background), typeof(Brush), typeof(Border), null);
|
||||
public static readonly System.Windows.DependencyProperty BackgroundSizingProperty = PropertyUtils.Register(nameof(BackgroundSizing), typeof(BackgroundSizing), typeof(Border), "");
|
||||
public static readonly System.Windows.DependencyProperty BorderBrushProperty = PropertyUtils.Register(nameof(BorderBrush), typeof(Brush), typeof(Border), null);
|
||||
public static readonly System.Windows.DependencyProperty BorderThicknessProperty = PropertyUtils.Register(nameof(BorderThickness), typeof(Thickness), typeof(Border), Thickness.Default);
|
||||
public static readonly System.Windows.DependencyProperty ChildProperty = PropertyUtils.Register(nameof(Child), typeof(StandardUIFrameworkElement), typeof(Border), null);
|
||||
public static readonly System.Windows.DependencyProperty CornerRadiusProperty = PropertyUtils.Register(nameof(CornerRadius), typeof(CornerRadius), typeof(Border), CornerRadius.Default);
|
||||
public static readonly System.Windows.DependencyProperty PaddingProperty = PropertyUtils.Register(nameof(Padding), typeof(Thickness), typeof(Border), Thickness.Default);
|
||||
|
||||
public Brush Background
|
||||
{
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
// This file is generated from ICanvas.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public partial class Canvas : Panel, ICanvas
|
||||
{
|
||||
public static readonly Windows.DependencyProperty LeftProperty = PropertyUtils.RegisterAttached("Left", typeof(double), typeof(Windows.UIElement), 0.0);
|
||||
public static readonly Windows.DependencyProperty TopProperty = PropertyUtils.RegisterAttached("Top", typeof(double), typeof(Windows.UIElement), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty LeftProperty = PropertyUtils.RegisterAttached("Left", typeof(double), typeof(System.Windows.UIElement), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty TopProperty = PropertyUtils.RegisterAttached("Top", typeof(double), typeof(System.Windows.UIElement), 0.0);
|
||||
|
||||
public static double GetLeft(Windows.UIElement element) => (double) element.GetValue(LeftProperty);
|
||||
public static void SetLeft(Windows.UIElement element, double value) => element.SetValue(LeftProperty, value);
|
||||
public static double GetLeft(System.Windows.UIElement element) => (double) element.GetValue(LeftProperty);
|
||||
public static void SetLeft(System.Windows.UIElement element, double value) => element.SetValue(LeftProperty, value);
|
||||
|
||||
public static double GetTop(Windows.UIElement element) => (double) element.GetValue(TopProperty);
|
||||
public static void SetTop(Windows.UIElement element, double value) => element.SetValue(TopProperty, value);
|
||||
public static double GetTop(System.Windows.UIElement element) => (double) element.GetValue(TopProperty);
|
||||
public static void SetTop(System.Windows.UIElement element, double value) => element.SetValue(TopProperty, value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// This file is generated from ICanvas.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public class CanvasAttached : ICanvasAttached
|
||||
{
|
||||
public static CanvasAttached Instance = new CanvasAttached();
|
||||
|
||||
public double GetLeft(IUIElement element) => Canvas.GetLeft((Windows.UIElement) element);
|
||||
public void SetLeft(IUIElement element, double value) => Canvas.SetLeft((Windows.UIElement) element, value);
|
||||
public double GetLeft(IUIElement element) => Canvas.GetLeft((System.Windows.UIElement) element);
|
||||
public void SetLeft(IUIElement element, double value) => Canvas.SetLeft((System.Windows.UIElement) element, value);
|
||||
|
||||
public double GetTop(IUIElement element) => Canvas.GetTop((Windows.UIElement) element);
|
||||
public void SetTop(IUIElement element, double value) => Canvas.SetTop((Windows.UIElement) element, value);
|
||||
public double GetTop(IUIElement element) => Canvas.GetTop((System.Windows.UIElement) element);
|
||||
public void SetTop(IUIElement element, double value) => Canvas.SetTop((System.Windows.UIElement) element, value);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IControlTemplate.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public class ControlTemplate : StandardUIDependencyObject, IControlTemplate
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IGrid.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public partial class Grid : Panel, IGrid
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from IPanel.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public class Panel : StandardUIFrameworkElement, IPanel
|
||||
{
|
||||
public static readonly Windows.DependencyProperty ChildrenProperty = PropertyUtils.Register(nameof(Children), typeof(UIElementCollection), typeof(Panel), null);
|
||||
public static readonly System.Windows.DependencyProperty ChildrenProperty = PropertyUtils.Register(nameof(Children), typeof(UIElementCollection), typeof(Panel), null);
|
||||
|
||||
private UIElementCollection _uiElementCollection;
|
||||
|
||||
|
@ -21,6 +21,6 @@ namespace System.StandardUI.Wpf.Controls
|
|||
|
||||
protected override int VisualChildrenCount => _uiElementCollection.Count;
|
||||
|
||||
protected override Windows.Media.Visual GetVisualChild(int index) => (Windows.Media.Visual) _uiElementCollection[index];
|
||||
protected override System.Windows.Media.Visual GetVisualChild(int index) => (System.Windows.Media.Visual) _uiElementCollection[index];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IStackPanel.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public partial class StackPanel : Panel, IStackPanel
|
||||
{
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
// This file is generated from ITextBlock.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Text;
|
||||
using System.StandardUI.Wpf.Text;
|
||||
using System.StandardUI.Controls;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Text;
|
||||
using Microsoft.StandardUI.Wpf.Text;
|
||||
using Microsoft.StandardUI.Controls;
|
||||
|
||||
namespace System.StandardUI.Wpf.Controls
|
||||
namespace Microsoft.StandardUI.Wpf.Controls
|
||||
{
|
||||
public class TextBlock : StandardUIFrameworkElement, ITextBlock
|
||||
{
|
||||
public static readonly Windows.DependencyProperty ForegroundProperty = PropertyUtils.Register(nameof(Foreground), typeof(Brush), typeof(TextBlock), null);
|
||||
public static readonly Windows.DependencyProperty TextProperty = PropertyUtils.Register(nameof(Text), typeof(string), typeof(TextBlock), "");
|
||||
public static readonly Windows.DependencyProperty FontStyleProperty = PropertyUtils.Register(nameof(FontStyle), typeof(FontStyle), typeof(TextBlock), FontStyle.Normal);
|
||||
public static readonly Windows.DependencyProperty FontWeightProperty = PropertyUtils.Register(nameof(FontWeight), typeof(FontWeightWpf), typeof(TextBlock), FontWeightWpf.Default);
|
||||
public static readonly Windows.DependencyProperty FontSizeProperty = PropertyUtils.Register(nameof(FontSize), typeof(double), typeof(TextBlock), 11.0);
|
||||
public static readonly Windows.DependencyProperty TextAlignmentProperty = PropertyUtils.Register(nameof(TextAlignment), typeof(TextAlignment), typeof(TextBlock), TextAlignment.Left);
|
||||
public static readonly System.Windows.DependencyProperty ForegroundProperty = PropertyUtils.Register(nameof(Foreground), typeof(Brush), typeof(TextBlock), null);
|
||||
public static readonly System.Windows.DependencyProperty TextProperty = PropertyUtils.Register(nameof(Text), typeof(string), typeof(TextBlock), "");
|
||||
public static readonly System.Windows.DependencyProperty FontStyleProperty = PropertyUtils.Register(nameof(FontStyle), typeof(FontStyle), typeof(TextBlock), FontStyle.Normal);
|
||||
public static readonly System.Windows.DependencyProperty FontWeightProperty = PropertyUtils.Register(nameof(FontWeight), typeof(FontWeightWpf), typeof(TextBlock), FontWeightWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty FontSizeProperty = PropertyUtils.Register(nameof(FontSize), typeof(double), typeof(TextBlock), 11.0);
|
||||
public static readonly System.Windows.DependencyProperty TextAlignmentProperty = PropertyUtils.Register(nameof(TextAlignment), typeof(TextAlignment), typeof(TextBlock), TextAlignment.Left);
|
||||
|
||||
public Brush Foreground
|
||||
{
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// This file is generated from IArcSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class ArcSegment : PathSegment, IArcSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PointProperty = PropertyUtils.Register(nameof(Point), typeof(PointWpf), typeof(ArcSegment), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty SizeProperty = PropertyUtils.Register(nameof(Size), typeof(SizeWpf), typeof(ArcSegment), SizeWpf.Default);
|
||||
public static readonly Windows.DependencyProperty RotationAngleProperty = PropertyUtils.Register(nameof(RotationAngle), typeof(double), typeof(ArcSegment), 0.0);
|
||||
public static readonly Windows.DependencyProperty IsLargeArcProperty = PropertyUtils.Register(nameof(IsLargeArc), typeof(bool), typeof(ArcSegment), false);
|
||||
public static readonly Windows.DependencyProperty SweepDirectionProperty = PropertyUtils.Register(nameof(SweepDirection), typeof(SweepDirection), typeof(ArcSegment), SweepDirection.Counterclockwise);
|
||||
public static readonly System.Windows.DependencyProperty PointProperty = PropertyUtils.Register(nameof(Point), typeof(PointWpf), typeof(ArcSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty SizeProperty = PropertyUtils.Register(nameof(Size), typeof(SizeWpf), typeof(ArcSegment), SizeWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty RotationAngleProperty = PropertyUtils.Register(nameof(RotationAngle), typeof(double), typeof(ArcSegment), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty IsLargeArcProperty = PropertyUtils.Register(nameof(IsLargeArc), typeof(bool), typeof(ArcSegment), false);
|
||||
public static readonly System.Windows.DependencyProperty SweepDirectionProperty = PropertyUtils.Register(nameof(SweepDirection), typeof(SweepDirection), typeof(ArcSegment), SweepDirection.Counterclockwise);
|
||||
|
||||
public PointWpf Point
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IBezierSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class BezierSegment : PathSegment, IBezierSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty Point1Property = PropertyUtils.Register(nameof(Point1), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty Point2Property = PropertyUtils.Register(nameof(Point2), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty Point3Property = PropertyUtils.Register(nameof(Point3), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty Point1Property = PropertyUtils.Register(nameof(Point1), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty Point2Property = PropertyUtils.Register(nameof(Point2), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty Point3Property = PropertyUtils.Register(nameof(Point3), typeof(PointWpf), typeof(BezierSegment), PointWpf.Default);
|
||||
|
||||
public PointWpf Point1
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// This file is generated from IBrush.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using System.ComponentModel;
|
||||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class Brush : StandardUIDependencyObject, IBrush
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from IGeometry.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using System.ComponentModel;
|
||||
using System.StandardUI.Wpf.Converters;
|
||||
using Microsoft.StandardUI.Wpf.Converters;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class Geometry : StandardUIDependencyObject, IGeometry
|
||||
{
|
||||
public static readonly Windows.DependencyProperty StandardFlatteningToleranceProperty = PropertyUtils.Register(nameof(StandardFlatteningTolerance), typeof(double), typeof(Geometry), 0.25);
|
||||
public static readonly Windows.DependencyProperty TransformProperty = PropertyUtils.Register(nameof(Transform), typeof(Transform), typeof(Geometry), null);
|
||||
public static readonly System.Windows.DependencyProperty StandardFlatteningToleranceProperty = PropertyUtils.Register(nameof(StandardFlatteningTolerance), typeof(double), typeof(Geometry), 0.25);
|
||||
public static readonly System.Windows.DependencyProperty TransformProperty = PropertyUtils.Register(nameof(Transform), typeof(Transform), typeof(Geometry), null);
|
||||
|
||||
public double StandardFlatteningTolerance
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from IGradientBrush.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class GradientBrush : Brush, IGradientBrush
|
||||
{
|
||||
public static readonly Windows.DependencyProperty GradientStopsProperty = PropertyUtils.Register(nameof(GradientStops), typeof(IEnumerable<IGradientStop>), typeof(GradientBrush), null);
|
||||
public static readonly Windows.DependencyProperty MappingModeProperty = PropertyUtils.Register(nameof(MappingMode), typeof(BrushMappingMode), typeof(GradientBrush), BrushMappingMode.RelativeToBoundingBox);
|
||||
public static readonly Windows.DependencyProperty SpreadMethodProperty = PropertyUtils.Register(nameof(SpreadMethod), typeof(GradientSpreadMethod), typeof(GradientBrush), GradientSpreadMethod.Pad);
|
||||
public static readonly System.Windows.DependencyProperty GradientStopsProperty = PropertyUtils.Register(nameof(GradientStops), typeof(IEnumerable<IGradientStop>), typeof(GradientBrush), null);
|
||||
public static readonly System.Windows.DependencyProperty MappingModeProperty = PropertyUtils.Register(nameof(MappingMode), typeof(BrushMappingMode), typeof(GradientBrush), BrushMappingMode.RelativeToBoundingBox);
|
||||
public static readonly System.Windows.DependencyProperty SpreadMethodProperty = PropertyUtils.Register(nameof(SpreadMethod), typeof(GradientSpreadMethod), typeof(GradientBrush), GradientSpreadMethod.Pad);
|
||||
|
||||
public IEnumerable<IGradientStop> GradientStops
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from IGradientStop.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class GradientStop : StandardUIDependencyObject, IGradientStop
|
||||
{
|
||||
public static readonly Windows.DependencyProperty ColorProperty = PropertyUtils.Register(nameof(Color), typeof(ColorWpf), typeof(GradientStop), ColorWpf.Default);
|
||||
public static readonly Windows.DependencyProperty OffsetProperty = PropertyUtils.Register(nameof(Offset), typeof(double), typeof(GradientStop), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty ColorProperty = PropertyUtils.Register(nameof(Color), typeof(ColorWpf), typeof(GradientStop), ColorWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty OffsetProperty = PropertyUtils.Register(nameof(Offset), typeof(double), typeof(GradientStop), 0.0);
|
||||
|
||||
public ColorWpf Color
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from ILineSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class LineSegment : PathSegment, ILineSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PointProperty = PropertyUtils.Register(nameof(Point), typeof(PointWpf), typeof(LineSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty PointProperty = PropertyUtils.Register(nameof(Point), typeof(PointWpf), typeof(LineSegment), PointWpf.Default);
|
||||
|
||||
public PointWpf Point
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from ILinearGradientBrush.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class LinearGradientBrush : GradientBrush, ILinearGradientBrush
|
||||
{
|
||||
public static readonly Windows.DependencyProperty StartPointProperty = PropertyUtils.Register(nameof(StartPoint), typeof(PointWpf), typeof(LinearGradientBrush), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty EndPointProperty = PropertyUtils.Register(nameof(EndPoint), typeof(PointWpf), typeof(LinearGradientBrush), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty StartPointProperty = PropertyUtils.Register(nameof(StartPoint), typeof(PointWpf), typeof(LinearGradientBrush), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty EndPointProperty = PropertyUtils.Register(nameof(EndPoint), typeof(PointWpf), typeof(LinearGradientBrush), PointWpf.Default);
|
||||
|
||||
public PointWpf StartPoint
|
||||
{
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// This file is generated from IPathFigure.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PathFigure : StandardUIDependencyObject, IPathFigure
|
||||
{
|
||||
public static readonly Windows.DependencyProperty SegmentsProperty = PropertyUtils.Register(nameof(Segments), typeof(IEnumerable<IPathSegment>), typeof(PathFigure), null);
|
||||
public static readonly Windows.DependencyProperty StartPointProperty = PropertyUtils.Register(nameof(StartPoint), typeof(PointWpf), typeof(PathFigure), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty IsClosedProperty = PropertyUtils.Register(nameof(IsClosed), typeof(bool), typeof(PathFigure), false);
|
||||
public static readonly Windows.DependencyProperty IsFilledProperty = PropertyUtils.Register(nameof(IsFilled), typeof(bool), typeof(PathFigure), true);
|
||||
public static readonly System.Windows.DependencyProperty SegmentsProperty = PropertyUtils.Register(nameof(Segments), typeof(IEnumerable<IPathSegment>), typeof(PathFigure), null);
|
||||
public static readonly System.Windows.DependencyProperty StartPointProperty = PropertyUtils.Register(nameof(StartPoint), typeof(PointWpf), typeof(PathFigure), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty IsClosedProperty = PropertyUtils.Register(nameof(IsClosed), typeof(bool), typeof(PathFigure), false);
|
||||
public static readonly System.Windows.DependencyProperty IsFilledProperty = PropertyUtils.Register(nameof(IsFilled), typeof(bool), typeof(PathFigure), true);
|
||||
|
||||
public IEnumerable<IPathSegment> Segments
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IPathGeometry.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PathGeometry : Geometry, IPathGeometry
|
||||
{
|
||||
public static readonly Windows.DependencyProperty FiguresProperty = PropertyUtils.Register(nameof(Figures), typeof(IEnumerable<IPathFigure>), typeof(PathGeometry), null);
|
||||
public static readonly Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(PathGeometry), FillRule.EvenOdd);
|
||||
public static readonly System.Windows.DependencyProperty FiguresProperty = PropertyUtils.Register(nameof(Figures), typeof(IEnumerable<IPathFigure>), typeof(PathGeometry), null);
|
||||
public static readonly System.Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(PathGeometry), FillRule.EvenOdd);
|
||||
|
||||
public IEnumerable<IPathFigure> Figures
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IPathSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PathSegment : StandardUIDependencyObject, IPathSegment
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from IPolyBezierSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PolyBezierSegment : PathSegment, IPolyBezierSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyBezierSegment), PointsWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyBezierSegment), PointsWpf.Default);
|
||||
|
||||
public PointsWpf Points
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from IPolyLineSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PolyLineSegment : PathSegment, IPolyLineSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyLineSegment), PointsWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyLineSegment), PointsWpf.Default);
|
||||
|
||||
public PointsWpf Points
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from IPolyQuadraticBezierSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class PolyQuadraticBezierSegment : PathSegment, IPolyQuadraticBezierSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyQuadraticBezierSegment), PointsWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(PolyQuadraticBezierSegment), PointsWpf.Default);
|
||||
|
||||
public PointsWpf Points
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from IQuadraticBezierSegment.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class QuadraticBezierSegment : PathSegment, IQuadraticBezierSegment
|
||||
{
|
||||
public static readonly Windows.DependencyProperty Point1Property = PropertyUtils.Register(nameof(Point1), typeof(PointWpf), typeof(QuadraticBezierSegment), PointWpf.Default);
|
||||
public static readonly Windows.DependencyProperty Point2Property = PropertyUtils.Register(nameof(Point2), typeof(PointWpf), typeof(QuadraticBezierSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty Point1Property = PropertyUtils.Register(nameof(Point1), typeof(PointWpf), typeof(QuadraticBezierSegment), PointWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty Point2Property = PropertyUtils.Register(nameof(Point2), typeof(PointWpf), typeof(QuadraticBezierSegment), PointWpf.Default);
|
||||
|
||||
public PointWpf Point1
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IRadialGradientBrush.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class RadialGradientBrush : GradientBrush, IRadialGradientBrush
|
||||
{
|
||||
public static readonly Windows.DependencyProperty CenterProperty = PropertyUtils.Register(nameof(Center), typeof(PointWpf), typeof(RadialGradientBrush), PointWpf.CenterDefault);
|
||||
public static readonly Windows.DependencyProperty GradientOriginProperty = PropertyUtils.Register(nameof(GradientOrigin), typeof(PointWpf), typeof(RadialGradientBrush), PointWpf.CenterDefault);
|
||||
public static readonly Windows.DependencyProperty RadiusXProperty = PropertyUtils.Register(nameof(RadiusX), typeof(double), typeof(RadialGradientBrush), 0.5);
|
||||
public static readonly System.Windows.DependencyProperty CenterProperty = PropertyUtils.Register(nameof(Center), typeof(PointWpf), typeof(RadialGradientBrush), PointWpf.CenterDefault);
|
||||
public static readonly System.Windows.DependencyProperty GradientOriginProperty = PropertyUtils.Register(nameof(GradientOrigin), typeof(PointWpf), typeof(RadialGradientBrush), PointWpf.CenterDefault);
|
||||
public static readonly System.Windows.DependencyProperty RadiusXProperty = PropertyUtils.Register(nameof(RadiusX), typeof(double), typeof(RadialGradientBrush), 0.5);
|
||||
|
||||
public PointWpf Center
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IRotateTransform.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class RotateTransform : Transform, IRotateTransform
|
||||
{
|
||||
public static readonly Windows.DependencyProperty AngleProperty = PropertyUtils.Register(nameof(Angle), typeof(double), typeof(RotateTransform), 0.0);
|
||||
public static readonly Windows.DependencyProperty CenterXProperty = PropertyUtils.Register(nameof(CenterX), typeof(double), typeof(RotateTransform), 0.0);
|
||||
public static readonly Windows.DependencyProperty CenterYProperty = PropertyUtils.Register(nameof(CenterY), typeof(double), typeof(RotateTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty AngleProperty = PropertyUtils.Register(nameof(Angle), typeof(double), typeof(RotateTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty CenterXProperty = PropertyUtils.Register(nameof(CenterX), typeof(double), typeof(RotateTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty CenterYProperty = PropertyUtils.Register(nameof(CenterY), typeof(double), typeof(RotateTransform), 0.0);
|
||||
|
||||
public double Angle
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from IScaleTransform.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class ScaleTransform : Transform, IScaleTransform
|
||||
{
|
||||
public static readonly Windows.DependencyProperty CenterXProperty = PropertyUtils.Register(nameof(CenterX), typeof(double), typeof(ScaleTransform), 0.0);
|
||||
public static readonly Windows.DependencyProperty CenterYProperty = PropertyUtils.Register(nameof(CenterY), typeof(double), typeof(ScaleTransform), 0.0);
|
||||
public static readonly Windows.DependencyProperty ScaleXProperty = PropertyUtils.Register(nameof(ScaleX), typeof(double), typeof(ScaleTransform), 1.0);
|
||||
public static readonly Windows.DependencyProperty ScaleYProperty = PropertyUtils.Register(nameof(ScaleY), typeof(double), typeof(ScaleTransform), 1.0);
|
||||
public static readonly System.Windows.DependencyProperty CenterXProperty = PropertyUtils.Register(nameof(CenterX), typeof(double), typeof(ScaleTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty CenterYProperty = PropertyUtils.Register(nameof(CenterY), typeof(double), typeof(ScaleTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty ScaleXProperty = PropertyUtils.Register(nameof(ScaleX), typeof(double), typeof(ScaleTransform), 1.0);
|
||||
public static readonly System.Windows.DependencyProperty ScaleYProperty = PropertyUtils.Register(nameof(ScaleY), typeof(double), typeof(ScaleTransform), 1.0);
|
||||
|
||||
public double CenterX
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from ISolidColorBrush.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class SolidColorBrush : Brush, ISolidColorBrush
|
||||
{
|
||||
public static readonly Windows.DependencyProperty ColorProperty = PropertyUtils.Register(nameof(Color), typeof(ColorWpf), typeof(SolidColorBrush), ColorWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty ColorProperty = PropertyUtils.Register(nameof(Color), typeof(ColorWpf), typeof(SolidColorBrush), ColorWpf.Default);
|
||||
|
||||
public ColorWpf Color
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from ITransform.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class Transform : StandardUIDependencyObject, ITransform
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from ITransformGroup.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class TransformGroup : Transform, ITransformGroup
|
||||
{
|
||||
public static readonly Windows.DependencyProperty ChildrenProperty = PropertyUtils.Register(nameof(Children), typeof(IEnumerable<ITransform>), typeof(TransformGroup), null);
|
||||
public static readonly System.Windows.DependencyProperty ChildrenProperty = PropertyUtils.Register(nameof(Children), typeof(IEnumerable<ITransform>), typeof(TransformGroup), null);
|
||||
|
||||
public IEnumerable<ITransform> Children => (IEnumerable<ITransform>) GetValue(ChildrenProperty);
|
||||
}
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from ITranslateTransform.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Media;
|
||||
|
||||
namespace System.StandardUI.Wpf.Media
|
||||
namespace Microsoft.StandardUI.Wpf.Media
|
||||
{
|
||||
public class TranslateTransform : Transform, ITranslateTransform
|
||||
{
|
||||
public static readonly Windows.DependencyProperty XProperty = PropertyUtils.Register(nameof(X), typeof(double), typeof(TranslateTransform), 0.0);
|
||||
public static readonly Windows.DependencyProperty YProperty = PropertyUtils.Register(nameof(Y), typeof(double), typeof(TranslateTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty XProperty = PropertyUtils.Register(nameof(X), typeof(double), typeof(TranslateTransform), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty YProperty = PropertyUtils.Register(nameof(Y), typeof(double), typeof(TranslateTransform), 0.0);
|
||||
|
||||
public double X
|
||||
{
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// This file is generated from IPropertyPath.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class PropertyPath : StandardUIDependencyObject, IPropertyPath
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PathProperty = PropertyUtils.Register(nameof(Path), typeof(string), typeof(PropertyPath), "");
|
||||
public static readonly System.Windows.DependencyProperty PathProperty = PropertyUtils.Register(nameof(Path), typeof(string), typeof(PropertyPath), "");
|
||||
|
||||
public string Path => (string) GetValue(PathProperty);
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from ISetter.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class Setter : UIPropertyObject, ISetter
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PropertyProperty = PropertyUtils.Register(nameof(Property), typeof(UIProperty), typeof(Setter), null);
|
||||
public static readonly Windows.DependencyProperty TargetProperty = PropertyUtils.Register(nameof(Target), typeof(TargetPropertyPath), typeof(Setter), null);
|
||||
public static readonly Windows.DependencyProperty ValueProperty = PropertyUtils.Register(nameof(Value), typeof(object), typeof(Setter), null);
|
||||
public static readonly System.Windows.DependencyProperty PropertyProperty = PropertyUtils.Register(nameof(Property), typeof(UIProperty), typeof(Setter), null);
|
||||
public static readonly System.Windows.DependencyProperty TargetProperty = PropertyUtils.Register(nameof(Target), typeof(TargetPropertyPath), typeof(Setter), null);
|
||||
public static readonly System.Windows.DependencyProperty ValueProperty = PropertyUtils.Register(nameof(Value), typeof(object), typeof(Setter), null);
|
||||
|
||||
public UIProperty? Property
|
||||
{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// This file is generated from ISetterCollection.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class SetterCollection : StandardUICollection<ISetter>, ISetterCollection
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IEllipse.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Ellipse : Shape, IEllipse
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from ILine.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Line : Shape, ILine
|
||||
{
|
||||
public static readonly Windows.DependencyProperty X1Property = PropertyUtils.Register(nameof(X1), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly Windows.DependencyProperty Y1Property = PropertyUtils.Register(nameof(Y1), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly Windows.DependencyProperty X2Property = PropertyUtils.Register(nameof(X2), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly Windows.DependencyProperty Y2Property = PropertyUtils.Register(nameof(Y2), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty X1Property = PropertyUtils.Register(nameof(X1), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty Y1Property = PropertyUtils.Register(nameof(Y1), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty X2Property = PropertyUtils.Register(nameof(X2), typeof(double), typeof(Line), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty Y2Property = PropertyUtils.Register(nameof(Y2), typeof(double), typeof(Line), 0.0);
|
||||
|
||||
public double X1
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IPath.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Path : Shape, IPath
|
||||
{
|
||||
public static readonly Windows.DependencyProperty DataProperty = PropertyUtils.Register(nameof(Data), typeof(Geometry), typeof(Path), null);
|
||||
public static readonly System.Windows.DependencyProperty DataProperty = PropertyUtils.Register(nameof(Data), typeof(Geometry), typeof(Path), null);
|
||||
|
||||
public Geometry Data
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from IPolygon.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Polygon : Shape, IPolygon
|
||||
{
|
||||
public static readonly Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(Polygon), FillRule.EvenOdd);
|
||||
public static readonly Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(Polygon), PointsWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(Polygon), FillRule.EvenOdd);
|
||||
public static readonly System.Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(Polygon), PointsWpf.Default);
|
||||
|
||||
public FillRule FillRule
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
// This file is generated from IPolyline.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Polyline : Shape, IPolyline
|
||||
{
|
||||
public static readonly Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(Polyline), FillRule.EvenOdd);
|
||||
public static readonly Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(Polyline), PointsWpf.Default);
|
||||
public static readonly System.Windows.DependencyProperty FillRuleProperty = PropertyUtils.Register(nameof(FillRule), typeof(FillRule), typeof(Polyline), FillRule.EvenOdd);
|
||||
public static readonly System.Windows.DependencyProperty PointsProperty = PropertyUtils.Register(nameof(Points), typeof(PointsWpf), typeof(Polyline), PointsWpf.Default);
|
||||
|
||||
public FillRule FillRule
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from IRectangle.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Rectangle : Shape, IRectangle
|
||||
{
|
||||
public static readonly Windows.DependencyProperty RadiusXProperty = PropertyUtils.Register(nameof(RadiusX), typeof(double), typeof(Rectangle), 0.0);
|
||||
public static readonly Windows.DependencyProperty RadiusYProperty = PropertyUtils.Register(nameof(RadiusY), typeof(double), typeof(Rectangle), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty RadiusXProperty = PropertyUtils.Register(nameof(RadiusX), typeof(double), typeof(Rectangle), 0.0);
|
||||
public static readonly System.Windows.DependencyProperty RadiusYProperty = PropertyUtils.Register(nameof(RadiusY), typeof(double), typeof(Rectangle), 0.0);
|
||||
|
||||
public double RadiusX
|
||||
{
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// This file is generated from IShape.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI.Media;
|
||||
using System.StandardUI.Wpf.Media;
|
||||
using System.StandardUI.Shapes;
|
||||
using Microsoft.StandardUI.Media;
|
||||
using Microsoft.StandardUI.Wpf.Media;
|
||||
using Microsoft.StandardUI.Shapes;
|
||||
|
||||
namespace System.StandardUI.Wpf.Shapes
|
||||
namespace Microsoft.StandardUI.Wpf.Shapes
|
||||
{
|
||||
public class Shape : StandardUIFrameworkElement, IShape
|
||||
{
|
||||
public static readonly Windows.DependencyProperty FillProperty = PropertyUtils.Register(nameof(Fill), typeof(Brush), typeof(Shape), null);
|
||||
public static readonly Windows.DependencyProperty StrokeProperty = PropertyUtils.Register(nameof(Stroke), typeof(Brush), typeof(Shape), null);
|
||||
public static readonly Windows.DependencyProperty StrokeThicknessProperty = PropertyUtils.Register(nameof(StrokeThickness), typeof(double), typeof(Shape), 1.0);
|
||||
public static readonly Windows.DependencyProperty StrokeMiterLimitProperty = PropertyUtils.Register(nameof(StrokeMiterLimit), typeof(double), typeof(Shape), 10.0);
|
||||
public static readonly Windows.DependencyProperty StrokeLineCapProperty = PropertyUtils.Register(nameof(StrokeLineCap), typeof(PenLineCap), typeof(Shape), PenLineCap.Flat);
|
||||
public static readonly Windows.DependencyProperty StrokeLineJoinProperty = PropertyUtils.Register(nameof(StrokeLineJoin), typeof(PenLineJoin), typeof(Shape), PenLineJoin.Miter);
|
||||
public static readonly System.Windows.DependencyProperty FillProperty = PropertyUtils.Register(nameof(Fill), typeof(Brush), typeof(Shape), null);
|
||||
public static readonly System.Windows.DependencyProperty StrokeProperty = PropertyUtils.Register(nameof(Stroke), typeof(Brush), typeof(Shape), null);
|
||||
public static readonly System.Windows.DependencyProperty StrokeThicknessProperty = PropertyUtils.Register(nameof(StrokeThickness), typeof(double), typeof(Shape), 1.0);
|
||||
public static readonly System.Windows.DependencyProperty StrokeMiterLimitProperty = PropertyUtils.Register(nameof(StrokeMiterLimit), typeof(double), typeof(Shape), 10.0);
|
||||
public static readonly System.Windows.DependencyProperty StrokeLineCapProperty = PropertyUtils.Register(nameof(StrokeLineCap), typeof(PenLineCap), typeof(Shape), PenLineCap.Flat);
|
||||
public static readonly System.Windows.DependencyProperty StrokeLineJoinProperty = PropertyUtils.Register(nameof(StrokeLineJoin), typeof(PenLineJoin), typeof(Shape), PenLineJoin.Miter);
|
||||
|
||||
public Brush? Fill
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from ITargetPropertyPath.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class TargetPropertyPath : StandardUIDependencyObject, ITargetPropertyPath
|
||||
{
|
||||
public static readonly Windows.DependencyProperty PropertyProperty = PropertyUtils.Register(nameof(Property), typeof(PropertyPath), typeof(TargetPropertyPath), null);
|
||||
public static readonly Windows.DependencyProperty TargetProperty = PropertyUtils.Register(nameof(Target), typeof(object), typeof(TargetPropertyPath), null);
|
||||
public static readonly System.Windows.DependencyProperty PropertyProperty = PropertyUtils.Register(nameof(Property), typeof(PropertyPath), typeof(TargetPropertyPath), null);
|
||||
public static readonly System.Windows.DependencyProperty TargetProperty = PropertyUtils.Register(nameof(Target), typeof(object), typeof(TargetPropertyPath), null);
|
||||
|
||||
public PropertyPath Property
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IUIPropertyChangedEventArgs.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class UIPropertyChangedEventArgs : StandardUIDependencyObject, IUIPropertyChangedEventArgs
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IUIPropertyMetadata.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class UIPropertyMetadata : StandardUIDependencyObject, IUIPropertyMetadata
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IUIPropertyObject.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class UIPropertyObject : StandardUIDependencyObject, IUIPropertyObject
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// This file is generated from IVisualState.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class VisualState : UIPropertyObject, IVisualState
|
||||
{
|
||||
public static readonly Windows.DependencyProperty NameProperty = PropertyUtils.Register(nameof(Name), typeof(string), typeof(VisualState), "");
|
||||
public static readonly Windows.DependencyProperty SettersProperty = PropertyUtils.Register(nameof(Setters), typeof(SetterCollection), typeof(VisualState), null);
|
||||
public static readonly System.Windows.DependencyProperty NameProperty = PropertyUtils.Register(nameof(Name), typeof(string), typeof(VisualState), "");
|
||||
public static readonly System.Windows.DependencyProperty SettersProperty = PropertyUtils.Register(nameof(Setters), typeof(SetterCollection), typeof(VisualState), null);
|
||||
|
||||
private SetterCollection _setterCollection;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// This file is generated from IVisualStateCollection.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class VisualStateCollection : StandardUICollection<IVisualState>, IVisualStateCollection
|
||||
{
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// This file is generated from IVisualStateGroup.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class VisualStateGroup : UIPropertyObject, IVisualStateGroup
|
||||
{
|
||||
public static readonly Windows.DependencyProperty CurrentStateProperty = PropertyUtils.Register(nameof(CurrentState), typeof(VisualState), typeof(VisualStateGroup), null);
|
||||
public static readonly Windows.DependencyProperty NameProperty = PropertyUtils.Register(nameof(Name), typeof(string), typeof(VisualStateGroup), "");
|
||||
public static readonly Windows.DependencyProperty StatesProperty = PropertyUtils.Register(nameof(States), typeof(VisualStateCollection), typeof(VisualStateGroup), null);
|
||||
public static readonly System.Windows.DependencyProperty CurrentStateProperty = PropertyUtils.Register(nameof(CurrentState), typeof(VisualState), typeof(VisualStateGroup), null);
|
||||
public static readonly System.Windows.DependencyProperty NameProperty = PropertyUtils.Register(nameof(Name), typeof(string), typeof(VisualStateGroup), "");
|
||||
public static readonly System.Windows.DependencyProperty StatesProperty = PropertyUtils.Register(nameof(States), typeof(VisualStateCollection), typeof(VisualStateGroup), null);
|
||||
|
||||
private VisualStateCollection _visualStateCollection;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// This file is generated from IVisualStateGroupCollection.cs. Update the source file to change its contents.
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class VisualStateGroupCollection : StandardUICollection<IVisualStateGroup>, IVisualStateGroupCollection
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// This file is generated from IVisualStateManager.cs. Update the source file to change its contents.
|
||||
|
||||
using System.StandardUI;
|
||||
using Microsoft.StandardUI;
|
||||
|
||||
namespace System.StandardUI.Wpf
|
||||
namespace Microsoft.StandardUI.Wpf
|
||||
{
|
||||
public class VisualStateManager : StandardUIDependencyObject, IVisualStateManager
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace System.StandardUI
|
||||
namespace Microsoft.StandardUI
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes a color in terms of alpha, red, green, and blue channels.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace System.StandardUI
|
||||
namespace Microsoft.StandardUI
|
||||
{
|
||||
public class Colors
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace System.StandardUI.Controls
|
||||
namespace Microsoft.StandardUI.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines constants that specify how far an element's background extends in relation to the element's border.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace System.StandardUI.Controls
|
||||
namespace Microsoft.StandardUI.Controls
|
||||
{
|
||||
public static class CanvasAttachedExtensions
|
||||
{
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче