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

Fix AllDisplayLevelsSelecteded typo #574

Merged
merged 3 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
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
29 changes: 26 additions & 3 deletions src/Toolkit/Toolkit.UI.Controls/FloorFilter/FloorFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private void HandleControllerPropertyChanges(object? sender, PropertyChangedEven
_autoVisibilityWrapper?.SetValue(VisibilityProperty, _controller.ShouldDisplayFloorPicker ? Visibility.Visible : Visibility.Collapsed);
break;
case nameof(_controller.AllDisplayLevelsSelected):
OnPropertyChanged(nameof(AllDisplayLevelsSelecteded));
williambohrmann3 marked this conversation as resolved.
Show resolved Hide resolved
OnPropertyChanged(nameof(AllDisplayLevelsSelected));
break;
}
}
Expand Down Expand Up @@ -658,6 +658,7 @@ public void SetSelectedLevelWithoutZoom(FloorLevel newLevel)
/// <remarks>
/// This is used for showing an entire facility in 3D.
/// </remarks>
[Obsolete("This property is deprecated. Use AllDisplayLevelsSelected instead.")]
public bool AllDisplayLevelsSelecteded
williambohrmann3 marked this conversation as resolved.
Show resolved Hide resolved
{
get => _controller.AllDisplayLevelsSelected;
Expand All @@ -673,9 +674,31 @@ public bool AllDisplayLevelsSelecteded
}
williambohrmann3 marked this conversation as resolved.
Show resolved Hide resolved
}
}
#endregion Selection

#region Read-only list properties
/// <summary>
/// Gets or sets a value indicating whether all of the levels for the selected facility should be enabled for display.
/// </summary>
/// <remarks>
/// This is used for showing an entire facility in 3D.
/// </remarks>
public bool AllDisplayLevelsSelected
{
get => _controller.AllDisplayLevelsSelected;
set
{
if (value)
{
_controller.SelectAllDisplayLevels();
}
else
{
_controller.UndoSelectAllDisplayLevels();
}
}
}
#endregion Selection

#region Read-only list properties

#if WINDOWS_XAML

Expand Down
Loading