Fixed more leftover .Extensions references

This commit is contained in:
Sergio Pedri 2021-02-09 14:40:44 +01:00
Родитель 1f3ff5d318
Коммит 8941f6c95e
73 изменённых файлов: 127 добавлений и 164 удалений

Просмотреть файл

@ -132,7 +132,7 @@ namespace Microsoft.Toolkit.Mvvm.Messaging
}
// Get or compute the registration methods for the current recipient type.
// As in Microsoft.Toolkit.Extensions.TypeExtensions.ToTypeString, we use a lambda
// As in Microsoft.Toolkit.Diagnostics.TypeExtensions.ToTypeString, we use a lambda
// expression instead of a method group expression to leverage the statically initialized
// delegate and avoid repeated allocations for each invocation of this method.
// For more info on this, see the related issue at https://github.com/dotnet/roslyn/issues/5835.

Просмотреть файл

@ -8,7 +8,7 @@
xmlns:ani="using:Microsoft.Toolkit.Uwp.UI.Animations"
xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Behaviors"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Button Background="Gray"
@ -16,7 +16,7 @@
Height="200"
HorizontalAlignment="Center"
VerticalAlignment="Center"
ex:VisualExtensions.NormalizedCenterPoint="0.5">
ui:VisualExtensions.NormalizedCenterPoint="0.5">
<ani:Explicit.Animations>
<ani:AnimationSet x:Name="RotateAnimation">
<ani:RotationInDegreesAnimation From="0"

Просмотреть файл

@ -8,7 +8,7 @@
xmlns:ani="using:Microsoft.Toolkit.Uwp.UI.Animations"
xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Behaviors"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Button Background="Gray"
@ -16,7 +16,7 @@
Height="200"
HorizontalAlignment="Center"
VerticalAlignment="Center"
ex:VisualExtensions.NormalizedCenterPoint="0.5">
ui:VisualExtensions.NormalizedCenterPoint="0.5">
<ani:Explicit.Animations>
<ani:AnimationSet x:Name="ScaleAnimation">
<ani:ScaleAnimation From="1"

Просмотреть файл

@ -3,7 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations"
xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Behaviors"
xmlns:media="using:Microsoft.Toolkit.Uwp.UI.Media"

Просмотреть файл

@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
@ -12,7 +12,7 @@
BorderThickness="1"
Width="148"
Height="148"
extensions:UIElementExtensions.ClipToBounds="@[Clip to Bounds:Bool:True]">
ui:UIElementExtensions.ClipToBounds="@[Clip to Bounds:Bool:True]">
<!-- We translate the inner rectangles outside of the bounds of the container. -->
<Rectangle Fill="Blue" Width="100" Height="100">
<Rectangle.RenderTransform>

Просмотреть файл

@ -4,7 +4,7 @@
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages.EnumValuesExtensionPage"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:enums="using:Microsoft.Toolkit.Uwp.SampleApp.Enums"
xmlns:converters="using:Microsoft.Toolkit.Uwp.SampleApp.Converters"
mc:Ignorable="d">
@ -19,13 +19,13 @@
<!--Simple selector using the default template. Each item will
simply be displayed as the corresponding enum value name.-->
<TextBlock Text="Select an animal:"/>
<ComboBox ItemsSource="{ex:EnumValues Type=enums:Animal}"
<ComboBox ItemsSource="{ui:EnumValues Type=enums:Animal}"
SelectedIndex="0"/>
<!--We can also use a custom template and some converters.-->
<TextBlock Margin="0,12,0,0"
Text="Pick another animal:"/>
<ComboBox ItemsSource="{ex:EnumValues Type=enums:Animal}"
<ComboBox ItemsSource="{ui:EnumValues Type=enums:Animal}"
SelectedIndex="0">
<ComboBox.ItemTemplate>
<DataTemplate>

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
@ -21,7 +21,7 @@
<Rectangle Grid.Column="0"
Grid.Row="0"
extensions:FrameworkElementExtensions.EnableActualSizeBinding="True"
ui:FrameworkElementExtensions.EnableActualSizeBinding="True"
Fill="{StaticResource Brush-Brand-Color}"
Stroke="{ThemeResource Brush-Grey-04}"
x:Name="TargetObject"
@ -81,8 +81,8 @@
<Rectangle Margin="12,12"
HorizontalAlignment="Left"
Height="{Binding ElementName=TargetObject, Path=(extensions:FrameworkElementExtensions.ActualHeight)}"
Width="{Binding ElementName=TargetObject, Path=(extensions:FrameworkElementExtensions.ActualWidth)}"
Height="{Binding ElementName=TargetObject, Path=(ui:FrameworkElementExtensions.ActualHeight)}"
Width="{Binding ElementName=TargetObject, Path=(ui:FrameworkElementExtensions.ActualWidth)}"
Fill="{ThemeResource Brush-Blue-01}"
Stroke="{ThemeResource Brush-Grey-04}"
StrokeThickness="1" />

