How to draw a grid in SketchFlow? - expression-blend

Since there is no grid asset in SketchFlow, what is the best way to represent one? Does everyone just use the rectangle asset?

At the time the question was posed, there were workarounds and kludges. But now--with the advent of the just-released (June 7, 2010) SketchFlow/Blend version 4 there is a great solution: Sketchables from Philipp Sumi. This add-on to SketchFlow 4 lets you use concise markup to customize and tailor a control to display sophisticated output--including the SketchableDataGrid.
Sketchables is a completely new package, due to be released the week of June 21, 2010, according to his blog. He has a startling demo video on his site, though. For a snapshot of the SketchableDataGrid take a look at Figure 12 in my just-published article Creating WPF Prototypes with SketchFlow, June 18, 2010.
(I have no connection with Philipp Sumi other than admiration for his Sketchables product.:-)

There should be a DataGrid Asset (defined in System.Windows.Control.Data.dll -Might need to add a reference?) which I think is what you're looking for.
The first thing you need to do is create a datasource.
You can create a data source by choosing the data tab in the top right corner and clicking on the "define new sample data" icon. Under the collection you should be able to add/edit the field properties for the data source. The data source will have auto-generated data for you (a very cool feature!). This can be replaced by selecting the "Edit Sample Values" icon beside the collection if desired.
Next you can drag a data grid onto your screen and set the data source by choosing the ItemsSource property on the grid (the data binding option should be chosen). On the data field tab you can choose your data source. Make sure to select the actual "Collection(array)" option on the right hand side. By default it should auto generate the columns for you. This can be changed if you want more control the column header names, etc.
Hope this helps.

I did it using a ListBox-Sketch.
Check it out here.

There isn't a 'sketch' style grid, so you have 2 options:
Use a list box and edit the template to be a grid / horizontal stack panel with borders etc.
Use the standard grid, you can still make the text 'Buxton Sketch' font so it still looks pretty good, but it does have some chrome effects breaking the 'pure sketch' look
Use what suits you best.

First of all, if you are using Silverlight based sketch, you have a datagrid available otherwise if you are working with WPF you could use WPF Toolkit which includes one.
To make a Silverlight datagrid "sketchy" please take a look at the sample at:
http://cid-99b45ff02d12b84d.skydrive.live.com/self.aspx/Public/Scratch/SilverlightPrototype8.zip
I think this sample also applies to a WPF based sketch with a datagrid from WPF toolkits with only minor adjustments...
Good luck

I am not 100% clear on what you are trying to do. You could use the SketchBorderUC or a Rectangle-Sketch.
What visual representation are you trying to achieve that you would use a grid for?

Related

Delphi component as shown in RAD Studio

The "File >New >Other..." command of the IDE environment, shows the following image:
In the image, two areas (A) and (B) are observed. I am interested in using area control (B).
I assumed it was a TListView control, but I haven't been able to achieve similar view options as above. Other people have suggested that each of the displayed items (icon, title, and descriptive text) can be inserted inside a common container (TPanel, TFrame) and "stacked" inside a TScrollBox, a possible solution, but I think the Delphi folks may have used something more optimized.
Does anyone know which component has been used to generate that view? Or, does anyone know how to generate such a view?
It is a component called TControlList: https://docwiki.embarcadero.com/Libraries/Alexandria/en/Vcl.ControlList.TControlList

Dynamics 365 CE Unified Interface - 2 column layout in section showing one column only

