How to use a horizontal WrapPanel in Panorama (sketchflow) - windows-phone-7

I would like to use a horizontal WrapPanel in my application (like the People Hub). However, I have to start with a SketchFlow project.
My question is: how can I do?
In fact, I saw that I had to add the dll to my project but how do next? If I extend my panoramaitem, rendering is not pretty (the second item does not move).
Screenshot http://upload.yamalandia.com/rep1/247871330688.PNG
In this picture you can see how it looks: it's not nice.

Could you post the xaml?
Just to verify, you added a reference to the SL toolkit dll from the SL version (not the Windows Phone version, as you are actually creating a SL app in SketchFlow).
If that control in the screenshot is the wrap panel, you could set it to an explicit size to fix the problem most likely.

Related

Creating complex layouts in Swift/Cocoa for MAC OS X 10.10

I am currently working on a Swift/Cocoa application for MAC OS, and I am new to this stack of technologies. I am faced with the need to find the right controls to create the following window:
I am using xCode (the latest version that is not beta). I'd like to ask your advice on:
What control (s) should be preferred for the left-hand side area (NSTableView? - but how can I bind separate lines to some actions in this case? e.g. transitions between storyboard views) and the right-hand side one? Also, I am not sure how this selection in the left-hand side area could be implemented if I don't use a table.
This application assumes all windows of the fixed size with some navigation between them. Could I use a storyboard for that purpose?
How can I draw this arrow pointing to the bottom from the topmost gray area?
Since all the windows share the left-hand side area, can I create a sort of user control (like in ASP.NET WebForms) that could be reused across the app?
Also, I'd appreciate any examples that you could suggest. The only ones that I have found so far are in Objective-C (while I have to use Swift) and a bit outdated. No similar layout has been found (I have been looking into the Apple Development website).
Please don't hesitate to ask any questions.

Proper way to implement a dropdownbox in WP7 ?

I have seen 2 ways.
Fake a ASP.NET stlye and have the options appear over a textbox on the same screen.
When the box is touched open a new screen that lets you scroll through all options and pick one. When one is selected that value is copied to the placeholder on the orginal screen.
I am working on a project where we are doing #1 and I am thinking #2 is the proper way ?
Use ListPicker from the silverlight toolkit if you're looking to match the WP7 paradigm (which you should want to :) )
Silverlight Toolkit
These other stackoverflow questions may provide some insight (possible duplicate?):
How to get dropdown like menu in wp7?
Windows Phone Dropdown
Don't forget to use the search function at the top right hand before asking a question!

Adding control template to project

I want to use metro styled combobox item in windows phone 7 (mango). I ve found toturial to do this http://dotnet.dzone.com/articles/metro-style-combobox-windows but i don't know where should i put code of control template (it should work on every combobox on project).
Any ideas?
Chris
Is there any particular reason you want to use that ComboBox? The link you've posted is a hack to get it to work on Windows Phone. Have you taken a look at the ListPicker control from the Silverlight toolkit?
This article provides a great introduction on how to use it.

How to add an application bar to a user control in wp7

I have built a wizard style user control that lets you add stackpanel based pages and flick between them.
I would like to add an application bar as part of the user control with next and previous buttons that enable/disable based on page displayed etc.
Application bar appears to be an attached property of PhoneApplicationPage. I have tried referencing Microsoft.Phone.Shell but get invalid type.
Any ideas how I can add it to my user control?
Application bar is such a pain in the a**. This control is not a Silverlight one but a native one. Maybe you can be more lucky with this solution:
http://blog.humann.info/post/2010/08/27/How-to-have-binding-on-the-ApplicationBar.aspx
The ApplicationBar is a service that is provided by the operating system, i.e. not part of the Framework, and can only be used at the page-level, not in your UserControl. In addition, the ApplicationBar does not support regular bindings as you've seen. As mentioned above there are a number of solutions that provide workarounds for this problem.
Alternatively, you could use the ApplicationBarButtonCommand and ApplicationBarButtonNavigation behaviors from the Silverlight Windows Phone Toolkit. It's a simple enough task to create your ApplicationBarMenuCommand if you need one.

Moving graphical components with the mouse in Visual Studio

I have just installed Visual Studio.NET. In the Design area I have added some graphical components (button, textbox) but I can't move these within the specified area, as their position remains unchanged. I would like to move these graphical components with the mouse cursor, I know it's possible, does anyone know how?
It sounds like you have created a WPF project. WPF works a lot differently than WinForms which you are probably used to. So try creating a WinForms project, or get yourself acquainted with WPF.
I came here looking for the answer to the same question. OP is probably no longer interested and it was quite easy to Google it up, but in case somebody comes here as I did, here is the solution:
In WPF, place a Grid component on your form (or in your container, like Tab), and reset it (set both Height and Width to auto). Then you can place other controls and position them with your mouse normally.

Resources