I want to add button with image in TextInput Like in image bellow
Please suggest me the crystal clear way to do so!!
The desired way to do this is to create custom component that extends the Flex TextInput Control. You can create a custom skin based on standard TextInputSkin and place icon in that skin.
[EDIT]
Not exactly what you want. But This may help you..
http://saturnboy.com/2010/07/supertextinput-building-a-custom-component/
Related
Is there any way I can place a ContentView or Grid to cover complete page in Xamarin.Forms?
I need to place it over the TitleBar area without hiding the TitleBar.
I tried to achieve the same using RelativeLayout but it is not working. I am trying to achieve something similar to a popup/modal.
Sadly I can't use any Third Party control in my project or PushModal either.
Ideas?
Adding the sample screen.
You could set in Xaml:
NavigationPage.HasNavigationBar = "False"
If you want to make the content whole page and without hiding the title bar, then you need to make the title bar transparant.Follow this tutorial https://xamgirl.com/transparent-navigation-bar-in-xamarin-forms/
or
If you are trying to achieve popup, consider using this wonderfull plugin https://github.com/rotorgames/Rg.Plugins.Popup
I have a nice looking fxg button, to which I want to attach a tooltip- how do I achieve that without much hassle? (the spark button does this out-of-box, but is not very visually pleasing)
The examples I have seen on search is reverse- using fxg effects in the tooltip...
Thanks again for any guidance/ pointers
Typically you use FXG to draw the skin for a Button, then attach that skin to your Button (either by CSS or by setting the skinClass style on the button when it is declared.) That way you get all of the behaviors of a standard Button drawn however you like using your FXG. You do this by creating a new ButtonSkin based on the default spark ButtonSkin and replacing the default FXG with your own. You will then get the tool tip functionality for free. Hope that helps.
In my flex 4 project I am using some Spark TextInput components. It doesn't show copy and paste in the right click menu by default. The user needs to copy some text and paste into it. How can we enable this?
I found this information useful:
http://forums.adobe.com/message/3612279
Basically, make sure that if you are using TextInput components inside a Panel or TitleWindow, make sure you set mouseEnabled="true". Both PanelSkin and TitleWindowSkin have mouseEnabled="false".
I found that just setting mouseEnabled="true" on my TitleWindow solved the problem.
I think, thats the answer of aour question.
http://blog.flexexamples.com/2008/01/30/copying-text-to-the-operating-system-clipboard-in-flex/
If you are creating a new ContextMenu to add custom items to it and your not seeing the copy paste options, make sure that clipboardMenu=true on your ContextMenu object.
i have a simple datagrid having 2 columns named as image and place. where image column has mx.controls.Image itemRenderer and place is simple. my requirement is to change itemRenderer of image cell when it will be clicked. i means to say when user click on any image from image column than i want to show that image path in editable mode and when user edit that path then the selected cell will start displayed the updated image.
i dont know how to do this and getting depressed . please anyone help me ! :(
You don't need to change itemRenderer for that - just implement that code in your single item renderer. You can add listeners inside it and change the contents of the current cell.
I suggest when going into editable mode for your DataGrid: Also create an itemEditor for your Image column, make it an extended TextInput class. This extended TextInput class will change the data object's imageAddress/url when you are done editing ("itemEditEnd" event).
Let me know if this helps, thanks!
I'd like to have a TabNavigator component that has a close button for some of the tabs. How do I do that?
It seems that the TabNavigator component does not allow (or I could not find) extensibility of this form.
Help. Thanks
You should take a look at the SuperTabNavigator component from the FlexLib project:
SuperTabNavigator example
SuperTabNavigator documentation
FlexLib Component list
If you don't want all of the tabs to have close buttons (I understand from the question that you don't) it looks like you could use the setClosePolicyForTab() method for specifying which tabs you want to have them.
Spark Based Component
flexwiz spark-tabs-with-close-button