Просмотреть файл

@ -4,7 +4,7 @@
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages.IconExtensionsPage"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Grid>
<StackPanel Spacing="8"
@ -16,9 +16,9 @@
Style="{StaticResource BodyTextBlockStyle}"/>
<CommandBar>
<AppBarButton Icon="{ex:FontIcon Glyph=&#xE102;}"/>
<AppBarButton Icon="{ex:FontIcon Glyph=&#xE103;}"/>
<AppBarButton Icon="{ex:FontIcon Glyph=&#xE10F;}"/>
<AppBarButton Icon="{ui:FontIcon Glyph=&#xE102;}"/>
<AppBarButton Icon="{ui:FontIcon Glyph=&#xE103;}"/>
<AppBarButton Icon="{ui:FontIcon Glyph=&#xE10F;}"/>
</CommandBar>
<TextBlock Text="Use the SymbolIcon extension to create FontIcon items from known symbols."
@ -26,9 +26,9 @@
Style="{StaticResource BodyTextBlockStyle}"/>
<CommandBar>
<AppBarButton Icon="{ex:SymbolIcon Symbol=Play}"/>
<AppBarButton Icon="{ex:SymbolIcon Symbol=Pause}"/>
<AppBarButton Icon="{ex:SymbolIcon Symbol=Home}"/>
<AppBarButton Icon="{ui:SymbolIcon Symbol=Play}"/>
<AppBarButton Icon="{ui:SymbolIcon Symbol=Pause}"/>
<AppBarButton Icon="{ui:SymbolIcon Symbol=Home}"/>
</CommandBar>
<TextBlock Text="Use the FontIconSource extension to create FontIconSource items from custom glyphs."
@ -40,8 +40,8 @@
Width="300" Margin="12" Height="68">
<SwipeControl.LeftItems>
<SwipeItems Mode="Reveal">
<SwipeItem Text="Accept" IconSource="{ex:FontIconSource Glyph=&#xE10B;}"/>
<SwipeItem Text="Flag" IconSource="{ex:FontIconSource Glyph=&#xE129;}"/>
<SwipeItem Text="Accept" IconSource="{ui:FontIconSource Glyph=&#xE10B;}"/>
<SwipeItem Text="Flag" IconSource="{ui:FontIconSource Glyph=&#xE129;}"/>
</SwipeItems>
</SwipeControl.LeftItems>
<TextBlock Text="Swipe Right"
@ -58,8 +58,8 @@
Width="300" Margin="12" Height="68">
<SwipeControl.LeftItems>
<SwipeItems Mode="Reveal">
<SwipeItem IconSource="{ex:BitmapIconSource Source=/Assets/ToolkitLogo.png}"/>
<SwipeItem IconSource="{ex:BitmapIconSource Source=/Assets/mslogo.png}"/>
<SwipeItem IconSource="{ui:BitmapIconSource Source=/Assets/ToolkitLogo.png}"/>
<SwipeItem IconSource="{ui:BitmapIconSource Source=/Assets/mslogo.png}"/>
</SwipeItems>
</SwipeControl.LeftItems>
<TextBlock Text="Swipe Right"
@ -76,8 +76,8 @@
Width="300" Margin="12" Height="68">
<SwipeControl.LeftItems>
<SwipeItems Mode="Reveal">
<SwipeItem Text="Accept" IconSource="{ex:SymbolIconSource Symbol=Accept}"/>
<SwipeItem Text="Flag" IconSource="{ex:SymbolIconSource Symbol=Flag}"/>
<SwipeItem Text="Accept" IconSource="{ui:SymbolIconSource Symbol=Accept}"/>
<SwipeItem Text="Flag" IconSource="{ui:SymbolIconSource Symbol=Flag}"/>
</SwipeItems>
</SwipeControl.LeftItems>
<TextBlock Text="Swipe Right"
@ -93,9 +93,9 @@
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutItem Text="Toolkit app"
Icon="{ex:BitmapIcon Source=/Assets/ToolkitLogo.png}" />
Icon="{ui:BitmapIcon Source=/Assets/ToolkitLogo.png}" />
<MenuFlyoutItem Text="Microsoft"
Icon="{ex:BitmapIcon Source=/Assets/mslogo.png}" />
Icon="{ui:BitmapIcon Source=/Assets/mslogo.png}" />
</MenuFlyout>
</Button.Flyout>
</Button>

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations"
mc:Ignorable="d">
@ -16,7 +16,7 @@
Background="Red"
Canvas.Top="100"
Canvas.Left="100"
extensions:VisualExtensions.CenterPoint="50,50,0">
ui:VisualExtensions.CenterPoint="50,50,0">
<animations:Implicit.ShowAnimations>
<animations:TranslationAnimation Duration="0:0:1" From="0, -200, 0" To="0"/>

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Page.Resources>
@ -23,10 +23,10 @@
Margin="12"
ItemTemplate="{StaticResource NormalTemplate}"
IsItemClickEnabled="True"
extensions:ListViewExtensions.Command="{Binding SampleCommand}"
extensions:ListViewExtensions.AlternateColor="#33AAAAAA"
extensions:ListViewExtensions.AlternateItemTemplate="{StaticResource AlternateTemplate}"
extensions:ListViewExtensions.StretchItemContainerDirection="Both">
ui:ListViewExtensions.Command="{Binding SampleCommand}"
ui:ListViewExtensions.AlternateColor="#33AAAAAA"
ui:ListViewExtensions.AlternateItemTemplate="{StaticResource AlternateTemplate}"
ui:ListViewExtensions.StretchItemContainerDirection="Both">
</ListView>
</Grid>
</Page>

