windows-8

How to use CSS with Windows 8 Webview Control?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 07:14:34
问题 I have a question about window's 8 apps Webview Control , is there anyway to use css to manage the look of the webview , i'm using it here to view a returned contents of a feeded html data but as you can see it's striped from all the CSS , so is there anyway that I can manage the CSS for the Webview ? UPATED : This is the code void ItemListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { // this code to populate the web view // with the content of the selected blog post. //

func<string,string,bool> is not a valid windows runtime parameter type (win 8.1)

拈花ヽ惹草 提交于 2019-12-24 07:13:13
问题 https://github.com/igorkulman/AutoCompleteBox/blob/master/AutoCompleteBox/AutoCompleteBox.cs I download this control, But I cannot build it, public Func<string, string, bool> SearchFunction { get { return (Func<string, string, bool>)GetValue(SearchFunctionProperty); } set { SetValue(SearchFunctionProperty, value); } } When I try using SearchFunction as public,I am getting this error. When I change it as internal it is working but this time I can't access SearchFunction from my project. Method

Windows 8 store app development without touch screen

穿精又带淫゛_ 提交于 2019-12-24 07:12:13
问题 I've started doing Windows 8 Store app development for some projects at work, but I do not have a touch screen device of my own at home. If I write a personal app for submission to the store, I must use my own hardware since I can't use the work computers for personal projects. My concern is getting into a situation where I submit an app to the store, then have touch-screen users describing issues that I can't replicate on a non-touch-screen device. Are there any functions or capabilities or

Windows 8 apps - simple animation when button is clicked?

我只是一个虾纸丫 提交于 2019-12-24 07:09:58
问题 so I'm putting 2 same-sized StackPanels in the same position. The Visibility of the first StackPanel is Visible, while the second is Collapsed. Then I add this code to my button: private async void Button_Clicked(object sender, RoutedEventArgs e) { StackPanel1.Visibility = Visibility.Collapsed; StackPanel2.Visibility = Visibility.Visible; } this simply makes the first StackPanel gone and the second to be visible. However, I would like to add a simple animation that will make the first

How to save ObservableCollection in Windows Store App?

北战南征 提交于 2019-12-24 07:04:55
问题 I am creating Windows Store App based on Split App template. What is the best way to save data from SampleDataSource for later use? I tried: Windows.Storage.ApplicationDataContainer roamingSettings = Windows.Storage.ApplicationData.Current.RoamingSettings; roamingSettings.Values["Data"] = AllGroups; It throws exception: 'Data of this type is not supported'. 回答1: RoamingSettings only supports the runtime data types (with exception of Uri); additionally, there's a limitation as to how much data

How can I save a StorageFile to use later?

旧城冷巷雨未停 提交于 2019-12-24 06:52:11
问题 I am working in WinRT, and I am kind of stuck: I am writing a music player with a media library capability. I keep information about the music (such as artists etc) in a SQLite database. I wanted to let the user keep his music anywhere he wants to, instead of the windows way, where it all has to be in the 'Music' library. Users can add the music inside folders using a folder picker. The problem I have is this: how can I access these files later, e.g after the application restarts? Keeping the

Launch Windows Explorer from Metro style app

冷暖自知 提交于 2019-12-24 06:39:05
问题 I would like to download a file to the DownloadsFolder in a Windows Store App. And then I'd like to bring up a Windows Explorer open on the DownloadsFolder (actually on the folder I create in the DownloadsFolder) But I can't figure out how to do it. This stackoverflow question Launching a Desktop Application with a Metro-style app suggests using Launcher.LaunchUriAsync. But the documentation claims: You cannot use this method to launch a URI in the local zone. For example, apps cannot use the

XML Serialization in Windows 8

。_饼干妹妹 提交于 2019-12-24 05:28:22
问题 How can I Serialize Object in windows 8 Metro App Development to xml file ? I don't know how to create stream , when I create streamWriter I get error on the file direction StreamWriter nsw = new StreamWriter(@"C:\sample.xml"); Error: The best overload method match 'system.io.streamwriter..streamwriter(system.io.stream) has some invalid arguments this is the main code : StorageFolder storageFolder = KnownFolders.DocumentsLibrary; StorageFile sampleFile = await storageFolder.CreateFileAsync(

Sign cat file that uses Winusb.sys as kernel-mode code

牧云@^-^@ 提交于 2019-12-24 04:32:12
问题 I'm trying to make an USB driver to be installable in Windows 8, this USB driver uses only WinUSB. According to this post Signed INF driver works on the computer where it was signed, not others and also this website Practical Windows Code and Driver Signing all I have to do is to generate an .inf file, to generate a .cat file and sign this .cat file, but I'm having trouble with the signing part, the other steps are ok. The sites I listed above makes clear that to sign a catalog file which the

Listing and connecting WiFi using WinRt

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 03:39:09
问题 In my office I have 10 WiFi routers.I want to list all those(similar to Network icon in the system tray on windows 8) and connect/disconnect to one of them through Win Rt. I tried these API Windows::Networking::Connectivity::NetworkInformation::GetLanIdentifiers(); Windows::Networking::Connectivity::NetworkInformation::GetConnectionProfiles(); NetworkInformation::GetInternetConnectionProfile(); but these Api only list connected one, it doesn't list others I can achieve this using http://msdn