since the control is just a ContentView it can be customized in many ways - this is an example of a Clip applied to the color picker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ContentPage.Resources> | |
| <LinearGradientBrush x:Key="OuterBrushNormal" StartPoint="0,0" EndPoint="1,1"> | |
| <GradientStop Color="#E0E0E0" Offset="0.5" /> | |
| <GradientStop Color="#282828" Offset="0.5" /> | |
| </LinearGradientBrush> | |
| <LinearGradientBrush x:Key="OuterBrushHover" StartPoint="0,0" EndPoint="1,1"> | |
| <GradientStop Color="#282828" Offset="0.5" /> | |
| <GradientStop Color="#E0E0E0" Offset="0.5" /> | |
| </LinearGradientBrush> | |
| </ContentPage.Resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void SetupLogger(LogLevel logLevel, string partialMessageToContains, Times timesInvoked) | |
| { | |
| _loggerMock | |
| .Setup(x => x.Log( | |
| It.Is<LogLevel>(level => level == logLevel), | |
| It.IsAny<EventId>(), | |
| It.Is<It.IsAnyType>((o, t) => o.ToString().Contains(partialMessageToContains)), | |
| It.IsAny<Exception?>(), | |
| It.IsAny<Func<It.IsAnyType, Exception?, string>>())) | |
| .Verifiable(timesInvoked, failMessage: $"Expect to contain {partialMessageToContains}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Sample; | |
| var d1 = new DateTime(2024, 05, 11, 08, 31, 49); // End of Clip_00002 | |
| var d2 = new DateTime(2024, 05, 11, 13, 09, 20); // Start of Clip_00003 | |
| var res = d2 - d1; | |
| Console.WriteLine("Diff {0}", res); | |
| var timeLine = new DateTime(2024, 01, 1, 0, 1, 16) + res; // Last clip timeline end | |
| Console.WriteLine("Put next video at {0:HH:mm:ss:ff}", timeLine); /// ?? Less than 4:33 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.ComponentModel; | |
| using System.Diagnostics; | |
| using MAUI = Microsoft.Maui.Controls.Shapes; | |
| namespace TelemetryExporter.UI.CustomControls; | |
| // It will be good that range slider to be Generic and initialize it from code behind. | |
| // For example RangeSlider<T> where T : Struct (or something comparable) | |
| public class RangeSlider : ContentView, INotifyPropertyChanged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery('[name="tc_input_field_form_element[field_name][]"],[name="tc_select_field_form_element[field_name][]"]') | |
| .map((i, x) => `${x.value} ${jQuery(x).nextAll('[name="tc_input_field_form_element[field_label][]"],[name="tc_select_field_form_element[field_label][]"]').get(0).value}`) |
- https://racetimingbg.com
- https://tracksport.live/
- https://gps.tracksport.eu/ (Събитията на живо)
- https://drace.bg/ (Събитията се добавят като наближат)
- https://trailseries.bg/ (Бегачески състезания)
- https://www.race-tracking.com/ (Състезания източна българия/черномоерието)
- https://bgeventsandguiding.com/competitions (Състезания северозападна българия врачанско, монтанско)
- https://racecalendar.bg/ (Повечето са бегачески състезания, но има и за колоездене)
- https://sportenkalendar.bg/kalendar (Събития от всички спортове - държавни първенства)
- https://mtb-bg.com/events (Събитията се добавят като наближат)
- Basebike
- allmountain
- niko bikes
- hala bikes
- pumpmybike.eu
- 1001parts
- veloserviz.com
- bikeshop-bg.com
- champion-bikeshop.com
- pavebikeshop
When working with nullable booleans and using null condiional operator could be wrong:
Let's take the follwoing example:
bool? isRecording = savedInstanceState?.GetBoolean("isRecording");
if (isRecording) - This won't compile. need another approach.
The condition if (isRecording == false) will be true when the variable is equal to false and when it is null.
It's logical to work like that since the default value of bool is false and the null value is more suitable to false.
But we should be careful if the logic need to be executed only if it's equal to false.
NewerOlder