ToggleSwitch.OffContent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the object content that should be displayed using the OffContentTemplate when this ToggleSwitch has state of "Off".
public:
property Platform::Object ^ OffContent { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable OffContent();
void OffContent(IInspectable value);
public object OffContent { get; set; }
var object = toggleSwitch.offContent;
toggleSwitch.offContent = object;
Public Property OffContent As Object
<ToggleSwitch OffContent="stringContent"/>
- or -
<ToggleSwitch>
<ToggleSwitch.OffContent>
singleContentElement
</ToggleSwitch.OffContent>
</ToggleSwitch>
Property Value
The object content. In some cases this is a string, in other cases it is a single element that provides a root for further composition content. Probably the most common "set" usage is to place a binding here.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for