Просмотреть файл

@ -1,6 +1,6 @@
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions">
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI">
<Grid>
<Border Width="220"
@ -8,7 +8,7 @@
Margin="50,100,20,20"
HorizontalAlignment="Left"
VerticalAlignment="Top"
extensions:Mouse.Cursor="UniversalNo"
ui:Mouse.Cursor="UniversalNo"
Background="DeepSkyBlue">
<TextBlock Margin="4"
HorizontalAlignment="Center"
@ -21,7 +21,7 @@
Margin="20"
HorizontalAlignment="Left"
VerticalAlignment="Top"
extensions:Mouse.Cursor="Wait"
ui:Mouse.Cursor="Wait"
Background="Orange">
<TextBlock Margin="4"
HorizontalAlignment="Center"
@ -37,7 +37,7 @@
<Button Margin="20,290,20,20"
HorizontalAlignment="Left"
VerticalAlignment="Top"
extensions:Mouse.Cursor="Hand"
ui:Mouse.Cursor="Hand"
Content="Button with Hand cursor, just like on web" />
</Grid>
</Page>

Просмотреть файл

@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:core="using:Microsoft.Xaml.Interactions.Core"
xmlns:markup="using:Microsoft.Toolkit.Uwp.UI.Extensions.Markup"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Page.Resources>
<SolidColorBrush x:Key="BrushRed" Color="Red" />
@ -20,12 +20,12 @@
TextWrapping="Wrap"
Style="{StaticResource BodyTextBlockStyle}"/>
<TextBlock Text="{markup:OnDevice Desktop=Desktop, Xbox=Xbox, Default=Default}" />
<TextBlock Text="{ui:OnDevice Desktop=Desktop, Xbox=Xbox, Default=Default}" />
<TextBlock Text="{markup:OnDevice Team=Text 1, IoT=Text 2, Holographic=Text 3, Default=Text 4}"
FontSize="{markup:OnDevice Team=50, IoT=16, Holographic=20, Default=30}"/>
<TextBlock Text="{ui:OnDevice Team=Text 1, IoT=Text 2, Holographic=Text 3, Default=Text 4}"
FontSize="{ui:OnDevice Team=50, IoT=16, Holographic=20, Default=30}"/>
<Rectangle Fill="{markup:OnDevice Desktop={StaticResource BrushRed}, Default={StaticResource BrushBlue}}"
<Rectangle Fill="{ui:OnDevice Desktop={StaticResource BrushRed}, Default={StaticResource BrushBlue}}"
Width="200"
Height="100"
HorizontalAlignment="Left" />
@ -34,8 +34,8 @@
Height="100"
HorizontalAlignment="Left">
<Rectangle.Fill>
<markup:OnDevice Default="{StaticResource BrushRed}"
Desktop="{StaticResource BrushBlue}"/>
<ui:OnDevice Default="{StaticResource BrushRed}"
Desktop="{StaticResource BrushBlue}"/>
</Rectangle.Fill>
</Rectangle>
</StackPanel>

