I need to align password to center in PasswordBox like TextAlignment property do for TextBox, but unfortunately there is no TextAlignment property defined with PasswordBox element, In windows phone 8 i achieved this by modifying PasswordBox Template as this post -PasswordBox textalignment in WP7,
But when searched for Windows Store App I found many post to regarding silverlight and wpf like This but not working for Windows store apps.
Thanks :)
Include namespace:
<!-- XML Namespace mapping. -->
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
Add the non-default control HorizontalContentAlignment to the style template.
<control HorizontalContentAlignment="horizontalAlignmentValue"/>
More info here and here
Related
So, I'm new to Vaadin, but am interested in using the "Facebook" theme as shown in their demo from here: https://demo.vaadin.com/valo-theme/#!buttons-and-links (and then choose "Facebook" in the top right corner). But, when downloading the latest Vaadin 12 system, I can't figure out how to get the "Facebook" them. The documentation only seems to imply that "Light" and "Material" are available....How do I get the Facebook theme if that's what I've determine is the "best" for my app?
The test app you linked ( https://demo.vaadin.com/valo-theme/#!buttons-and-links ) demonstrates features of Valo theme in Vaadin 7 & 8. So this is not directly applicable for Vaadin 10+, e.g. Vaadin 12. In Vaadin 12 there is a new theme system called Lumo. And as you have noticed there are two base variants of it. That "facebook" variant for Vaadin 8 is implemented by just setting few internal SASS variables of Valo (see: https://github.com/vaadin/valo-demo/blob/master/src/main/webapp/VAADIN/themes/tests-valo-facebook/_variables.scss )
In Lumo theming system you can achieve something similar by using the CSS custom properties. You can find some information about used custom properties here: https://cdn.vaadin.com/vaadin-lumo-styles/1.3.3/demo/customization.html So by setting selected properties in similar fashion, you could most likely achieve something similar.
I'm using emojis on a website I'm developing. I would like them to use Twitter style. Is there any way to do this?
Use the twemoji project and implement the script in the <head> of your website.
<script src="//twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script>
You could have a java trigger or jquery trigger set up when a textarea or textbox loads/changes its text content to replace things like :) and :( with the emojis grabbed from those other services. custom font packs for text-replacement might be a good idea here, or absolutely positioned objects, perhaps.
I am very familiar with web technologies (HTML, JavaScript, CSS), but not with XBL and XForms. I would like to package a "widget" inside an XBL component, so it can be exposed to Form Builder, and used by form authors creating forms with Form Builder. What would be a good place to start learning how to do this? Do you have recommendation on the tools to use to edit XBL/XForms?
Getting started
This answer provides a good overview of what needs to be added to your XBL control so it can be used in Form Builder.
For more information on how to provide Form Builder specific metadata for your XBL control, see the documentation on <fb:metadata>.
Looking at examples always helps: the source of all the build-in XBL controls is available on GitHub.
If you want Form Builder to reload the component, all you need to do is click on the green icon with 2 arrows at the top of the Form Builder left bar (no need to restart your app server, or even reload Form Builder).
Tools and debugging
When editing XML, it helps to have a decent editor that would at least make sure what you type is well-formed XML, and maybe help you indent things properly. At Orbeon, we use IntelliJ because in addition to XML it also has good support for Scala, Java, JavaScript, CSS, LESS, which we use in Orbeon Forms.
For debugging, you can enable the XForms inspector. The inspector helps you see live what the state of all the instances is, including those inside XBL components. Make sure the property is set to false when you first load Form Builder (the inspector doesn't show properly with Form Builder), then set it to true, and hit the test button on your forms: the inspector will show at the bottom of your form.
Specific questions
If you have specific questions about programming with XBL in Orbeon Forms, I would encourage you to use Stack Overflow and ask them with the tags orbeon and xbl, so they can then be found more easily.
I have developed a custom Liferay portlet that appears in the control panel. The existing (Liferay-supplied) portlets all include a nice help balloon and help icon in the Portlet title bar. I'm looking for a way to add that to my custom portlet as well.
Liferay included all the help text identified by portlet name in their Language.properties file. Their control panel portlets seem to use Velocity templates, more or less hard-coding the help feature. I'm using JSF / ICE / LiferayFaces in my portlet and don't see a way of setting these values to get integrated help that looks seamless.
Help! Thanks!
Have you tried adding a javax.portlet.description.<your-portlet-name>=My Portlet to your resource bundle? The Control Panel help text is derived from the portlet's configured resource bundle and the key must follow that that convention. Also, <your-portlet-name> must match the name you used in the liferay-portlet.xml and portlet.xml files.
Does anyone know if there's a way to add an RTE to textarea fields within salesforce? I'm fairly new to the platform but i haven't been able to find any useful documentation on this.
In addition to the component, there's also an example of integrating the open source FckEditor component into Visualforce here:
http://blog.sforce.com/sforce/2009/05/a-rich-editor-component-for-visualforce.html
If you're using VisualForce, you can use the inputTextArea tag to edit/save rich text. Set the "richText" attribute to true.