SketchFlow prototyping font not displaying - silverlight-3.0

I'm using SketchFlow for the first time, and am confused as to why my text isn't showing up in the "Buxton Sketch" font it's supposed to (see image). I just did a repair installation, and it didn't make a difference. In the Text properties, I don't see "Buxton Sketch" as an option, either. I'd appreciate any help.
UPDATE
Everything looks fine in the SketchFlow player (when I hit F5), but not in the designer.
Compared to this:
Proper "wiggly" font http://www.lorenheiny.com/wp-content/uploads/sketchflowwigglystyles.png

I tried downloading the SketchFlow files from a tutorial I had used, and it worked fine. It turned out the difference was that my files resided within a subfolder of a directory I had named "C#" - where I've kept all of my Visual Studio source files for a long time, with no problems (until now). Moving the SketchFlow project to a different directory fixed it.
What makes it even stranger is that the C# directory is 2 levels higher up than the solution's directory, so I don't know why anything within the solution would even matter.

Are you able to create anything with that font? Can you create a textblock and set the text to the Buxton Sketch font?

We encountered this same issue - but found a slightly different solution.
In our case, SketchFlow projects were being in the default location (My Documents\Expression\Blend 3\Projects), and the screens weren't coming up with Buxton Sketch.
The difference we found is that, in our environment, "My Documents" is mapped to a network storage location (H:\Data). What we observed was:
Open the project via My Documents\Expression\Blend 3\Projects. No Buxton Sketch. :-(
Open the project via H:\Data\Expression Blend 3\Projects. Buxton Sketch OK. :-)

Click "Embed" in the Text properties on most "Sketchy" controls to get Buxton Sketch to appear at design time in Blend for MS Visual Studio 2013 (v 12.0.50429.0 update 2)
If you paste items from other sketchflow screens, ensure you paste after you have already added a "Sketchy" control to your screen and don't "Overwrite existing resource with copied resource" when a "Resource Key Conflict" occurs, "Discard the copied resource and use the existing resource" if the resources from your copied items already exist or leave as default and add them.

First, make sure you've started by creating a new Sketchflow Application from Blend 3. Then from within Blend 3 in your Sketchflow project on the toolbar, click the chevron at the bottom of the list (the >>). From there expand Styles and select SketchStyles. From there you should see all the sketchy controls like BasicTextBox-Sketch and ListBox-Sketch. Those all have the sketchy look that you want.
It shows up at design time for me.
(source: bryantlikes.com)

Related

VS Code - Drag image from Explorer pane into markdown file and drop as path

In Visual Studio Code, from the Explorer pane, how can I drag a PNG file from my images folder and drop it in place in a markdown file, so that VS Code inserts the path to the dropped image?
Currently, VS Code just opens the image in a new tab.
I've reviewed the suggested answers, as well as the available markdown extensions, with no luck finding an answer.
Any assistance is appreciated!
I've looked it up everywhere too, bharath is entirely correct, for now you could just use right click -> copy path and paste it, It's quite tedious compared to a drag and drop solution, but Hopefully there would be an asset for that, If someone made this:
https://marketplace.visualstudio.com/items?itemName=mushan.vscode-paste-image
definitely something similar for just dragging and dropping would be possible
It seems like this is not possible yet in vscode as compared to visual studio. There seems to be a pending feature request on their GitHub issues page (link below) which was opened long back and not yet closed.
https://github.com/Microsoft/vscode/issues/5240
It should be in vscode v1.67 - it is in the Insiders Build now.
And see the v1.67 Release Notes: https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_67.md#markdown-drop-into-editor-to-create-link:
You can now quickly create markdown links by dragging and dropping
files from VS Code's explorer into a markdown editor. Simply hold
Shift while dragging the file over a markdown editor to drop it into
the editor and create a link to it:
If the file looks like an image, we will automatically insert an
markdown image. Otherwise we add a normal markdown link.
This also works when dragging some types of files from other
applications, such as dragging and dropping images from a web browser:
enable Workbench > Editor > Drop Into Editor: Enabled
That allows you to Shift drag an image file into an editor without opening a new editor of that image.
enable Markdown > Editor > Drop: Enabled
Also see v1.68 Release Notes, pasting an image or file to create a link:
Paste files to insert Markdown links
We've added experimental support pasting to insert images or file
links in markdown.
This requires enabling "editor.experimental.pasteActions.enabled": true. You can currently copy files from the VS Code explorer. Pasting
image files inserts image references while pasting normal text files
inserts links to those files.
subject: If you want an image in any folder of your vscode.
simply follow the steps.
1.Go to vscode then right click on a folder in which you want your image and then choose reveal in file explorer. After that you can simply copy your image into the vs code folder.