Просмотреть файл

@ -1,5 +1,5 @@
// C# - Scale can be applied to any UIElement. In this case it is an image called ToolkitLogo.
using Microsoft.Toolkit.Uwp.UI.Extensions;
using Microsoft.Toolkit.Uwp.UI;
// Binds the Y scroll axis of the ScrollViewer to the Y translation axis of the target
listScrollViewer.StartExpressionAnimation(shapesPanel, Axis.Y);

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Behaviors"
@ -15,8 +15,8 @@
<Grid>
<ListView Name="listView"
extensions:ScrollViewerExtensions.VerticalScrollBarMargin="{Binding MinHeight, ElementName=MyHeaderGrid, Converter={StaticResource DoubleTopThicknessConverter}}"
extensions:ScrollViewerExtensions.EnableMiddleClickScrolling="@[EnableMiddleClickScrolling:Bool:True]">
ui:ScrollViewerExtensions.VerticalScrollBarMargin="{Binding MinHeight, ElementName=MyHeaderGrid, Converter={StaticResource DoubleTopThicknessConverter}}"
ui:ScrollViewerExtensions.EnableMiddleClickScrolling="@[EnableMiddleClickScrolling:Bool:True]">
<interactivity:Interaction.Behaviors>
<behaviors:StickyHeaderBehavior />
</interactivity:Interaction.Behaviors>

Просмотреть файл

@ -1,6 +1,6 @@
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@ -15,14 +15,14 @@
Margin="0,0,0,10"
Text="0"
Width="250"
extensions:SurfaceDialTextbox.StepValue="@[StepValue:DoubleSlider:1:0.1-10]"
extensions:SurfaceDialTextbox.ForceMenuItem="@[ForceMenuItem:Bool:true]"
extensions:SurfaceDialTextbox.EnableHapticFeedback="@[EnableHapticFeedback:Bool:true]"
extensions:SurfaceDialTextbox.EnableMinMaxValue="@[EnableMinMaxValue:Bool:true]"
extensions:SurfaceDialTextbox.MinValue="@[MinValue:DoubleSlider:0:0-100]"
extensions:SurfaceDialTextbox.MaxValue="@[MaxValue:DoubleSlider:100:0-100]"
extensions:SurfaceDialTextbox.Icon="@[Icon:Enum:RadialControllerMenuKnownIcon.Ruler]"
extensions:SurfaceDialTextbox.EnableTapToNextControl="@[EnableTapToNextControl:Bool:true]"/>
ui:SurfaceDialTextbox.StepValue="@[StepValue:DoubleSlider:1:0.1-10]"
ui:SurfaceDialTextbox.ForceMenuItem="@[ForceMenuItem:Bool:true]"
ui:SurfaceDialTextbox.EnableHapticFeedback="@[EnableHapticFeedback:Bool:true]"
ui:SurfaceDialTextbox.EnableMinMaxValue="@[EnableMinMaxValue:Bool:true]"
ui:SurfaceDialTextbox.MinValue="@[MinValue:DoubleSlider:0:0-100]"
ui:SurfaceDialTextbox.MaxValue="@[MaxValue:DoubleSlider:100:0-100]"
ui:SurfaceDialTextbox.Icon="@[Icon:Enum:RadialControllerMenuKnownIcon.Ruler]"
ui:SurfaceDialTextbox.EnableTapToNextControl="@[EnableTapToNextControl:Bool:true]"/>
</StackPanel>
</Grid>
</Page>

Просмотреть файл

