MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / ValueToString

Method ValueToString

Xaml/Controls/SwitchPresenter.cpp:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 hstring SwitchPresenter::ValueToString(const IInspectable &value)
124 {
125 if (const auto str = value.try_as<hstring>())
126 {
127 return *str;
128 }
129 else
130 {
131 return wux::Markup::XamlBindingHelper::ConvertValue(xaml_typename<hstring>(), value).as<hstring>();
132 }
133 }
134}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected