Can someone point me to an article or tutorial on using custom controls in Visual Studio Lightswitch? I'm trying to add a rich text box to a page, linked to a string property. When running the app, sometimes the field will show up, sometimes it won't. If it does show the width of the field is small, about 2 characters, but will expand when text is pasted inside. Saving doesn't work, though.
I'm not even sure about whether or not I'm allowed to use controls like these in a Lightswitch app, even though custom controls are obviously supported. Are the custom controls restricted to a certain type or set?
Thanks in advance for any assistance.
W.
Have a look at the following example, http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/10/LightSwitch-Student-Information-System-Part-3-Custom-Controls.aspx
Also the Training Kit has examples of Custome Controls included.
There is also this tutorial:
Creating A LightSwitch Custom Silverlight Control
http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/2/Creating-A-LightSwitch-Custom-Silverlight-Control.aspx
Related
There must be a way to do this, because switching between different themes changes the colour of the borders in the results grid. But I want to customise it for one of themes I'm currently using. (Which I know is possible based on this question.)
The only reference I can find in Microsoft's documentation is this page for Visual Studio Code:
https://code.visualstudio.com/api/references/theme-color
...but seeing as the results grid is an Azure Data Studio feature, there's nothing in there talking about it.
Anyone have any thoughts??
I am trying to show a simple dialog before uninstall in NSIS. It consists of several predefined radio buttons (reasons for uninstalling), none of them checked initially. Uninstallation cannot continue until a user selects one of the radio buttons.
As a bonus, ideally I would like to have a custom reason text field too (toggle-able via last radio button). As well as 2 more text fields for custom text and email.
Then I need to take selected value(s) (checked radio button) as well as text fields data and either append it to my predefined URL to which I make a GET request using InetC or similar plugin before uninstaller exits; or laternatively construct a POST request to a predefined URL using InetC or similar plugin. I cannot figure out how to create such a dialog page. Any help would be appreciated.
What I am looking for:
First, you should get familiar with nsDialogs to create the interface according to your needs. Since nsDialogs is a function, you would then can call it as a custom page.
You can use my tool Visual & Installer (www.visual-installer.com) for Visual Studio 2005 - 2015 to fast write the NSIS code.
(If you are "writing" the installer - I assume you have some experiences with nsDialogs).
Also there are some other tools like NSIS Dialog Designer (http://forums.winamp.com/showthread.php?t=329801) which can help you and generate lot of code for you.
This tool is GUI based - designer similar to Visual Studio designer - but remember: the result is still the scripts!
I have been searching hi and lo, within and outside internet but it seems I cannot find a definitive answer:
Can I change the default layout-items in SSRS reports? If so, how?
So that a textbox does not have Arial 10 as default fontsize but has fontsize 8?
So that tablixes have default properties like 'show column-headers on each page' enabled?
and so on?
I am familiar with custom templates (.rdl) but they do not offer the possibility of changing layout-items like default font and colors and properties of report parts and such.
In VS 2005 there was the StyleTemplate to play with but that is only effective when using the wizard.
It seems it is the same way with VS 2010.
I prefer to hear that it can be done and instructions how to, I would be satisfied with tips how to circumvent the problem of manually changing those properties eacht time and I will be grateful for a definitive answer. Right now it is driving me crazy :)
I am working with VS2010 (latest updates and such) icm SQL 2008, 2008R2 and (local) 2012BI
Thanks for thinking with me!
Unfortunately by design, you are not allowed to set default font etc. There is active defect in Microsoft https://connect.microsoft.com/SQLServer/feedback/details/574003/modify-the-default-font-family-for-sql-server-business-intelligence-development-studio-while-creating-a-report#
I know it's a very old post, but for others in search of an answer, I thought I'd add the following. If I want all my textboxes in a font other than Arial 10pt, I will make the first textbox and set my font styling, then use that as a master textbox, copying it and changing the interior text rather than creating new textboxes each time. It's a hack, but since VS still can't do this in 2015, it's the best we have.
You can always open code(XML)-view and edit font properties there. Eg. search for
<FontFamily> -tag and add <FontSize>10pt</FontSize> as a sibling for <Style>-tag.
Before editing the XML, close report design-view. Otherwise properties of objects are not functioning properly.
At the start of the XML for the RDL file (what you see if you select View Code on the file) there's a tag <df:DefaultFontFamily> which defines the default font. If you change this to the family you want and re-save the XML file, any future textboxes you create will pick up this default font family.
The FontSize property must be in npt format. If this property takes the value from an SQL query that returns an integer, add the expression by adding "pt": (for example, = Fields! DimFont.Value & "pt").
So today I can create a website using VS and drag and drop some ugly outdated buttons and form elements (e.g. that standard grey button, and square non styled text boxes and drop downs). I know you could replace a button with a graphic, but im no graphic designer. I want to be able to download and install some free plugin/extension that will give me a bunch of different "cool" looking options for buttons (and all the other standard form controls). So in short, I dont need new controls per say (though they are welcome and encouraged as well) but rather, I simply want a bunch of different "cool looking" visual options for the existing .net form controls, so I can make a website that doesn't look like its 90's.
I use vs 05 and 08.
for free controls have a look at codeplex:
http://dj.codeplex.com
http://yuidotnet.codeplex.com
for commercial level controls, Telerik, DevExpress, Infragistics...
I'm trying to get to grips with customising a Ribbon Bar for a converted A2003 app. I'm trying to work out how to use my own custom images on button controls in the ribbon. Can anyone point me to an example for Access 2007 that can do this pls?
Please check this MSDN article (Adding Custom Dynamic Menus to the Office Fluent User Interface) and see if it helps you. Furthermore I would point you to the specifying image resource MSDN article, because you need different sized images for different sized buttons - read the bottom of my post to make it easier on you.
I believe there was also custom images within the official MS example on ribbon extensibility with Access 2007 - I hope this example is sufficient, it helped me a great lot.
My personal favorite is just using a graphical UI editor, such as the "Custom UI Editor Tool". With it you just click a button to insert an image and it works (as explained in this tutorial). Even better as the Custom UI Editor is the IDBE Ribbon Creatror - my personal tool of choice. A shareware version is available from the website.
I have a working example class object you can use that makes this a good deal less code.
http://www.members.shaw.ca/albertKallal/Ribbon/ribbon.htm
The above lets you use a very much like previous style code approach. So, to set a picture for a ribbon, you can go:
meRib("Button1").Picture = "HappyFace.png"
The same download has a working form in which some images in the ribbon change from choices made on the form.