@ -1,6 +1,6 @@
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
@ -33,34 +33,34 @@
</Grid.RowDefinitions>
<TextBox Name="AlphaTextBox"
extensions:TextBoxMask.Mask="9a9a-a9a*"
ui:TextBoxMask.Mask="9a9a-a9a*"
Header="Text box with Mask 9a9a-a9a* (9 allows from 0 to 9, a allow from a to Z and * allows both a and 9)"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource MaskedTextBoxStyle}"
Text="TextBoxMask" />
<TextBox Grid.Row="1"
extensions:TextBoxMask.Mask="+1999-9999"
extensions:TextBoxMask.PlaceHolder=" "
ui:TextBoxMask.Mask="+1999-9999"
ui:TextBoxMask.PlaceHolder=" "
Header="Text box with Mask +1999-9999 and placeHolder as space (placeholder represents the characters the user can change on runtime)"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource MaskedTextBoxStyle}" />
<TextBox Grid.Row="2"
extensions:TextBoxMask.Mask="+\964 799 999 9999"
ui:TextBoxMask.Mask="+\964 799 999 9999"
Header="Text box with Mask +964 799 999 9999 (Notice how we escape the first 9 with a backslash)"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource MaskedTextBoxStyle}" />
<TextBox Grid.Row="3"
extensions:TextBoxMask.Mask="99\\99\\9999"
ui:TextBoxMask.Mask="99\\99\\9999"
Header="Text box with Mask 99\99\9999 (You can escape a backslash with another backslash)"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource MaskedTextBoxStyle}" />
<TextBox Grid.Row="4"
extensions:TextBoxMask.CustomMask="5:[1-5],c:[a-c]"
extensions:TextBoxMask.Mask="a5c-5c*9"
ui:TextBoxMask.CustomMask="5:[1-5],c:[a-c]"
ui:TextBoxMask.Mask="a5c-5c*9"
Header="Text box with CustomMask in case you want to define your own variable character like a, 9 and *. Mask: a5c-5c*9, 5: [1-5], c: [a-c]"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource MaskedTextBoxStyle}" />

Просмотреть файл

@ -1,7 +1,7 @@
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
@ -34,13 +34,13 @@
<StackPanel Margin="10,10,10,0">
<TextBox Name="PhoneNumberValidator"
extensions:TextBoxRegex.Regex="^\s*\+?\s*([0-9][\s-]*){9,}$"
ui:TextBoxRegex.Regex="^\s*\+?\s*([0-9][\s-]*){9,}$"
Header="Text box with Regex extension for phone number, validation occurs on TextChanged"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource TextBoxRegexStyle}" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Is Valid: " />
<TextBlock Text="{Binding (extensions:TextBoxRegex.IsValid), ElementName=PhoneNumberValidator, Converter={StaticResource StringFormatConverter}}" />
<TextBlock Text="{Binding (ui:TextBoxRegex.IsValid), ElementName=PhoneNumberValidator, Converter={StaticResource StringFormatConverter}}" />
</StackPanel>
</StackPanel>
@ -48,56 +48,56 @@
<StackPanel Grid.Row="1"
Margin="10,10,10,0">
<TextBox Name="CharactValidator"
extensions:TextBoxRegex.ValidationMode="Dynamic"
extensions:TextBoxRegex.ValidationType="Characters"
ui:TextBoxRegex.ValidationMode="Dynamic"
ui:TextBoxRegex.ValidationType="Characters"
Header="Text box with ValidationType=Characters, validation occurs at input with ValidationMode=Dynamic and clear only single character when value is invalid"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource TextBoxRegexStyle}"
Text="abcdef" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Is Valid: " />
<TextBlock Text="{Binding (extensions:TextBoxRegex.IsValid), ElementName=CharactValidator, Converter={StaticResource StringFormatConverter}}" />
<TextBlock Text="{Binding (ui:TextBoxRegex.IsValid), ElementName=CharactValidator, Converter={StaticResource StringFormatConverter}}" />
</StackPanel>
</StackPanel>
<StackPanel Grid.Row="2"
Margin="10,10,10,0">
<TextBox Name="EmailValidator"
extensions:TextBoxRegex.ValidationType="Email"
ui:TextBoxRegex.ValidationType="Email"
Header="Text box with ValidationType=Email, validation occurs on TextChanged"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource TextBoxRegexStyle}" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Is Valid: " />
<TextBlock Text="{Binding (extensions:TextBoxRegex.IsValid), ElementName=EmailValidator, Converter={StaticResource StringFormatConverter}}" />
<TextBlock Text="{Binding (ui:TextBoxRegex.IsValid), ElementName=EmailValidator, Converter={StaticResource StringFormatConverter}}" />
</StackPanel>
</StackPanel>
<StackPanel Grid.Row="3"
Margin="10,10,10,0">
<TextBox Name="DecimalValidatorForce"
extensions:TextBoxRegex.ValidationMode="Forced"
extensions:TextBoxRegex.ValidationType="Decimal"
ui:TextBoxRegex.ValidationMode="Forced"
ui:TextBoxRegex.ValidationType="Decimal"
Header="Text box with ValidationType=Decimal, validation occurs on TextChanged and force occurs on lose focus with ValidationMode=Force (333,111 or 333.111)"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource TextBoxRegexStyle}" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Is Valid: " />
<TextBlock Text="{Binding (extensions:TextBoxRegex.IsValid), ElementName=DecimalValidatorForce, Converter={StaticResource StringFormatConverter}}" />
<TextBlock Text="{Binding (ui:TextBoxRegex.IsValid), ElementName=DecimalValidatorForce, Converter={StaticResource StringFormatConverter}}" />
</StackPanel>
</StackPanel>
<StackPanel Grid.Row="4"
Margin="10,10,10,0">
<TextBox Name="NumberValidatorDynamic"
extensions:TextBoxRegex.ValidationMode="Dynamic"
extensions:TextBoxRegex.ValidationType="Number"
ui:TextBoxRegex.ValidationMode="Dynamic"
ui:TextBoxRegex.ValidationType="Number"
Header="Text box with ValidationType=Number, validation occurs at input with ValidationMode=Dynamic and clear only single character when value is invalid"
HeaderTemplate="{StaticResource HeaderTemplate}"
Style="{StaticResource TextBoxRegexStyle}" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="Is Valid: " />
<TextBlock Text="{Binding (extensions:TextBoxRegex.IsValid), ElementName=NumberValidatorDynamic, Converter={StaticResource StringFormatConverter}}" />
<TextBlock Text="{Binding (ui:TextBoxRegex.IsValid), ElementName=NumberValidatorDynamic, Converter={StaticResource StringFormatConverter}}" />
</StackPanel>
</StackPanel>

