windows-8

Binding Hyperlink to richtextblock in windows 8 Metro app

。_饼干妹妹 提交于 2019-12-24 03:34:20
问题 I am building a windows 8 metro app for fun/learning etc. I have created a listview of text items that have descriptions, images etc. Inside the description, there are often hyperlinks that I would like to make clickable. However, when binding to a textblock, xaml hyperlink code is displayed as text. Searching arround, it looks like I need to use a richtextblock for hyperlinks. I can't seem to figure out how to bind a hyperlink to it. I have found many examples from wpf showing how to extend

High quality image scaling

老子叫甜甜 提交于 2019-12-24 03:18:20
问题 I have read this question, High Quality Image Scaling Library , but it only pertains to GDI+. When I scale down an Image in my app, it becomes very jaggy. I can't find any property on the Image class that allows me to increase the quality of the down-scaling. How can I do this? EDIT: I have now used this code: BitmapImage img = new BitmapImage(); img.UriSource = new Uri(Graphic, UriKind.Relative); return img; where Graphic is a string that contains the path to the image, but am getting this

Creating Windows 8 Start screen groups and tiles (not only for exes) with Inno Setup

左心房为你撑大大i 提交于 2019-12-24 03:08:14
问题 We are using Inno Setup to build installers for our ActiveX grid control. With the release of Win8, two new questions arose: Is it possible to create our own new group of tiles on the Start screen (with a specified name) to place our shortcuts/tiles to it using InnoSetup? Now, only the tiles for the exe's we install are created on the Start screen. Is it possible to add tiles for other file types - say, CHM help file or PDF documents - to this screen? 回答1: The named grouping under "All appa"

Socket.IO documentation for Windows 8 modern/metro app with MessageWebSocket

∥☆過路亽.° 提交于 2019-12-24 01:24:28
问题 Relating to a previous question I asked, I am building a Windows 8 c++ App that requires me to connect to a Node.js server running socket.io. Does socket.io use any sort of special protocol on top of websockets? When I just do a dry connection, I get an error "HTTP Invalid Response." I see a number of c++ websocket implementations, but I'm having a bit of a hard time trying to translate those concepts into the Windows 8 websocket implementation. 回答1: Check this implementation for windows

How to use deserialized object?

那年仲夏 提交于 2019-12-24 00:44:47
问题 I am serializing and deserializing an Object in C# for Windows 8 Apps. I am serializing my Object before passing it to the next View, because passing an object throws out exceptions. function OnNavigatedTo: protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); string XMLString = e.Parameter.ToString(); var thisChannel = XmlDeserializeFromString(XMLString, typeof(Channel)); ....} Deserializing Function: public static Channel XmlDeserializeFromString<Channel>

winjs appbar.wincontrol is null

随声附和 提交于 2019-12-24 00:34:50
问题 I am creating a Windows 8 HTML5 app, and implementing an app bar. When I access the appbar.winControl it is always null. So if for example I write appbar.winControl.show() I get an exception claiming that winControl is null. What I did was create a fixed layout app. Without doing anything else, I added the following markup in the document body: <body> <div id="appbar" data-win-control="WinJS.UI.AppBar" aria-label="Command Bar"> <button id="btnBoardSizeUp" data-win-control="WinJS.UI

System.Runtime.InteropServices.COMException caused while terminating the app

三世轮回 提交于 2019-12-24 00:17:28
问题 I have an app with 2 pages calendar.xaml(start page) and historystatistics.xaml. Error is thrown when I navigate to historystatistics and back to calendar and then try to terminate the app by the pulling down gesture. The mentioned error occurs at the SaveAsync function in OnSuspending of App.xaml. private async void OnSuspending(object sender, SuspendingEventArgs e) { CycleManager cycMan = CycleManager.Instance; var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application

How to animate at periodic intervals?

蹲街弑〆低调 提交于 2019-12-24 00:09:40
问题 I have a storyboard which animates a minute hand to slide 6 degrees. Now i want the minute hand to slide at every 59th second forever. Are there any properties of storyboard or any other way that i can do it? My storyboard <Storyboard x:Name="myStoryboard2"> <DoubleAnimation x:Name="minuteAnimation" Storyboard.TargetName="minHandTransform" Storyboard.TargetProperty="Angle" Duration="0:0:1" From="{Binding Time, Converter={StaticResource minuteHandTransform}}" To="{Binding Time, Converter=

Can developers “force” the system to prevent “Metro” apps from being suspended while background async processes are running?

吃可爱长大的小学妹 提交于 2019-12-23 23:07:08
问题 When an app is not currently "front and center" in Win8, it is suspended. Does this preclude keeping the app explicitly alive in the background, such as in an email client, using async operations to poll the mail server for new messages, and download them (and then update the Tile with count of new messages)? If this is not possible (a suspended app cannot perform background processing, or cannot force the system to allow it to stay active, albeit not visible), what would be the workaround -

How can I use DesignData to help develop a Metro app?

一笑奈何 提交于 2019-12-23 21:25:24
问题 I've been merrily using the DesignData in Windows Phone apps, and I was hoping to use it to help visualise designs in a Metro style app in VS2012/Blend for VS. I've tried the hopefully obvious: <common:LayoutAwarePage x:Name="pageRoot" x:Class="MyRootNamespace.Views.EventView" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" IsTabStop="false" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"