Rock Mobile Docs
Community
Xamarin Forms Docs
Search…
Welcome 👋
📱
Getting Started
Introduction
Building Your First App
Control Reference
Developer Controls
Effects
Form Fields
XAML Extensions
Boolean Value Converter
From Json
Inverse Boolean Converter
On Device Platform
On Device Type
Palette Color
Seconds To Time String Converter
Content Controls
Lava
Animations
Performance
Rock Field Types
Block Reference
Block Commands
Advanced: Dynamic Content
Tips and Tricks
Advanced Topics
Codex
🎨
Styling
Introduction
Blocks
Colors
Styling Components
Shell
Helper Classes
Custom CSS
👨💻
Developers
Fundamentals
Custom Blocks
Versioning
🏭
App Factory
Powered By
GitBook
Seconds To Time String Converter
The purpose of this converter is to allow you to take a value in seconds and have it displayed as a time string, such as
HH:MM:SS
. There are a few properties that let you customize the format.
Properties
Property
Type
Description
ShowHours
TimeSegmentVisibility
How to show the hours segment of the time string.
Defaults to
Automatic
.
ShowMinutes
TimeSegmentVisibility
How to show the minutes segment of the time string.
Defaults to
Automatic
.
ShowSeconds
TimeSegmentVisibility
How to show the seconds segment of the time string.
Defaults to
Automatic
.
Time Segment Visibility
Value
Description
Automatic
The value will be hidden unless it is non-zero or a prior segment is visible.
Never
The segment will never be visible.
Always
The segment will always be visible.
Example
<
Label
Text
=
"
{Binding Value, Converter={Rock:SecondsToTimeStringConverter ShowMinutes=Always}}
"
/>
Previous
Palette Color
Next
Content Controls
Last modified
2mo ago
Copy link
Outline
Properties
Example