Просмотреть файл

@ -3,7 +3,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:ex="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
mc:Ignorable="d">
<Page.Resources>
@ -35,7 +35,7 @@
<controls:TokenizingTextBox
x:Name="TokenBox"
PlaceholderText="Add Actions"
QueryIcon="{ex:SymbolIconSource Symbol=Setting}"
QueryIcon="{ui:SymbolIconSource Symbol=Setting}"
MaxHeight="104"
HorizontalAlignment="Stretch"
TextMemberPath="Text"
@ -72,7 +72,7 @@
PlaceholderText="Select Names"
MaxHeight="104"
HorizontalAlignment="Stretch"
QueryIcon="{ex:SymbolIconSource Symbol=Find}"
QueryIcon="{ui:SymbolIconSource Symbol=Find}"
TextMemberPath="Text"
TokenDelimiter=","
IsItemClickEnabled="True"

Просмотреть файл

@ -4,12 +4,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
extensions:ApplicationViewExtensions.Title="View Extensions"
extensions:TitleBarExtensions.BackgroundColor="CornflowerBlue"
extensions:TitleBarExtensions.ForegroundColor="White"
extensions:TitleBarExtensions.ButtonBackgroundColor="CornflowerBlue"
extensions:TitleBarExtensions.ButtonForegroundColor="White"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
ui:ApplicationViewExtensions.Title="View Extensions"
ui:TitleBarExtensions.BackgroundColor="CornflowerBlue"
ui:TitleBarExtensions.ForegroundColor="White"
ui:TitleBarExtensions.ButtonBackgroundColor="CornflowerBlue"
ui:TitleBarExtensions.ButtonForegroundColor="White"
mc:Ignorable="d">
<Grid>

Просмотреть файл

@ -4,16 +4,16 @@
xmlns:local="using:Microsoft.Toolkit.Uwp.SampleApp.SamplePages"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Grid>
<Border Height="100"
Width="100"
Background="Purple"
extensions:VisualExtensions.Opacity="0.5"
extensions:VisualExtensions.RotationAngleInDegrees="80"
extensions:VisualExtensions.Scale="2, 0.5, 1"
extensions:VisualExtensions.NormalizedCenterPoint="0.5" />
ui:VisualExtensions.Opacity="0.5"
ui:VisualExtensions.RotationAngleInDegrees="80"
ui:VisualExtensions.Scale="2, 0.5, 1"
ui:VisualExtensions.NormalizedCenterPoint="0.5" />
</Grid>
</Page>