How to print a file from VsCode?

I want to send the file I'm currently editing to a printer, like I did in Notepad++ for example.
I havn't found any hint on a print command. Is it not possible ?
It is not yet available, but I found an issue report for that feature.
It's currently in the backlog, so we can expect it soon.
https://github.com/Microsoft/vscode/issues/5953
Edit:
In the meantime:
https://marketplace.visualstudio.com/items?itemName=nobuhito.printcode
https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print
Now you can install addon for VS Code - search "PrintCode".
Note that the repository for this extension was last updated in February 2018 with numerous issues outstanding.
I found the PrintCode extension inspiring but unfinished and with a number of flaws. In particular it depends on a specific paper size to wrap and as a result does not respond well if you change paper size or orientation in the print dialog.
It's open source so I looked at the code and didn't like that either. No programmer ever likes another's coding style. So I pinched the idea of using a web-browser as platform driver for HTML printing -- my hat is off to the PrintCode author for that cunning insight -- and wrote my own.
In the process I fixed all the known bugs, added everything on my wishlist and a couple of things suggested by others. The biggest thing was figuring out the CSS required to respect print dialog paper size and orientation. This also sorts out the mysterious disappearing line numbers problem, although I'm not sure why. The next biggest thing was learning to probe for an unused port, a problem that also afflicts PrintCode causing the browser to open showing no content.
Major issues
PrintCode depends on a web service. You can't use it offline.
Many people want to be able to open a file, select a portion and print just the selection.
The print dialog supports changing paper size and orientation. This clashes with the way PrintCode works.
Some people like to run multiple VS Code windows.
When you print a markdown file, you probably don't want it printed like a text file when it can be rendered with fonts and proper headings and bullets etc.
Support is required for remote workspaces.
Because each instance of VS Code needs a different port for its embedded webserver, you can't just use a setting. Dynamic port allocation is necessary.
Remote workspaces weren't even a thing until two years after maintenance ceased on PrintCode.
If you want to survey your options, get onto https://marketplace.visualstudio.com, choose the Visual Studio Code tab and search for printing.
If you just want a link to my version, it's here http://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print.
If you like what you see but need something I haven't thought of, the marketplace page has a link to the repo on github. Create an issue and tell me what you need -- or write it yourself and submit a PR.
Now there is an extension available for printing from the VS Code Editor.
It's called VS Code Printing Free.
I've tried it for a couple of days and it works fine.
Poor man's answer: Copy code to Notepad2 or Notepad++ and print from there.
The colour coding will be different though
You can use an Extension of VS Code: PrintCode
Install extension PrintCode
On Mac: command + shift + P
choose command> PrintCode
I have modified the https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print. If you change the values that I have marked in the picture in the extension settings a browser tab opens with the you can then print this also works on the Ipad. It works also with the code-server Version inside a Docker Container.
I put the file on github https://github.com/chrishdx/vsc-print
enter image description here

Is there anyway to change the color of the toolbar in notepad++?