I have a section with a 2 column layout on the Case form. This UI setting is showing 2 attributes per row in old Dynmiacs 365 UI -- Working expected.
When I open the same form in the new Unified Client Interface, attributes are showing as 1 column per row. -- Issue
This is using a lot of space in the form. If I zoom in browser to say, 75%, then new UI is also showing 2 attributes per row, but this shouldn't be the ideal behavior.
Does anyone else face this issue, and is there a supported workaround to fix it?
Form Customization Settings:
I know this is bit annoying, but this is by design. UCI is built for cross-platform, cross-device, cross-browser compatible responsive layout, similar to bootstrap - which will reflow, self-adjust based on screen size, resolution and available real-estate. Read this discussion in community.
You may need to change the layout to two sections instead of two columns in single section, that will suffice your need.
I remember, I was having two forms, ie one for UCI and another for web classic for tackling these cosmetic situations.
SO thread for label related: Label positioning in D365 UCI is inconsistent

VtChart changes not saving in MS VB6

I'm working on some legacy code. I have a user control with a VtChart (VCI First Impression Library) in it and I'm trying to make changes to it, namely, adding another series to the control. However, every time I make changes to the control, close the form editor, then reopen it, the changes are gone.
I can't find any documentation on this control, so thought I'd ask the community, any ideas?
Ah! Found my answer. Since VtChart is connected to a grid (F1Book), the SsLinkRange needs to correspond to the number of columns needed in the chart. For example, if you want 3 columns, SsLinkRange should be A1:C10, where A and C is the column range. If the SsLink properties don't match it won't save the settings.
This is an very obscure problem, but I'll post this answer anyways for archiving.

How to speed up dynamically adding user controls in wp7

I have a page in my WP7 app that I build dynamically. I create and add 60 user controls to a grid and it takes around 5 seconds. I need to find a way of speeding this up.
The process is as follows:
Create user control
Add new grid row definition
Set the value of the control row property
Add the control to the grid.Children collection.
It is step 4 that is taking the time. I'm guessing that each time I do this the visual tree is getting re-built.
Is there any way of telling the grid to only re-build the visual tree after I have finished updating the children collection?
Or is there another better way of doing this?
UPDATE: The List Picker control from the WP7 Toolkit was causing the problem. When I changed to one I wrote myself the time taken to display the page on a phone reduced from 25 seconds to 1 second.
The/your aim is to try and reduce the number of times you update the visualtree.
A few suggestions:
Try including (some of) the items in the page by default but just change their visibility depending on what you need.
Build the whole grid in code and add it to the page in one go (rather than a line at a time)
Depending on your content, you could try using a ListBox and alternating the template used for each row to get different content displayed.
The technique which will be best for you will depend on what you're actually adding to the UI. You'll need to test to see what is best for you.
If the UI virtualization (i.e. ListBox) helped, the problem must be in your controls. Templating, bindings, converters, using Xaml instead of C# code, unnecessary Xaml constructs (such as element names), overcomplicated visual tree (e.g. unneeded grids) etc. - those are the things that can degrade the performance.
If you suspect incremental visual tree rebuilds (I don't think so), then simply debug MeasureOverride/ArrangeOverride methods.
I guess this article might give you more tips. I described there how we optimized a similarly complex control - MonthCalendar with 126 sub-controls. Control load time decreased approx. 5x!

SketchFlow Export to Word File and the Order of Objects

i have made a prototype in SketchFlow which is found in Expression Blend 3. As my designer can not use the published .exe version (Due to being on a Mac) I have to export the application to Word. This works great apart from the order being somewhat odd.
What determines the order in which objects get exported into the Word document and more importantly how can i change this order to what i want it to be?
Thanks,
Kohan.
Yes, the order of pages in the word document is indeed: Map, Navigation screens in alphaetical order, component screens in alphabetical order. Currently, the only way to force a particular order is to prefix the screen names appropriately.
Adam is also right that a good way to give anybody access to a prototype is to make the prototype in Silverlight rather than WPF. This lets you post the prototype on the web, and lets users on a Mac review them too.
It appears that the Word export is set to output the Sketchflow Map first, the initially generated screen second and the custom-made screens alphabetically. I'll ask around and see if there is a way to modify that.
As an alternative, you could create the Sketchflow prototype as a Silverlight app and then your designer could view the ouput as a .xap hosted on an html page.

Resources