Просмотреть файл

@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Microsoft.Toolkit.Uwp.UI.Media.Pipelines;
using Windows.UI.Composition;
using Windows.UI.Xaml.Media;

Просмотреть файл

@ -7,7 +7,7 @@ using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
namespace Microsoft.Toolkit.Uwp.UI.Media.Extensions
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// An extension <see langword="class"/> for the <see cref="System.Collections.Generic"/> <see langword="namespace"/>

Просмотреть файл

@ -7,7 +7,7 @@ using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Toolkit.Uwp.UI.Media.Extensions
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// An <see langword="async"/> <see cref="AsyncMutex"/> implementation that can be easily used inside a <see langword="using"/> block

Просмотреть файл

@ -6,7 +6,7 @@ using System;
using System.Diagnostics.Contracts;
using System.Linq;
namespace Microsoft.Toolkit.Uwp.UI.Media.Extensions
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// An extension <see langword="class"/> for the <see cref="Guid"/> type

Просмотреть файл

@ -5,7 +5,7 @@
using System;
using System.Diagnostics.Contracts;
namespace Microsoft.Toolkit.Uwp.UI.Media.Extensions
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// An extension <see langword="class"/> for the <see cref="Uri"/> type

Просмотреть файл

@ -2,7 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Hosting;

Просмотреть файл

