Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Display Text in RootElement

$
0
0

Hi there,

I have a RootElement inside a Section that contains 2 child elements (EntryElement and RadioGroup). I use it for Termperature Values, basically the user can set the value and the unit (C or F):

RootElement tempEl = new RootElement("Temperature")
{
    new Section("Enter the Temperature") {
        new EntryElement("Value", "Enter the numeric value", string.Empty),
        new RootElement("Unit", new RadioGroup("temp", 0)) {
            new Section("Unit") {
                new MyRadioElement("°C", "C", "temp"),
                new MyRadioElement("°F", "F", "temp"),
            }
        }
    }
};

Once they're done (example they chose "25" and "°C"), how can I show that value in the RootElement cell?

Right now it just shows Temperature > but I want it to show Temperature 25°C >

Any way to do this?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>