windows-phone-7

import c++ dll to windows phone project

有些话、适合烂在心里 提交于 2019-12-30 10:37:29
问题 I'm new on windows phone developement and i have one problem that i don't know how to resolve.... the problem is.... i have a c++ project that i had complided with visual c++ 2010 and this create one dll with code compiled... so i know that C# import dll libraries but when i add refrences it's make this error "Unable to retrieve assembly fullname ""Parameter name: AssemblyPath" and i dont kown what it means... I searched on google and i found one method to import c++ dll manualy with

How to pass a parameter to a local html page in WP7 / WP8?

半腔热情 提交于 2019-12-30 10:37:21
问题 Does anyone know how to pass a url parameter to a local page in the Web Browser Control? When you navigate to the page alone "/Html/MyPage.html" all is well but as soon as you add a parameter "/Html/MyPage.html?Message=Hello" I get an error page stating that we could not navigate to the page. Any ideas? 回答1: As another workaround you can pass your arguments as location hash parameter (if it is not used) browser.Navigate(new Uri("www/index.html#p=123&p2=567", UriKind.Relative)); and then in

Exit application on “Back” button on WP7

被刻印的时光 ゝ 提交于 2019-12-30 09:06:34
问题 I know that in WP7 it is not possible to exit application programatically. So haw can I handle the following need? My MainPage is empty, and has has the only purpose to make a test: if user never filled a preference page, redirects to Page_B.xaml (a page which collects his preferences, such as language aond other info which are needed in order to run the app). Otherwise redirect to Page_A.xaml. So the first page that user is shown is either Page_A or Page_B (depending if this is the first

Buliding Windows Phone 7 projects on Windows Server 2008

此生再无相见时 提交于 2019-12-30 08:33:17
问题 My company is planning on developing for Windows Phone 7. The build server we have, however runs Windows Server 2008. According to the Windows Phone SDK release notes I've read that only Windows Server is not supported for the SDK. Does anyone have any experience on whether there's a possible workaround to have a Windows Server 2008 machine build Windows Phone 7 projects? Update: I'm interested in building on a WS 2008 as we're talking about a project with a larger team where continous

App.xaml in class library

二次信任 提交于 2019-12-30 07:10:26
问题 I have created a windows phone 7 custom class library, in that I have created App.xaml and App.xaml.cs files also(I have renamed them as MiEngineApp.xaml, MiEngineApp.xaml.cs and my class library's name is MiEngine). I have referenced the class library in my application. Now in my application, I want to wrte App.xaml.cs class derived from my class library's App.xaml.cs class(that is MiEngineApp.xaml.cs). When I created the project, App.xaml.cs was created by default. It is by default

wp7 horizontal swipe selection

只谈情不闲聊 提交于 2019-12-30 06:53:30
问题 I'm looking for a control that allows me to swipe through a list of items. Swiping horizontally would move between the next and previous items. The control would also ensure the selected item is moved to the center when not being manipulated. This control will only take up half of the page and I'd like the options to the left and right to be visible and wrap around. Like so <--> *][**][* So my question is, does a control like this already exists and if so what is it called? 回答1: This is super

Can I find out which page a user came from on Back Button press on WP7?

亡梦爱人 提交于 2019-12-30 06:52:27
问题 I haven't had much luck finding the answer through google searches, but is it possible to tell which page a user came from? Or, send a query string on back button press, so I can tell? Basically, I have a page that I don't want a user to get to by pressing the back button -- the only way they should get there is if they followed the process from the start. A good example of what I'm trying to do is not allow a user to go back to the confirmation setup while registering for an account after

Find position of Button/UIElement on screen relative to grid Windows Phone

孤者浪人 提交于 2019-12-30 06:08:41
问题 I can't find a way to get the position in (x,y) co-ordinates of an on-screen control like a button relative to the grid that it is inside. Is there a way to do this that I am overlooking? 回答1: var transform = button.TransformToVisual(grid); Point absolutePosition = transform.Transform(new Point(0, 0)); From How to get the position of an element in a StackPanel?. 来源: https://stackoverflow.com/questions/8206294/find-position-of-button-uielement-on-screen-relative-to-grid-windows-phone

How to draw an arc in winRT with animation?

人盡茶涼 提交于 2019-12-30 05:01:28
问题 I am a newbie to WinRT and Blend and I need to draw digits 1, 2 etc with drawing effect in my WinRT application. The requirement is like the application will be drawing the digit. Any help will be really appreciated. Thanks in advance. 回答1: I think you would need to piece together a couple of storyboards to achieve that, and I would really recommend that you use Blend for that! Open a blank project, under objects and timeline there is a plus, click on it and add a new story board. Move the

Handling event of user control in its holding page's code behind

扶醉桌前 提交于 2019-12-30 03:32:06
问题 I am looking for a solution for following situation. In my application i had a page say page1 and i placed a user control inside the page1. My requirement is i need to get the click event of button used in user control on page1's code behind. How i can achieve the same in windows phone / silverlight. 回答1: 1. The first and the right way: (If you are aware of MVVM pattern) would be for you control, say MyControl , to expose DependencyProperty of type ICommand , named e.g.