@ -10,7 +10,7 @@ using Windows.UI.Composition;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Hosting;
namespace Microsoft.Toolkit.Uwp.UI.Media.Extensions
namespace Microsoft.Toolkit.Uwp.UI.Media
{
/// <summary>
/// An extension <see langword="class"/> for the <see cref="CompositionObject"/> type

Просмотреть файл

@ -7,7 +7,6 @@ using System.Numerics;
using System.Threading.Tasks;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.UI.Composition;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Microsoft.Toolkit.Uwp.UI.Media.Helpers.Cache;
using Windows.Foundation;
using Windows.Graphics.DirectX;

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Diagnostics.Contracts;
using System.Threading.Tasks;
using Microsoft.Graphics.Canvas.Effects;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Windows.Graphics.Effects;
using Windows.UI;
using Windows.UI.Composition;

Просмотреть файл

@ -8,7 +8,6 @@ using System.Diagnostics.Contracts;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Graphics.Canvas.Effects;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Windows.Graphics.Effects;
using Windows.UI;
using Windows.UI.Composition;

Просмотреть файл

@ -8,7 +8,6 @@ using System.Numerics;
using System.Threading.Tasks;
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Effects;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Microsoft.Toolkit.Uwp.UI.Media.Helpers;
using Microsoft.Toolkit.Uwp.UI.Media.Helpers.Cache;
using Windows.Graphics.Effects;

Просмотреть файл

@ -8,7 +8,6 @@ using System.Diagnostics.Contracts;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Graphics.Canvas.Effects;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Windows.Graphics.Effects;
using Windows.UI.Composition;
using CanvasBlendEffect = Microsoft.Graphics.Canvas.Effects.BlendEffect;

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.UI.Media.Extensions;
using Windows.Graphics.Effects;
using Windows.UI.Composition;
using Windows.UI.Xaml;

Просмотреть файл

@ -13,8 +13,8 @@ namespace Microsoft.Toolkit.Uwp.UI
/// <example>
/// The next TextBlock will show the text 'Hello' on desktop computers, 'World' on Xbox and 'Hi' on all other devices
/// <code>
/// <TextBlock Text="{helpers:OnDevice Default=Hi, Desktop=Hello, Xbox=World}"
/// xmlns:helpers="using:Microsoft.Toolkit.Uwp.UI.Extensions.Markup" />
/// <TextBlock Text="{ui:OnDevice Default=Hi, Desktop=Hello, Xbox=World}"
/// xmlns:ui="using:Microsoft.Toolkit.Uwp.UI" />
/// </code>
/// </example>
public class OnDeviceExtension : MarkupExtension

Просмотреть файл

@ -6,7 +6,7 @@ using System;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Uwp.Extensions;
using Microsoft.Toolkit.Uwp;
using UITests.App.Pages;
using Windows.System;
using Windows.UI.Xaml;

Просмотреть файл

@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
@ -29,8 +29,8 @@
Width="120"
Padding="0,4,0,0"
VerticalAlignment="Center"
extensions:TextBoxMask.CustomMask="5:[0-5]"
extensions:TextBoxMask.Mask="99:59:59"
ui:TextBoxMask.CustomMask="5:[0-5]"
ui:TextBoxMask.Mask="99:59:59"
Text="{x:Bind Value, Mode=OneWay}"
TextAlignment="Center" />
<TextBlock x:Name="InitialValueTextBlock"

Просмотреть файл

@ -8,7 +8,6 @@ using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.Toolkit.HighPerformance.Buffers;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using UnitTests.HighPerformance.Shared.Buffers;

Просмотреть файл

@ -4,7 +4,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.Toolkit.HighPerformance.Enumerables;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -5,7 +5,6 @@
using System;
using System.Buffers;
using System.Linq;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -5,7 +5,6 @@
using System;
using System.Diagnostics.Contracts;
using System.Runtime.InteropServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Просмотреть файл

@ -9,7 +9,6 @@ using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Buffers;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -4,7 +4,6 @@
using System.IO;
using Microsoft.Toolkit.HighPerformance.Buffers;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -7,7 +7,6 @@ using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -4,7 +4,6 @@
using System;
using System.IO;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -5,8 +5,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using UnitTests.HighPerformance.Shared.Buffers.Internals;

Просмотреть файл

@ -7,7 +7,7 @@ using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -5,7 +5,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -5,7 +5,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -4,7 +4,7 @@
using System;
using System.IO;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -4,7 +4,7 @@
using System;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Extensions

Просмотреть файл

@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.
using System;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.Toolkit.HighPerformance.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using UnitTests.HighPerformance.Shared.Buffers.Internals;

Просмотреть файл

@ -5,7 +5,6 @@
using System;
using System.Diagnostics.Contracts;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Просмотреть файл

@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.HighPerformance;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.Toolkit.HighPerformance.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Diagnostics.CodeAnalysis;
#if !WINDOWS_UWP
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
#endif
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Diagnostics.CodeAnalysis;
#if !WINDOWS_UWP
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance.Extensions;
#endif
using Microsoft.Toolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Просмотреть файл

@ -7,7 +7,6 @@ using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.HighPerformance;
using Microsoft.Toolkit.HighPerformance.Enumerables;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance

Просмотреть файл

@ -8,7 +8,6 @@ using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Toolkit.HighPerformance.Buffers;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Streams

Просмотреть файл

@ -5,7 +5,6 @@
using System;
using System.IO;
using Microsoft.Toolkit.HighPerformance.Buffers;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Streams

Просмотреть файл

@ -5,7 +5,6 @@
using System;
using System.IO;
using System.Linq;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Streams

Просмотреть файл

@ -8,7 +8,6 @@ using System.Diagnostics.Contracts;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Microsoft.Toolkit.HighPerformance.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance.Streams

Просмотреть файл

@ -7,14 +7,13 @@ using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.System;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Documents;
using Windows.UI.Xaml.Media;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -3,12 +3,11 @@
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI.Controls;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI;
using Windows.UI.Xaml.Controls;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -3,13 +3,12 @@
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI.Controls;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.Devices.Input;
using Windows.Foundation;
using Windows.UI;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -4,8 +4,7 @@
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Extensions;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.Input.GazeInteraction;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI.Xaml.Controls;

Просмотреть файл

@ -2,13 +2,11 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Extensions;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI;
using Microsoft.Toolkit.Uwp.UI.Controls;
using Microsoft.Toolkit.Uwp.UI.Controls.TextToolbarButtons.Common;
using Microsoft.Toolkit.Uwp.UI.Extensions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.Globalization;
using Windows.UI.Xaml;

Просмотреть файл

@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Extensions;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.ApplicationModel.Activation;

Просмотреть файл

@ -3,12 +3,11 @@
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI.Controls;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -3,11 +3,10 @@
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI.Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI.Xaml;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -4,13 +4,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI;
using Microsoft.Toolkit.Uwp.UI.Controls;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{

Просмотреть файл

@ -4,12 +4,11 @@
using System;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Helpers;
using Microsoft.Toolkit.Uwp;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
using Microsoft.Toolkit.Uwp.Extensions;
namespace UnitTests.XamlIslands.UWPApp
{