How to Set BadgeElement Background Color? - xamarin.ios

I am using BadgeElement(s) in Xamarin iOS in my custom made slideout nav menu.
I just would like to set the background color (like with StyledStringElements), does anyone know how?

Try overriding the BadgeElement class or use an own created view and an Uiviewelement

Related

Is it possible to make a webkit webview transparent within the application like other gtk widgets?

I am writing a simple application with Python3, Gtk3 and Webkit2. One of the elements is a webview, but I want the webview to be transparent to the background set for the parent container - in this case a Gtk.Paned in a Gtk.Box where the GtK.Box can optionally have a background image set.
Most of the solutions I've found out there give you a webview that is transparent to the screen/desktop. Like this solution:
Is it possible to render web content over a clear background using WebKit?
This is not quite what I want. Is there any way to choose what webview is transparent to? Or another approach that produces the desired result?
Good question, but as far as I know it's not currently possible.

Montouch tablview as subview issue

I am new to Xamarin IOS and I have a problem with creating nested layouts in IOS as like in Android(some text controls and a list view) . I added a tableview but not sure how to add some text and image controls in a view and add the tableview below the text and image controls. Also I am using ViewPager in Android and is there an equivalent control that I can use in IOS?
Yes, you should use UIScrollView and enable paggin there. The only issue that you need always to set the ContentSize for it, to make it scroll properly. So you should set the common Size of inner content.
You should check out monotouch.dialog for rapid tableview development. Once you get the hang of it, it makes creating tables a lot easier.

Custom title bar in Javafx 2.0?

Is there any tutorial on how to create custom title bar in javafx 2.0? I am creating a desktop GUI app and want to have a black gradient title bar with custom buttons for minimizing and closing. Here is the tutorial for WPF. I am looking for something similar for javafx
To hide platform window:
stage.initStyle(StageStyle.UNDECORATED);
Now you can create your own titlebar/window-buttons & style them.
Finally, check "Ensemble" from Oracle JavaFX samples, they've done the exact thing:
http://www.oracle.com/technetwork/java/javafx/samples/index.html
I don't think it's possible to modify the title bar directly. One of the solution could be to remove the platform decorations and add your custom "title bar" to the top of your windows. Here for an example : JavaFX primaryStage remove windows borders?

Change command menu background in LWUIT

Can we change Command's background color of the menu in LWUIT ?
and how can I set an icon to the "Menu" generated Command ?
thanks
I will try to explain better than the other post. You can change the style of the Menu using and UIID.
There are two ways to do that.
Easy way. Use the LWUIT Resource editor and create in the Unselected tab, and UIID called Menu. In this UIID you should configure the background color as you wish. You can change more things (like text color, size of the font, etc)
Hard way, by code. Create a Style object and set it to the Menu.

How to add custom font in .xib?

I added a custom font in info.plist.But it worked only when programmatically changed.it doesn't change when tried through interface builder by changing the object attribute section. for example i used UILabel then i choose the custom font in the attribute section but it did not change the font style.
install the "Harrowprint" font by double clicking the file and also add it in my project resource file.
thanks in advance,
Senthilkumar
There doesn't appear to be a way, but there are some attractive work arounds.
Using custom fonts in interface builder

Resources