Browse Source

Merge branch 'master' into fixes/removeUnsupportedLineCaps

pull/2450/head
Steven Kirk 7 years ago
committed by GitHub
parent
commit
4bae6696cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      azure-pipelines.yml
  2. 4
      src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs
  3. 3
      src/Avalonia.Controls.DataGrid/Properties/AssemblyInfo.cs
  4. 21
      src/Avalonia.Controls/Grid.cs
  5. 5
      src/Avalonia.Controls/Platform/InProcessDragSource.cs

4
azure-pipelines.yml

@ -32,7 +32,7 @@ jobs:
- job: macOS
pool:
vmImage: 'xcode9-macos10.13'
vmImage: 'macOS-10.14'
steps:
- task: DotNetCoreInstaller@0
inputs:
@ -49,7 +49,7 @@ jobs:
inputs:
actions: 'build'
scheme: ''
sdk: 'macosx10.13'
sdk: 'macosx10.14'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, default, specifyPath

4
src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs

@ -927,7 +927,7 @@ namespace Avalonia.Collections
/// <remarks>
/// <p>
/// Clear a sort criteria by assigning SortDescription.Empty to this property.
/// One or more sort criteria in form of <seealso cref="SortDescription"/>
/// One or more sort criteria in form of <seealso cref="DataGridSortDescription"/>
/// can be used, each specifying a property and direction to sort by.
/// </p>
/// </remarks>
@ -4312,4 +4312,4 @@ namespace Avalonia.Collections
}
}
}
}
}

3
src/Avalonia.Controls.DataGrid/Properties/AssemblyInfo.cs

@ -8,7 +8,6 @@ using Avalonia.Metadata;
[assembly: InternalsVisibleTo("Avalonia.Controls.UnitTests")]
[assembly: InternalsVisibleTo("Avalonia.DesignerSupport")]
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia")]
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Controls")]
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Controls.Primitives")]
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Controls.Collections")]
[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Controls.Primitives")]

21
src/Avalonia.Controls/Grid.cs

@ -177,6 +177,17 @@ namespace Avalonia.Controls
return element.GetValue(RowSpanProperty);
}
/// <summary>
/// Gets the value of the IsSharedSizeScope attached property for a control.
/// </summary>
/// <param name="element">The control.</param>
/// <returns>The control's IsSharedSizeScope value.</returns>
public static bool GetIsSharedSizeScope(AvaloniaObject element)
{
return element.GetValue(IsSharedSizeScopeProperty);
}
/// <summary>
/// Sets the value of the Column attached property for a control.
/// </summary>
@ -217,6 +228,16 @@ namespace Avalonia.Controls
element.SetValue(RowSpanProperty, value);
}
/// <summary>
/// Sets the value of IsSharedSizeScope property for a control.
/// </summary>
/// <param name="element">The control.</param>
/// <param name="value">The IsSharedSizeScope value.</param>
public static void SetIsSharedSizeScope(AvaloniaObject element, bool value)
{
element.SetValue(IsSharedSizeScopeProperty, value);
}
/// <summary>
/// Gets the result of the last column measurement.
/// Use this result to reduce the arrange calculation.

5
src/Avalonia.Controls/Platform/InProcessDragSource.cs

@ -147,7 +147,10 @@ namespace Avalonia.Platform
e.Handled = true;
}
else if (e.Key == Key.LeftCtrl || e.Key == Key.RightCtrl || e.Key == Key.LeftAlt || e.Key == Key.RightAlt)
RaiseEventAndUpdateCursor(RawDragEventType.DragOver, _lastRoot, _lastPosition, e.Modifiers);
{
if (_lastRoot != null)
RaiseEventAndUpdateCursor(RawDragEventType.DragOver, _lastRoot, _lastPosition, e.Modifiers);
}
}
private void ProcessMouseEvents(RawMouseEventArgs e)

Loading…
Cancel
Save