I'm partly trying to optimize some of the elements in the Mvvmcross dialog implementation with legacy.
The colors and fonts are set up properly, but if I try to set the text label frame (100 x ... in this example) then I can not stick it.
Can anyone tell me where I am going wrong here? Tried to do it in a few different places. Public class MyBooleanElement: BooleanElement {Public MyBooleanElement (String Caption): Base (Caption, Incorrect) {} Safe Override UISwitch CreateSwitch () {UISwitch s = base .CreateSwitch (); S.BackgroundColor = UIColor.Clear; S.Opaque = false; S.Layer.Opacity = 0.25f; Return s; } Secure Override UITableViewCell GetCellImpl (UITableView TV) {var cell = base.GetCellImpl (tv); If (cell background tagger! = Uicollore, clear) {cell. Background Corollar = uicollore Clear; Cell.TextLabel.Font = Theme.GetContentFont (); Cell.TextLabel.TextColor = UIColor.White; Cell.TextLabel.Frame = New RectangleF (100, 0, 320, 20); // It does not hold, resets 15 cells. Content V. Frame = new rectangle (50, cell.content vframe.tap, cell.content vframe.wide, cell.content vf.fr.height); // Also try? } Return cell; } Safe Override Zero UpdateCaptionDisplay (UITableViewCell cell) {base.UpdateCaptionDisplay (cell); If (cell! = Null) {cell.TextLabel.Frame = new rectangle (100, 0, 320, 20); // It does not hold, resets 15 cells. Text Labell. Background color = UIColor.blue; // Still this works? Some obstacles can not be seen anywhere in the source! Dialogue header header (label) and control for you.
You should look at the source code a bit, maybe try to understand how it works a little.
You can start with a breakpoint and take action in the source Debugging the code I'm sure you want to see where 15 values are being set.
I'm sorry, I can not give you the right answer. I had some problems with the wrong position of the dialog elements on the iPad, and I had to dig some.
Comments
Post a Comment