I have tried changing the background color of toolbar in notepad++. I am not been successful so far. Frankly speaking I am not so liking the toolbar color and would like to have a dark background to the toolbar. Is there anyway I can do the same? Thanks in advance
Take a look at this question on Superuser. I haven't tested it, but I think it can help.
below there's the hack (as explained in the link):
The themes, as you guessed, can't do this (they only handle what's in
the text editing window). To change the colors you'll have to make
some very simple changes (since it's only changing color values) to
the source code (download from the site or GitHub).
Extract the file Find the elements whose color you'd like to change,
and change them. All colors I've seen are denoted RGB(xx,xx,xx)
Rebuild (see /readmeFirst.txt once you've extracted) I've just glanced
at these files, but I'm definitely going to work at this a little
tomorrow and I don't mind giving you my results once I've solved it.
Anyway, what I've seen at a glance is that you'll want to look in
/PowerEditor/src/ScitillaComponent/DocTabView (I think)
/PowerEditor/src/WinControls/TabBar
/PowerEditor/src/WinControls/ToolBar That's all I noticed that might
be of interest so far, but again, I'll look at it more tomorrow and
get back to you.
Edit: the official makefile will give some errors, because
/PowerEditor/src/Parameters.h references files incorrectly. Here are
the two I fixed so far:
#include "TinyXml/tinyXmlA/tinyxmlA.h" (line 33)
#include "TinyXml/tinyxml.h" (line 37)
Change those lines in Parameters.h to what I've written to deal with
them. Don't worry about the warnings ("extra tokens after #endif") -
they're just comments.
Edit 2: I'm using VS2012, in which the build process results in
numerous errors. I won't post them here unless someone eventually asks
about them, in which case I'm happy to do so. I should have a working
build up soon!
Edit 3: It seems Notepad++'s provided VS project file was created with
an earlier version of Visual Studio, and in updating the files, Visual
Studio 2012 creates many problems, so if you go that route, use
VS2010.
Edit 4: I didn't make it obvious in Edit 3, but I gave up after
realizing just how difficult it was going to be to get around the VS
errors. I imagine the code has changed significantly since I wrote
this answer as well; unfortunately I didn't note the version, but I'm
sure it was the latest available at time of writing this answer,
which, according to "All versions", was probably either 6.4.1 or
6.4.2. However, I hope this is a useful starting point for anyone else who reads (this answer has received consistent attention since
writing).
As far as I see into details of creation of the user interface elements (buttons, toolbars etc.), the answer is that toolbar color cannot be changed until developer explicitly built such a feature into the application. And N++ has no such a feature if you check its settings.
You can achieve changing of toolbar color by standard way: override toolbar painting routine after you grabbed N++ sources. Then compile custom Notepad++.exe which reflects your change.
If you feel toolbar coloring would be useful not only for you, but for number of users, consider registering a feature request for Notepad++ as many people (including me :)) already did for various features of N++.
Go to Settings> Preferences
Then select Enable dark mode.
Then you have the option to pick colors for the dark mode and can even set custom colors

Changing Asp.net MVC app name

What is the fastest/easiest way to do this? I don't want to recreate an application and I'm constantly needing to do this (Having hard time settling on a good name for my projects). What I've been doing it changing the name in the solution explorer and than closing the app. Than from there changing the name of the folders that the app is in, however when I go to reopen the solution has issues opening the MVC Project (still points to the previous name of the app & folder name). What am I not changing to prevent this and what could I be doing better?
Addition to above answers. Do not forget to rename the Assembly name.
Right Click at the project go to properties. In application tab, change the Assembly name and Default namespace. This is useful when you scaffold something in a project.
When I added new .edmx file, it would get old project name even though, I changed all the file names following above answers. Later found out, I had not changed the assembly name.
If you keep your name consistent throughout everything, the easiest would probably be a global textfile search-and-replace outside of Visual Studio, using a regular text editor. This will get your solution and project files, the things that regular refactoring will miss.
Something like Notepad++, or something similar would work well. You can do just your solution and project files, and other non-codefiles, from there - then a global search-and-replace of your code files from inside Visual Studio.
You'd have to manually rename the solution and project files and directories.
I find doing it with a text editor is safer than trying to do it all in Visual Studio, because you won't miss any of the funky little things like AssemblyInfo values, default namespaces, webservice references, things like that.
For starters, I would just keep the name of the app the same until you are ready for deployment.
To address your problem, you can right click the Solution in the Solution Explorer window and rename it to whatever you want it to be. Then whatever sub-folders you need to rename can be done similarly. You will also need to go to any file within the solution and next to the namespace, you will want to highlight the old project/folder name and refactor. This will allow you to change all references through out the entire project.
You will still need to reopen the solution next time as the location that the project is pointed to has changed and thus Visual Studio doesn't know where to look.

(Free) Text editor on Windows with a folder view?

I have to stay away from my MacBook and will use Windows for a while. I missed Textmate's folder view when editing my rails projects. Is there an editor on Windows with the folder view? I know there is the E text editor. But I'll save a few bucks if there is a free (cheaper) alternative, as I won't stay in Windows for long ...
Go with gVim, and when editing a file you can type :edit. to pull up the working directory, and navigate from there. Also you get geek cred for rolling VI!
Have a look at Komodo Edit. Some people are already using it for Rails development.
Netbeans is full scale open-source ruby/rails-editor with a folder-view.
Programmer's Notepad is a very lightweigt open source text-editor, it has a "project"-view (but you have to define the project yourself).
The Zeus Lite programmer's editor has a folders view (i.e. View, Navigator menu) feature and it is also free.
Best one I just found.. "programmers notepad".. It's got different coloring for different languages. (though i always turn that off) and it allows you to map keys..
It also has a hand tree view where you can have "magic folders" that show all the files in a given folder. It is very sleek..
One irk.. to make it so you can have two projects open at the same time, you need to go to options and set the exe to allow multiple instances... I'd have rather seen that as default, but it's easy to fix.
Oh and it's free.
Not that you asked, but bluefish seems to be quite good on linux. Has a similar feel. It's a fast little editor.
emacs has speedbar, diredit mode, other option.
This is speedbar:

Resources