8 changed files with 123 additions and 37 deletions
@ -1,20 +1,29 @@ |
|||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
// <copyright file="DefinitionBase.cs" company="Steven Kirk">
|
// <copyright file="DefinitionBase.cs" company="Steven Kirk">
|
||||
// Copyright 2013 MIT Licence. See licence.md for more information.
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
||||
// </copyright>
|
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
|
|
||||
namespace Perspex.Controls |
namespace Perspex.Controls |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Base class for <see cref="ColumnDefinition"/> and <see cref="RowDefinition"/>.
|
||||
|
/// </summary>
|
||||
public class DefinitionBase : PerspexObject |
public class DefinitionBase : PerspexObject |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Defines the <see cref="SharedSizeGroup"/> property.
|
||||
|
/// </summary>
|
||||
public static readonly PerspexProperty<string> SharedSizeGroupProperty = |
public static readonly PerspexProperty<string> SharedSizeGroupProperty = |
||||
PerspexProperty.Register<DefinitionBase, string>("SharedSizeGroup", inherits: true); |
PerspexProperty.Register<DefinitionBase, string>(nameof(SharedSizeGroup), inherits: true); |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Gets or sets the name of the shared size group of the column or row.
|
||||
|
/// </summary>
|
||||
public string SharedSizeGroup |
public string SharedSizeGroup |
||||
{ |
{ |
||||
get { return this.GetValue(SharedSizeGroupProperty); } |
get { return this.GetValue(SharedSizeGroupProperty); } |
||||
set { this.SetValue(SharedSizeGroupProperty, value); } |
set { this.SetValue(SharedSizeGroupProperty, value); } |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
@ -1,13 +1,27 @@ |
|||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
// <copyright file="ISelectable.cs" company="Steven Kirk">
|
// <copyright file="ISelectable.cs" company="Steven Kirk">
|
||||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
||||
// </copyright>
|
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
|
|
||||
namespace Perspex.Controls |
namespace Perspex.Controls |
||||
{ |
{ |
||||
|
using Perspex.Controls.Primitives; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Interface for objects that are selectable.
|
||||
|
/// </summary>
|
||||
|
/// <remarks>
|
||||
|
/// Controls such as <see cref="Selector"/> use this interface to indicate the selected
|
||||
|
/// control in a list. If changing the control's <see cref="IsSelected"/> property should
|
||||
|
/// update the selection in a <see cref="SelectingItemsControl"/> or equivalent, then the
|
||||
|
/// control should raise the <see cref="SelectingItemsControl.IsSelectedChangedEvent"/>.
|
||||
|
/// </remarks>
|
||||
public interface ISelectable |
public interface ISelectable |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Gets or sets the selected state of the object.
|
||||
|
/// </summary>
|
||||
bool IsSelected { get; set; } |
bool IsSelected { get; set; } |
||||
} |
} |
||||
} |
} |
||||
@ -1,14 +1,24 @@ |
|||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
// <copyright file="TextWrapping.cs" company="Steven Kirk">
|
// <copyright file="TextWrapping.cs" company="Steven Kirk">
|
||||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
// Copyright 2015 MIT Licence. See licence.md for more information.
|
||||
// </copyright>
|
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||
|
|
||||
namespace Perspex.Controls |
namespace Perspex.Controls |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Controls the wrapping mode in a <see cref="TextBlock"/>.
|
||||
|
/// </summary>
|
||||
public enum TextWrapping |
public enum TextWrapping |
||||
{ |
{ |
||||
|
/// <summary>
|
||||
|
/// Text should not wrap.
|
||||
|
/// </summary>
|
||||
NoWrap, |
NoWrap, |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// Text can wrap.
|
||||
|
/// </summary>
|
||||
Wrap |
Wrap |
||||
} |
} |
||||
} |
} |
||||
Loading…
Reference in new issue