Commit Graph

1450 Commits

Author SHA1 Message Date
Mgamerz
0803609fd2 Fix MoveUp and MoveDown to prevent exception
When calling MoveUp and MoveDown, the 'selected' variable is not checked. If I am using a backing data source that can change, this selected value +/- 1 may still not lie in the valid range of values. This PR checks and changes the following:

1) If moving up, and the CURRENT selected value is >= backing data length, the last item is selected
2) If moving down, and the CURRENT selected value is >= backing data length, the last item is selected
3) If the items list has no items, the methods return false as there is nothing to move to. I'm not sure if we should set lastSelectedItem to -1 in this instance.
2020-09-27 03:04:38 +01:00
Charlie Kindel
eece8b97f9 0.89.4 pre-release of 0.90.0 2020-09-27 03:04:37 +01:00
Adeel
d900721519 Add custom resolver for libcoreclr.so 2020-09-27 03:04:24 +01:00
Artyom
666912c046 Define View actions as events 2020-09-27 03:02:22 +01:00
Artyom
47a2020bf4 Convert TopLevel.Ready into event 2020-09-27 03:02:21 +01:00
Artyom
db32add954 Migrate all controls to C# events 2020-09-27 03:02:21 +01:00
Artyom
c411d92053 Use C# events in more controls 2020-09-27 03:02:20 +01:00
Artyom
7d3016acae Button.Clicked as a C# event 2020-09-27 03:02:20 +01:00
Adeel Mujahid
80591f3ce2 Delete using WindowsRuntime from unit test 2020-09-27 03:02:20 +01:00
Charlie Kindel
3ce2eed9b3 Another test version to verify build. 2020-09-27 03:02:19 +01:00
Charlie Kindel
4518c0a8a3 merged master and updated readme release notes 2020-09-27 03:02:19 +01:00
Charlie Kindel
d1ad424da9 bumped version to 0.90 and updated release notes 2020-09-27 03:02:07 +01:00
blakepell
947cea3b32 TextView MoveHome and MoveEnd methods. 2020-09-10 20:06:02 +01:00
Melvyn Laïly
3529a947bc Fix typos 2020-09-10 20:06:02 +01:00
Melvyn Laïly
077a356944 Fix #882
Fix NullReferenceException during keyboard navigation
when `Focused` is null.
2020-09-10 20:05:49 +01:00
Charlie Kindel
b7749e3dd8 trying without pdbs just to test 2020-09-03 14:47:42 +01:00
Charlie Kindel
4ae432eaf5 bump ver to 89.3 2020-09-03 14:47:42 +01:00
Charlie Kindel
6f8cf1dcb2 modify to include pdbs 2020-09-03 14:47:41 +01:00
Charlie Kindel
3a59bc163b testing nuget push for 0.89.2 2020-09-03 14:47:41 +01:00
Charlie Kindel
07541d84d0 testing nuget push 2020-09-03 14:47:41 +01:00
BDisp
4742db72b3 If KeepContentAlwaysInViewport is true ensures that the scrollbars is at least a wide equal to one. 2020-09-03 14:47:40 +01:00
BDisp
07374b9df3 Added a KeepContentAlwaysInViewport property as suggested in https://github.com/migueldeicaza/gui.cs/issues/859#issuecomment-673064590 2020-09-03 14:47:40 +01:00
BDisp
7b64b38a30 Fixes #859. ScrollDown and ScrollRight navigates to beyond the ContentSize size. 2020-09-03 14:47:40 +01:00
Charlie Kindel
beee4302cd another test 2020-09-03 14:47:39 +01:00
Charlie Kindel
00d619f5c7 Prep for dotnet publish. 2020-09-03 14:47:39 +01:00
Charlie Kindel
6fa120b721 refreshed api docs 2020-09-03 14:47:38 +01:00
BDisp
5d404f1105 Fixes #864. FrameView has only one contentView now. 2020-09-03 14:47:37 +01:00
BDisp
d8ed06f2e9 Fixes #862. Issue was in the Text property of the View class. 2020-09-03 14:47:36 +01:00
ttommyth
a8dfd05fc8 Update ScrollView.cs
typo
2020-09-03 14:47:36 +01:00
BDisp
ea881b3adf Cleaning nameEntry if dirEntry was changing. 2020-09-03 14:47:35 +01:00
BDisp
d5400582e6 Removed unnecessary parameter on ExecuteSelection and if AllowsMultipleSelection is true ensures that at least the valid current file path is returned if none is marked. 2020-09-03 14:47:35 +01:00
BDisp
24f0c8e2a8 Fixes #844. The SelectionChanged action it's now working correctly. 2020-09-03 14:47:34 +01:00
Gerasimos (Makis) Maropoulos
1adbc1867f various misspell fixes 2020-09-03 14:47:34 +01:00
BDisp
7a1e82af85 Fixes #844. If CanChooseDirectories is true the selected(s) folders should appear on the open text. 2020-09-03 14:47:22 +01:00
BDisp
9b66ad5cfd Added more unit tests to Pos and Dim. 2020-08-07 16:17:20 +01:00
BDisp
20def297c6 StatusBar fix when vertical shrinking. 2020-08-07 16:17:19 +01:00
BDisp
de0a190b7c Fixes #644. Added a UICatalog Scenario for a dynamic menu bar. 2020-08-07 16:17:19 +01:00
BDisp
5de3f6908f Added a HorizontalSpace property. 2020-08-07 16:17:19 +01:00
BDisp
9c74332cc4 Fixes #351. Added a horizontal display for RadioGroup. 2020-08-07 16:17:18 +01:00
BDisp
c597d601a3 Added more conditions to sure it act as expected. 2020-08-07 16:17:18 +01:00
BDisp
ae598843b4 Providing a simple test for Fixes #740. Multi thread toplevels. 2020-08-07 16:17:17 +01:00
BDisp
ce75fbf1c3 Fixes #847. Since the timeout issue are fixed there is no need to use tokenSource.Cancel but just reset the eventReady. 2020-08-07 16:17:17 +01:00
BDisp
ffd15972ae Added conditional exceptions. 2020-08-07 16:17:17 +01:00
BDisp
4d5713e269 Fixes #853. CanChooseDirectories and CanChooseFiles now work properly. 2020-08-07 16:17:16 +01:00
BDisp
5b015e7a45 Fixes #852. Avoiding exception if infos is empty. 2020-08-07 16:17:16 +01:00
BDisp
1447779753 Fixes #844. Now selects the correct Directory. 2020-08-07 16:17:16 +01:00
BDisp
a678d22aad Fixes #842. A Toplevel must be created by Application.Init. 2020-08-07 16:17:15 +01:00
BDisp
a44a76c181 Fixed source null check. 2020-08-07 16:17:15 +01:00
BDisp
8c17558c61 Invoke SelectedItemChanged even source is empty on enter. 2020-08-07 16:17:14 +01:00
BDisp
2a55e76d38 Ensures that first MoveDown is triggered. 2020-08-07 16:17:14 +01:00