microsoft-metro

Is it possible to attach Attachements to mailto app in windows 8 metro application?

五迷三道 提交于 2019-12-11 06:53:19
问题 I am launching the mailto app in this way :- using Windows.System; //starts the default mail app with a subject, cc, bcc, and body Launcher.LaunchUriAsync(new Uri("mailto:windows8devs@almostbeta.com?subject=Code Request&cc=kevin@almostbeta.com&bcc=admin@almostbeta.com&body=Hi!")); 1) Can't we attach attachments to mailto app in windows 8? 2) If so please let me know what would be the work around ? Thanks in advance. 回答1: No, you can't attach files to mail app in Windows 8. You need to use

WPF Net Framework 3.5 Window Metro Style

感情迁移 提交于 2019-12-11 06:36:44
问题 I want to make Window with Metro style. I found the 3 following libraries: http://elysium.asvishnyakov.com/en/ https://github.com/MahApps/MahApps.Metro http://mui.codeplex.com/ All are for Net Framework 4+. Is there anything for 3.5? I also tried to make it on my own (Didnt finish - still need to design it and add Resize [which I dont know how]) but I dont really like how it's made...: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft

Handling MaxLength via Binding

倾然丶 夕夏残阳落幕 提交于 2019-12-11 06:19:58
问题 I'm trying to handle the MaxLength of a TextBox via Binding. I'm using a Helper Class called 'MaxLengthConverter' (see here http://mariabrinas.com/?p=89). The TextBox looks currently like this: <TextBox MaxLength="{Binding TestValue, Mode=TwoWay, Converter={StaticResource MaxLengthConverter}, ConverterParameter='7'}" Text="{Binding TestValue, Mode=TwoWay}" InputScope="Number" /> And the MaxLengthValueConvert looks like this: public class MaxLengthConverter : IValueConverter { public object

How do I call the base class implementation TextBox::OnKeyDown() in my override?

痞子三分冷 提交于 2019-12-11 05:14:48
问题 I have created a subclass of the TextBox class so that I can capture all keyboard events in the OnKeyDown() method ( the KeyDown event will not trigger for all keyboard events, including but not limited to, backspace and arrow-keys, but OnKeyDown will) . The problem with this is that it effectively disables the TextBox, as it bypasses the control's internal keyboard handling entirely. The obvious solution is to call OnKeyDown in the superclass. How do I do that in Windows Runtime? Just

c# windows store app granting capabilities to used dll-s

感情迁移 提交于 2019-12-11 04:53:24
问题 I'd like to use TagLib in my Windows Store project. The TagLib is imported as reference, with its dll ( taglib-sharp.dll ) I can access any file in my music folder since it is checked in the capabilities. However, when I call TagLib.File file = TagLib.File.Create(soundFilePath, TagLib.ReadStyle.None); it throws the following error: System.UnauthorizedAccessException was unhandled by user code HResult=-2147024891 Message=Access to the path 'C:\Users\Gabor\Music\_FIFA 2010 soundtracks\01. Meine

WinJS AutoSuggestBox doesn't render properly

我们两清 提交于 2019-12-11 04:24:15
问题 I am using the WinJS.UI.AutoSuggestBox from the first example on this link: http://try.buildwinjs.com/#searchbox:simplelist1 I copied the exact same code to make sure I was not making any mistakes on my part, but it still doesn't render correctly. I have no idea what the problem might be. PS: the Data.animeList is a namespace defined on the default.js, it works correctly and I've been using it on other pages. It is an array of strings, just like the one on the example mentioned above. Using

Changing the background color of a metro style app has no effect

喜欢而已 提交于 2019-12-11 04:16:38
问题 I am trying to change the background color of my application in visual studio (XAML) to White (or, ApplicationPageBackgroundTheme / or whatever it's called) and it doesn't work. When I debug, it just shows a black background. When I go to the Devices pane and select the default color theme to "Light", it makes everything on the screen white, even the text and the background. When I change the background of the colors in xaml, at runtime it gets changed back to black! I've searched, but haven

0x800a1391 - JavaScript runtime error: 'WinJS' is undefined

落花浮王杯 提交于 2019-12-11 04:04:49
问题 I have download the code from CodePlex Then I install the sdk's of live,telerik etc After installation I ran the code and I'm getting the following error `0x800a1391 - JavaScript runtime error: 'WinJS' is undefined` The error occured in the Converters.Js file here it is (function() { var r = Windows.Storage.ApplicationData.current.roamingSettings.values; // Export shortDate WinJS.Namespace.define("codeSHOW.Converters", { // Error Occured here }); })(); Any help is highly appreciated. Thanks.

Execute some function after raw push notifications is received from server in Window Phone 8.1

帅比萌擦擦* 提交于 2019-12-11 03:33:51
问题 I want to execute my own function when a push notification is received even when the app is not running. And the user doesn't need to click the notification in action bar. In the BackgroundTask.cs I have the following code snippet: namespace BackgroundTasks { public sealed class SampleBackgroundTask : IBackgroundTask { public void Run(IBackgroundTaskInstance taskInstance) { ApplicationDataContainer settings = ApplicationData.Current.LocalSettings; string taskName = taskInstance.Task.Name;

Async calls chaining in Metro app

做~自己de王妃 提交于 2019-12-11 03:15:53
问题 I am quite new to Metro dev and I only hope I will be able to express my question in an understandable way... Actually I am porting a part of my old application to Metro. The logic part is a separated project (Portable Library) and it should serve to 1) the old WPF app and 2) the new Metro app. The basic logic is the same but some subsystems (for example file operations manager) must be coded differently - i.e. async way for Metro. My question is: Do I have to rewrite the whole chain of