microsoft-metro

App-wide Observable Collection

二次信任 提交于 2019-12-11 10:12:09
问题 If I put an Observable Collection inside a separate .cs (class) file and use it in my MainPage.xaml , how can I make it so that all the data stored inside that same Observable Collection is accessible from within a different XAML page at a later time? E.g. MyClass.cs: public ObservableCollection<String> oC = new ObservableCollection<String>(); MainPage.xaml.cs: // add to observable collection SecondPage.xaml.cs: // access and use data stored in ObservableCollection 回答1: I think you just want

xaml Invalid Markup but still compiles/runs

非 Y 不嫁゛ 提交于 2019-12-11 09:19:15
问题 I am trying to add a custom converter (Boolean to Visibility). The code for the converter is just fine. It seems to map ok. However, when I try and add it as a resource for a User Control I get an Invalid Markup which says "BooleanToVisibilityConverter was not found. Verify you are not missing an assembly and that all referenced assemblies have been built". Even with this Invalid Markup showing the project compiles and runs with no errors or crashes. I am using Visual Studio 2013 on Windows 8

Range slider metro style app

北城余情 提交于 2019-12-11 08:53:39
问题 I'm trying to make a range slider for metro style app, because it's not available. I'm trying to leverage an existing silverlight range slider, but it's not going to well. I changed the code a bit, but now it just shows the slider and I can't move the thumbs. Here is the xaml code: <UserControl x:Class="Mecoms_Mobile_App.RangeSlider" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Grid x:Name="LayoutRoot" Background=

The request was aborted: Could not create SSL/TLS secure channel in Windows 8 Metro App

匆匆过客 提交于 2019-12-11 08:51:13
问题 I have a list of 350 downloadable image urls. I download 10 images parallely at one shot by running multiple tasks. But after downloading N number of images suddenly my code throws the following exception. Exception: "An error occurred while sending the request." InnerException: "The request was aborted: Could not create SSL/TLS secure channel." StackTrace: "at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter

Getting images in the Azure Blob Storage

隐身守侯 提交于 2019-12-11 08:22:09
问题 there are so many tutorials regarding uploading image files to the azure blob, i have successfully uploaded image file to a blob container and now my problem is how to get it, here is my code: var bitmapImage = new BitmapImage(); bitmapImage.UriSource = new Uri("http://sweetapp.blob.core.windows.net/userprofiles/"+imagename,UriKind.RelativeOrAbsolute); imgProf.Source = bitmapImage; am I doing it wrong? or is something that i need to do before displaying it? any answers will be appreciated!

Can I use System.Speech from a Metro Style app?

十年热恋 提交于 2019-12-11 08:19:39
问题 It doesn't seem that I can get to any of the usual namespaces using a Metro Style app template. Am I missing something obvious? 回答1: Metro style applications built on WinRT. While this is currently beta, Microsoft might add some namespaces based on feedback you provide, but you should not expect all namespaces to be available. Edit: According to .NET for Metro style apps System.Speech isn't currently included nor does it say anything if it will be included. 回答2: Since, at the moment, you don

Quality of the search result images in Metro Search Charm

為{幸葍}努か 提交于 2019-12-11 08:17:30
问题 This should be a trivial one, it's maybe only my bad day ;) I use 40x40px images for showing the type of the search results. If I use exactly the same images in my main app they are shown correctly. If I use them in the search charm their quality is drastically decreased. What am I doing wrong? I tried another sizes, another picture formats, still the same. I tried another image (photo below) and that one looks OK. Why is only my circle based icon so deformed? 回答1: It sounds like this could

VisualBrush no longer works for Windows 8 Metro Apps?

夙愿已清 提交于 2019-12-11 08:02:37
问题 I'm now developing an app with reflect effect. I tried to assign a VisualBrush to Rectangle.Fill as: <Rectangle.Fill> <VisualBrush Opacity="0.75" Stretch="None" Visual="{Binding ElementName=ReflectedVisual}"> </VisualBrush> </Rectangle.Fill> And VS reports VisualBrush doesn't exist in my xml namespace. I manually added it to the XAML file using: xmlns:fx="http://schemas.microsoft.com/netfx/2007/xaml/presentation" And added the reference DLL as well. However, now VS says that I cannot assign a

How to load/import dll with MEF out of metro app?

三世轮回 提交于 2019-12-11 07:28:35
问题 I've trying to write a extendable metro app using MEF. I got it working with a local extension (inside of the current assembly). Now I want to load a external dll. The DirectoryCatalog seems to be not present in .net 4.5. So I tried to use ApplicationCatalog but I got the following error while calling SatisfyImportsOnce : Assembly.LoadFrom is not supported in AppX. . Here's me code: var catalog = new AssemblyCatalog(GetType().GetTypeInfo().Assembly); ApplicationCatalog catApp = new

For Win 8 Metro App, how to start background task immediately without Trigger?

限于喜欢 提交于 2019-12-11 07:25:00
问题 The MSDN sample showed how to use the built-in System Triggers to start background tasks. How do you start a task without Trigger? Or how do you implement a custom Trigger? Some code would be nice. I am using XAML/C#. 回答1: According to this thread. Seems that you can't just launch a Background Task or make your own Trigger. In this case, a Metro app may not be appropriate... 来源: https://stackoverflow.com/questions/8859139/for-win-8-metro-app-how-to-start-background-task-immediately-without