Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some spelling #15342

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AddIns/Uno.UI.Lottie/System.Json/JsonValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ IEnumerator IEnumerable.GetEnumerator()
// JavaScript does require this:
// http://stackoverflow.com/questions/2965293/javascript-parse-error-on-u2028-unicode-character/9168133#9168133
// - '/' also does not have to be escaped, but escaping it when
// preceeded by a '<' avoids problems with JSON in HTML <script> tags
// preceded by a '<' avoids problems with JSON in HTML <script> tags
private static bool NeedEscape(string src, int i)
{
char c = src[i];
Expand Down
2 changes: 1 addition & 1 deletion src/SamplesApp/SamplesApp.Shared/App.Assertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void AssertInitialWindowSize()

/// <summary>
/// Verifies that ApplicationData are available immediately after the application class is created
/// and the data are stored in proper application specific lcoations.
/// and the data are stored in proper application specific locations.
/// </summary>
public void AssertApplicationData()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ async Task InvokeTestMethod(TestCase testCase)
_currentRun.CurrentRepeatCount = 0;

// We await this to make sure the UI is updated before running the test.
// This will help developpers to identify faulty tests when the app is crashing.
// This will help developers to identify faulty tests when the app is crashing.
await ReportMessage($"Running test {fullTestName}");
ReportTestsResults();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void ChangePaneVisibleButton_Click(object sender, RoutedEventArgs e)

private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)
{
// Reset argument type indicatiors
// Reset argument type indicators
ItemInvokedItemType.Text = "null";
ItemInvokedItemContainerType.Text = "null";

Expand All @@ -166,7 +166,7 @@ private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvoke

private void NavView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
{
// Reset argument type indicatiors
// Reset argument type indicators
SelectionChangedItemType.Text = "null";
SelectionChangedItemContainerType.Text = "null";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvoke
{
m_itemInvokedEventsFired++;

// Reset argument type indicatiors
// Reset argument type indicators
ItemInvokedItemType.Text = "null";
ItemInvokedItemContainerType.Text = "null";

Expand Down Expand Up @@ -416,7 +416,7 @@ private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvoke
private void NavView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args)
{
SelectionChangedRaised.Text = "True";
// Reset argument type indicatiors
// Reset argument type indicators
SelectionChangedItemType.Text = "null";
SelectionChangedItemContainerType.Text = "null";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private void NavView_SelectionChanged(Microsoft/* UWP don't rename */.UI.Xaml.Co
SelectionEventResult.Text = "Failed";
}

// Reset argument type indicatiors
// Reset argument type indicators
SelectionChangedItemType.Text = "null";
SelectionChangedItemContainerType.Text = "null";

Expand All @@ -94,7 +94,7 @@ private void NavView_SelectionChanged(Microsoft/* UWP don't rename */.UI.Xaml.Co

private void NavView_ItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)
{
// Reset argument type indicatiors
// Reset argument type indicators
ItemInvokedItemType.Text = "null";
ItemInvokedItemContainerType.Text = "null";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- CommonTests.MenuItemKeyboardInvokeTest()
- SelectionTests.MenuItemAutomationSelectionTest()

The reason is that on RS2, the ScollViewer handles arrow keys and thus scrolls the NavigationView pane instead of moving focus.
The reason is that on RS2, the ScrollViewer handles arrow keys and thus scrolls the NavigationView pane instead of moving focus.
This is not an issue with the current page setup as all NavView items fit the page without the need to scroll it. Adding more items,
however, will push these items off-screen leading the ScrollViewer to scroll the pane instead of moving focus. As a result, the above
mentioned tests will fail. -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ private void OnTabStripDrop(object sender, Microsoft.UI.Xaml.DragEventArgs e)
object objOriginTabView;
if (e.DataView.Properties.TryGetValue(DataIdentifier, out obj) && e.DataView.Properties.TryGetValue(DataTabView, out objOriginTabView))
{
// TODO - BUG: obj should never be null, but occassionally is. Why?
// TODO - BUG: obj should never be null, but occasionally is. Why?
if (obj == null || objOriginTabView == null)
{
return;
Expand All @@ -320,7 +320,7 @@ private void OnTabStripDrop(object sender, Microsoft.UI.Xaml.DragEventArgs e)
// First we need to get the position in the List to drop to
var index = -1;

// Determine which items in the list our pointer is inbetween.
// Determine which items in the list our pointer is in between.
for (int i = 0; i < destinationTabView.TabItems.Count; i++)
{
var item = destinationTabView.ContainerFromIndex(i) as TabViewItem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private async void MidiInputDevice_MessageReceived(MidiInPort sender, MidiMessag
var systemExclusiveMessage = (MidiSystemExclusiveMessage)receivedMidiMessage;
outputMessage.Append(", ");

// Read the SysEx bufffer
// Read the SysEx buffer
var sysExDataReader = DataReader.FromBuffer(systemExclusiveMessage.RawData);
while (sysExDataReader.UnconsumedBufferLength > 0)
{
Expand All @@ -214,7 +214,7 @@ private async void MidiInputDevice_MessageReceived(MidiInPort sender, MidiMessag
throw new InvalidOperationException();
}

// Skip TimingClock and ActiveSensing messages to avoid overcrowding the list. Commment this check out to see all messages
// Skip TimingClock and ActiveSensing messages to avoid overcrowding the list. Comment this check out to see all messages
if ((receivedMidiMessage.Type != MidiMessageType.TimingClock) && (receivedMidiMessage.Type != MidiMessageType.ActiveSensing))
{
// Use the Dispatcher to update the messages on the UI thread
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private async void PrepareClient()
_oidcClient = new OidcClient(options);

// Invoke Discovery and prepare a request state, containing the nonce.
// This is done here to ensure the discovery mecanism is done before
// This is done here to ensure the discovery mechanism is done before
// the user clicks on the SignIn button. Since the opening of a web window
// should be done during the handling of a user interaction (here it's the button click),
// it will be too late to reach the discovery endpoint.
Expand Down Expand Up @@ -87,7 +87,7 @@ void SignIn_Clicked(object sender, RoutedEventArgs e)
var startUri = new Uri(_loginState.StartUrl);

// Important: there should be NO await before calling .AuthenticateAsync() - at least
// on WebAssembly, in order to prevent trigering the popup blocker mechanisms.
// on WebAssembly, in order to prevent triggering the popup blocker mechanisms.
var userResult = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, startUri);

if (userResult.ResponseStatus != WebAuthenticationStatus.Success)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</CommandBar.PrimaryCommands>
</CommandBar>

<!-- Exampl with toolkit -->
<!-- Example with toolkit -->
<CommandBar Content="This is a long sentence to test the command bar on ios and android - Ceci est une longue phrase pour tester la commandBar sur Android et iOS"
Foreground="Red"
Background="Pink">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</CommandBar.PrimaryCommands>
</CommandBar>

<!-- Exampl with toolkit -->
<!-- Example with toolkit -->
<CommandBar Foreground="Red"
Background="Pink">
<CommandBar.Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<!-- TODO : Remove ContentTemplateSelector/Content/ContentTenplate when bug #7078 will be fixed (proper ContentPresenter/ContentControl hirerarchy -->
<!-- TODO : Remove ContentTemplateSelector/Content/ContentTemplate when bug #7078 will be fixed (proper ContentPresenter/ContentControl hierarchy -->
<ContentPresenter x:Name="ContentPresenterIcon"
Opacity="1"
AutomationProperties.AccessibilityView="Raw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<Grid BorderBrush="DarkGray" BorderThickness="5" x:Name="RootOfTransparentPage">
<!--
This page intentonnaly left completely blank without event a TextBlock,
so we can test if pointer are passing throug it (like they should, event if BG=Transparent !)
This page intentionally left completely blank without event a TextBlock,
so we can test if pointer are passing through it (like they should, event if BG=Transparent !)
-->
</Grid>
</Page>
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
VerticalAlignment="Center" />
</Grid>

<!-- Two Cloumns With Auto and Star sizes -->
<!-- Two Columns With Auto and Star sizes -->
<Grid Margin="0,5"
MinWidth="198"
MinHeight="100"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
</VisualStateGroup>
--><!-- Media state visual states -->
<!-- Audio Selection Button visibility states --><!--
<VisualStateGroup x:Name="AudioSelectionAvailablityStates">
<VisualStateGroup x:Name="AudioSelectionAvailabilityStates">
<VisualState x:Name="AudioSelectionAvailable" />
<VisualState x:Name="AudioSelectionUnavailable" />
</VisualStateGroup>
--><!-- Video volume visibility states -->
<!-- Closed Captioning Selection Button visibility states --><!--
<VisualStateGroup x:Name="CCSelectionAvailablityStates">
<VisualStateGroup x:Name="CCSelectionAvailabilityStates">
<VisualState x:Name="CCSelectionAvailable" />
<VisualState x:Name="CCSelectionUnavailable" />
</VisualStateGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!--Permormance slider-->
<!--Performance slider-->
<Grid Margin="15,5">
<ListView ItemsSource="{Binding [SampleItems]}"
Header="{Binding Parent}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</muxc:SwipeControl>
</ListViewItem>

<!-- Testing executing, swipe to revealin one item (less than the threshold of 100px), and executing -->
<!-- Testing executing, swipe to reveal in one item (less than the threshold of 100px), and executing -->
<ListViewItem AutomationProperties.Name="SwipeControl2" Height="40">
<muxc:SwipeControl x:Name="sc2" LeftItems="{StaticResource OneRevealItem}" RightItems="{StaticResource ExecuteItemsHorizontal}">
<TextBlock Text="SwipeControl 2" VerticalAlignment="Center"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public PasswordBox_Reveal_Scroll()
{
this.InitializeComponent();
#if __ANDROID__
// When we open yhe keyboard on Anbdroid, it will display the status bar
// When we open yhe keyboard on Android, it will display the status bar
// As this test focus the password, it's easier to always make it visible
// and then make sure to compare only well-known parts of the screen.
var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public Shape_StrokeTest()
this.InitializeComponent();
TestTarget.Stroke = _brushes[0];

// Apperently, these scenarios already work without the fix..?:
// Apparently, these scenarios already work without the fix..?:
// - 1 OK: assign Shape.Stroke directly
// - 2 OK: assign Shape.Stroke.Color directly
// - 3 OK: updating Shape.Stroke.Color(ThemeResource) with (dark/light) theme change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static partial class XBindExpressionParser
/// <returns>The adjusted markup</returns>
/// <remarks>
/// The System.Xaml parser does not support having extended expressions, with
/// quotes or commads inside an unquoted property value. The point of this method is
/// quotes or commands inside an unquoted property value. The point of this method is
/// to encode the whole Path property as Base64 to that its content does not interfere
/// with the default rules of the parser. The expression is then restored using <see cref="RestoreSinglePath"/>.
/// </remarks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<StackPanel Orientation="0 " />
<StackPanel Orientation=" 0 " />

<!-- space or digit sperator are illegal however -->
<!-- space or digit seperator are illegal however -->
<void:RawNumericalEnumValueTest SomeEnumProperty="3 1 2" />
<void:RawNumericalEnumValueTest SomeEnumProperty="3_1_2" />

Expand Down
4 changes: 2 additions & 2 deletions src/Uno.Foundation/Collections/PropertySet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public bool Remove(string key)
/// Tries to get the value for the specified key.
/// </summary>
/// <param name="key">The key to retrieve.</param>
/// <param name="value">The value correspodning with the key.</param>
/// <param name="value">The value corresponding with the key.</param>
/// <returns>True if found.</returns>
public bool TryGetValue(string key, out object? value)
{
Expand All @@ -101,7 +101,7 @@ public object? this[string key]
get => _dictionary[key];
set
{
// Add or update and raise map changed accrodingly
// Add or update and raise map changed accordingly
if (_dictionary.TryGetValue(key, out var existingValue))
{
if (value != existingValue)
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.Foundation/Collections/StringMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public bool Remove(string key)
/// Tries to get the value for the specified key.
/// </summary>
/// <param name="key">The key to retrieve.</param>
/// <param name="value">The value correspodning with the key.</param>
/// <param name="value">The value corresponding with the key.</param>
/// <returns>True if found.</returns>
public bool TryGetValue(string key, out string? value)
{
Expand All @@ -100,7 +100,7 @@ public string? this[string key]
get => _dictionary[key];
set
{
// Add or update and raise map changed accrodingly
// Add or update and raise map changed accordingly
if (_dictionary.TryGetValue(key, out var existingValue))
{
if (value != existingValue)
Expand Down
4 changes: 2 additions & 2 deletions src/Uno.Foundation/Collections/ValueSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public bool Remove(string key)
/// Tries to get the value for the specified key.
/// </summary>
/// <param name="key">The key to retrieve.</param>
/// <param name="value">The value correspodning with the key.</param>
/// <param name="value">The value corresponding with the key.</param>
/// <returns>True if found.</returns>
public bool TryGetValue(string key, out object? value)
{
Expand All @@ -101,7 +101,7 @@ public object? this[string key]
get => _dictionary[key];
set
{
// Add or update and raise map changed accrodingly
// Add or update and raise map changed accordingly
if (_dictionary.TryGetValue(key, out var existingValue))
{
if (value != existingValue)
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.Foundation/Extensions/UriExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static IDictionary<string, string> GetParameters(this Uri uri)
internal static Uri TrimEndUriSlash(this Uri uri) => new(uri.OriginalString.TrimEnd("/"));

/// <summary>
/// Get extension of the traget file of the uri.
/// Get extension of the target file of the uri.
/// </summary>
/// <param name="uri"></param>
/// <returns></returns>
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.Foundation/Internal/AsyncOperation.TResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public AsyncStatus Status
{
_status = value;

// Note: No need to check if the 'value' is a final state, the 'Sarted' state is set in ctor,
// Note: No need to check if the 'value' is a final state, the 'Started' state is set in ctor,
// i.e. before the '_onCompleted' is being set.
_onCompleted?.Invoke(this, value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static TResult[] SelectToArray<TSource, TResult>(this ICollection<TSource
/// <summary>
/// Projects the specified collection to a <see cref="List{T}"/>.
/// </summary>
/// <remarks>This method can be useful when the enumeation of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
/// <remarks>This method can be useful when the enumeration of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
public static List<TResult> SelectToList<TSource, TResult>(this ICollection<TSource> source, Func<TSource, TResult> selector)
{
var output = new List<TResult>(source.Count);
Expand All @@ -141,7 +141,7 @@ public static List<TResult> SelectToList<TSource, TResult>(this ICollection<TSou
/// <summary>
/// Projects the specified collection to a <see cref="List{T}"/>.
/// </summary>
/// <remarks>This method can be useful when the enumeation of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
/// <remarks>This method can be useful when the enumeration of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
public static List<TResult> SelectToList<TSource, TResult>(this IList<TSource> source, Func<TSource, TResult> selector)
{
var output = new List<TResult>(source.Count);
Expand All @@ -157,7 +157,7 @@ public static List<TResult> SelectToList<TSource, TResult>(this IList<TSource> s
/// <summary>
/// Projects a <see cref="List{T}"/>. to an other <see cref="List{T}"/>.
/// </summary>
/// <remarks>This method can be useful when the enumeation of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
/// <remarks>This method can be useful when the enumeration of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
public static List<TResult> SelectToList<TSource, TResult>(this List<TSource> source, Func<TSource, TResult> selector)
{
var output = new List<TResult>(source.Count);
Expand All @@ -173,7 +173,7 @@ public static List<TResult> SelectToList<TSource, TResult>(this List<TSource> so
/// <summary>
/// Projects the specified <see cref="List{T}"/> to an other <see cref="List{T}"/> with an index.
/// </summary>
/// <remarks>This method can be useful when the enumeation of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
/// <remarks>This method can be useful when the enumeration of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
public static List<TResult> SelectToList<TSource, TResult>(this List<TSource> source, Func<TSource, int, TResult> selector)
{
var output = new List<TResult>(source.Count);
Expand All @@ -190,7 +190,7 @@ public static List<TResult> SelectToList<TSource, TResult>(this List<TSource> so
/// <summary>
/// Filters the specified <see cref="List{T}"/> using a predicate.
/// </summary>
/// <remarks>This method can be useful when the enumeation of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
/// <remarks>This method can be useful when the enumeration of the result requires less allocations.(see <see cref="List{T}.Enumerator"/>)</remarks>
public static List<TSource> WhereToList<TSource>(this List<TSource> source, Func<TSource, bool> selector)
{
var output = new List<TSource>(source.Count);
Expand Down
Loading
Loading