All posts by
ScrollViewer General
Move to new position within ScrollViewer Disable scrolling in code
Padding
Inconsistent accessibility: field type is less accessible than field
Build error: “Inconsistent accessibility: field type ##### is less accessible than field #####” Change: To this:
DatePicker and TimePicker UI Controls
DatePicker UI Control Popup DatePicker xaml cs Popup TimePicker xaml cs Set controls to current DateTime
Brush Colours
Objects that use a brush color Setting A Brush Color Using a const defined color This is actually quite hard as Color can’t be defined const and .FromArgb can’t take a Int32 in UWP. The following achieves it
Const Array
How to declare the equivalent of a const array
TimeSpan and Calculating Time Difference
How many hours/minutes/seconds/etc have elapsed Add or subtract a TimeSpan from a DateTime Don’t use timespan, just use AddHours etc:
Read the sytem clock
For applications which are not network connected on hardware such as the Raspberry Pi without a RTC, will you use the system clock or your own RTC hardware to read time???? Get current time string Get current time as variables
Legends
This needs adding to the top section of the .xaml file A vertical list of legends (unbound) Displaying Legends Horizontally You can set a height and width of the telerikPrimitives:RadLegendControl, thus causing them to be laid out to fit Example with horizontally laid out Legends and styling of the legend items