windows-store-apps

Windows Store App - Black Screen Transition for a while

▼魔方 西西 提交于 2019-12-11 14:45:39
问题 i have a problem while navigating between pages of my app. Going from page "a" to page "b", i see a black screen just a second before seeing the page "b". It also happens in the opposite navigation. I know this issue is quite common, also here, but i don't understand how to solve it...and it's very ugly to view... EDIT: just an important information: i've set a custom image as background of both the pages(a,b)...as you can see in the code "Assets/Page.jpg" Here is my basic page "a" XAML:

Using Dispatcher correctly in event to update UI

大憨熊 提交于 2019-12-11 13:59:04
问题 I'm using dispatchers to update a bound collection from an event. I just ran into a nasty issue where I had two different dispatchers in the same event and it wasn't working. Using the debugger it was completely skipping over the code in the first dispatcher. Putting the entire event in a single dispatcher fixed it. I assume it's because of how the compiler handles it, can anyone confirm this - only one dispatcher per event, at least when dealing with the same elements? Here is the code, when

How to handle event raise in await method to manage ProgressBar in Windows store app?

♀尐吖头ヾ 提交于 2019-12-11 13:45:09
问题 I want to show progressbar while method call. I have handle it as suggested in this ticket: ProgressBar button doesn't show while service call in windows store app It doesn't wait for event which raise inside current event. i.e public async void navigationHelper_LoadState(object sender, LoadStateEventArgs e) { loading.Visibility = Windows.UI.Xaml.Visibility.Visible; await initializeThePage(); loading.Visibility = Windows.UI.Xaml.Visibility.Collapsed; } //following method doesn't wait for

Procedure for creating an MvvmCross Store application for Windows 8.1 from scratch?

我们两清 提交于 2019-12-11 13:19:07
问题 Using Visual Studio 2013, I am creating a new Windows Store application for Windows 8.1 based on MvvmCross . I first create my PCL .Core class library with view models according to the instructions in the Core.txt to-do file. Next, I create my .Store application, now following the instructions in the Windows Store UI.txt to-do file. I do want to use the navigation framework, so I am replacing the FirstView.xaml page with a Basic Page FirstView.xaml . According to the instructions, the

AccessToken for Windows Push Notifications returns Bad Request 400

烈酒焚心 提交于 2019-12-11 13:15:05
问题 PLEASE HELP!! Can't figure out why this simple code given by MSDN doesn't work.... I am using the following code in GetAccessToken() as given in the this MSDN article to get the access token to be used in windows notifications, but it returns "Bad Request 400" PACKAGE_SECURITY_IDENTIFIER, CLIENT_SECRET are the values obtained when the app was registered with the Windows Store Dashboard string urlEncodedSid = HttpUtility.UrlEncode(PACKAGE_SECURITY_IDENTIFIER); string urlEncodedSecret =

Drag and drop files into Windows store app

让人想犯罪 __ 提交于 2019-12-11 12:37:02
问题 I am trying to make a simple Windows store app where one of the basic functionalities are that you can just drop files into the app. Or at least that was the idea. I can't find any way to allow dropping files into my app. I have set AllowDrop on my elements but it won't listen when I drop files on the app (using split screen). Is it possible to, say, drop a text file unto an open metro style app in Windows 8 (or 8.1) and how does one handle it in C#? 来源: https://stackoverflow.com/questions

Trouble binding selected item in nested Listview

北城以北 提交于 2019-12-11 11:42:27
问题 I currently use a listview nested inside a listview as a way to show a Knockout style tournament graphically, backed up in ViewModel by SectionTreeOne, which contains a List of Lists of objects "TournamentNode". I cannot however get my selected "Tournament Node" to bind when I click on it. <Grid Grid.Row="2"> <ListView ItemsSource="{Binding SectionTreeOne}"> <ListView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListView

ListView Item Selection Windows Store

寵の児 提交于 2019-12-11 11:36:23
问题 I want a ListView to behave like this: With mouse Input: Left Click -> Item click event handler gets executed, but should not display it as "selected" Right Click -> Item gets selected With touch Input: Single Tap -> equivalent to left click Swipe Down -> equivalent to right click I have played around with various of the events and settings but cant seem to get it to work right. 回答1: In other words, you want your listview to behave like the Windows Start screen? This one was brutal for me to

Text formatting in TextBlock Windows Phone 8.1

て烟熏妆下的殇ゞ 提交于 2019-12-11 11:29:01
问题 I have a list of strings in my ViewModel with the following format: This is an <b>example.<b> I want to have some kind of text control in my view that will display the formatted text via DataBinding *, like this: This is an example. I don't find any built-in control that can behave like this. Does anyone know how to deal with it? 回答1: You can use Run: <TextBlock FontSize="30"> <Run>This is an</Run> <Run FontWeight="Bold" Text=" example"/> </TextBlock> For this you will have to parse your

image slideshow with dispatcher timer in windows store apps

谁说我不能喝 提交于 2019-12-11 11:16:06
问题 I want to make slideshow image with dispatcher timer in my windows store apps. But, i have a problem: if the image has reached the final image, the slideshow do not want to repeat the slideshow from the first image, but the second image directly. For example: I have 5 images and when it reaches the fifth picture, slideshows do not want a repeat of the first image, but the second image directly. Here is my xaml: <Image x:Name="sceneriesBtn" IsDoubleTapEnabled="False" VerticalAlignment="Bottom"