Best way to change font properties in lightswitch - silverlight-4.0

How can i change Label font properties (size, font and color) for any screen item i have ??
i found an extension that can give me some properties to play with (Pixata Custom Controls for lightswitch)
the problem with it is that i can change only data properties i cant play with the label style itself
for example if i have textbox screen item lightswitch will generate a label and a text box for me in the Pixata extension i can only manipulate the texbox but not the label
so what is the best way to manipulate font properties in general and label font properties in particular?

I found the answer from BethMassi in her awesome blog which was as follow
You can select the style in the properties window for the control on the screen designer. Controls support basic Normal, Warning, Heading 1, etc. styles. If you want to change all colors, fonts, etc. then you need to create or download a theme. If you just want a single control to show in a different font/color then you can create a custom control.
thanks a lot beth
Thanks Everyone :)
3oon

Related

Is there a way to get a dropdown of Fonts?

b is an instance of the button class. Following are two ways to set the Font of the button b. But in both cases, I have typed out the word ‘Calibri’. Is there a way to pull ‘Calibri’ through some property or method so that we don’t have to type it? Ideally I would like to get a dropdown list from where I can choose a font (something similar to choosing colours). Is that possible?
b.Font = New Font("Calibri", 20)
OR
Dim fontF As New FontFamily("Calibri")
b.Font = New Font(fontF, 20)
Also, if the above is not possible, is there a way to find out the complete list of fonts available to be used in the WinForms I am trying to create? PLease note that I am looking for something as following: b.FlatAppearance.BorderColor = Color.Red. Here 'Red' comes as a dropdown after I type Color.Red. Is a similar thing possible while setting fonts for a button?
I understand you would like intellisense to provide a list of font names when typing. Unfortunately this isn't available directly. You can however, open the designer for the form, select a button and open the font editor:
Then select the font you would like, copy the name, cancel the dialog, and paste the name into your code; or set the font directly through the designer properties with this dialog. Whichever fits your scenario.

Kentico 10 | Toolbar for Rich Text Editor in a Custom Component

I can create a custom toolbar for the EditableText Web Part in Kentico 10, as there is plenty of documentation on how to create/set custom toolbars .. but I can ONLY find documentation for the EditableTextWebPart.
I need to create unique toolbars to be used within several custom Web parts for certain properties / fields. I can't find any documentation on setting them within my own custom Web part, and am hoping someone could point me in the correct direction.
Sounds like you're mixing a few things up. Each webpart has properties. Each property has an associated control. The control you use is based on the datatype of the field.
If you have a long text datatype on your webparts property you should be able to pick the rich text editor as your control. Then create a custom widget for the WYSIWYG editor.
Now if you don't want to work with the WYSIWYG editor then, create your own custom form control.
Check out this article on customizing the WYSIWYG editor. At the end of the article it has a reference to custom widgets for your WYSIWYG editor.
So the answer was under my nose, albeit a bit hidden.
In the /CMS/CMSAdminControls/CKeditor/config.js I added my own custom toolbar, which I had already created, but hand't figured out how to hand it off to the Web part property.
config.toolbar_Caption =
[
['Undo', 'Redo', '-'],
['Cut', 'Copy', 'Paste', 'PasteText', 'Scayt', '-'],
['Bold', '-'],
['InsertLink', 'Unlink', '-'],
['Maximize']
];
The web part has a property, named Caption, with the Data type set to Long text and the Form Comtrol set to Rich Text Editor.
Under Editing control settings, expand Advanced to access Toolbar set and set it to the custom toolbar. In my example, that would be Caption.
Also set the Toolbar location to In so that the toolbar is within the text area vs. floating on top of the entire form.

Recommended approach to display Dropdown in CommandBar

What is recommended approach to display a Dropdown in CommandBar?
There is no build-in support to display a dropdown in CommandBar. I know two ways to work around that.
Label + Dropdown. It's the simplest implementation but I have to take care of for/aria-labelledby attribute, maybe ms-Dropdown-label class. I don't feel it logically correct as we treat label and dropdown separately from component view. That's why I tried the second approach below.
Dropdown + styles. We can get label associated with a dropdown for free. The problem is the layout. Default display for dropdown is 'block' and I have to adjust that as well as padding, default font size etc.
Is there an easy way to achieve it? Or does office-ui-fabric have plan to support dropdown in CommandBar. I feel it a common UI everywhere.
You might look at the Office single line ribbon for inspiration. They use the same overflow sets and resize groups as the command bar, and extensively use dropdowns and comboboxes.
I'd probably suggest label + dropdown so that you have a nice encapsolated control you can render inside of the command bar.

How to edit Expression Blend selected control part?

I am trying to edit a specific control part within a custom TabItem Template. In this case, it's the TemplateBottomSelected control part.
I'm having an issue where I cannot seem to view or edit any control parts within the template editor except the default TemplateTopSelected. Here's a screenshot of what I'm talking about:
Even though I'm selecting the "TemplateBottomSelected" grid, the only thing I can see is the template for the TemplateTopSelected item.
How the heck do I edit the other control parts within the template using the editor?
Thanks!
that's because these templates are either collapsed or the opacity of them is set to 0. :)
you can use the eye toggle button to only show the one you want to modify at design time, set the visibility to visible, do your changes, and reset it to collapsed.
please let me know if you need more info.

VB.Net / Winform - draw a line?

I'm using visual studio 2010 and vb.net.
On my form I have an Group Box that I use to visually segment various controls on the form.
My question is how can I add a horizontal line that looks the same as the border lines of the Group Box?
Jonathan is a heckofalot closer then he might have thought. Add a GroupBox, set the Text property to an empty string, change the Size property to make the Height equal to 2. Presto, horizontal carved battle-ship gray line like seen on many dialogs.
My preference would be to use a group box, as this is more standard.
If you need something custom, use write your own Paint handler to paint whatever you need.
I'm not sure how an option box would visually segment controls, but have a look at the LineShape control in the Visual Basic PowerPacks (from Microsoft).
(Google "Visual Basic PowerPacks", download it from MS, then install it.)