windows-8

Is it possible to attach two debugger to one process?

被刻印的时光 ゝ 提交于 2019-12-30 17:22:14
问题 Is it possible to attach two debugger to one process ? Recently, I had developed a Metro Style App in HTML5/CSS and that was calling a Window Runtime Component written in C#. What I wanted to do was attach two debugger to same process. One at JavaScript & another at C# code. The Step I followed: I opened two visual studio instances targeting same solution. I put a breakpoint in JavaScript code and f5/run the application via VS instance 1. But, when I tried to attach 2nd debugger in C# window

How to decompress a ZIP file in Windows 8 Metro without ZipArchive (zlib.net)

孤街浪徒 提交于 2019-12-30 12:35:11
问题 I have a Windows 8 Metro application written in C#. I need to open a ZIP file and read the XML files that it contains. I used ZipArchive class but it became buggy in the current build and no longer works. Is there another way? I tried googling for other ZIP libraries but the only one I could get to work in WinRT was zlib.net and this library does not have very frienly interface. How do you read XML files as string from ZIP using zlib.net in C#? 回答1: How about using the built in library class

Is side-loading apps onto a Windows RT device allowed?

谁说胖子不能爱 提交于 2019-12-30 10:46:06
问题 Is it possible to side-load a Windows 8 app (WinRT) onto a Windows RT device like the new Microsoft Surface RT? For example, if I have an internal, line of business application can I give a Microsoft Surface RT to my executives and load up my corporate apps without delivering them through the Windows Store? 回答1: Yes . Side-loading is natively supported on: Windows RT Windows 8 Pro Windows 8 Enterprise And, side-loading is enabled with Visual Studio on: Windows 8 Core Enterprises can deploy

Windows 8 WrapPanel

不羁岁月 提交于 2019-12-30 08:17:24
问题 I've got problem with automatically breaking StackPanel into next line. Here's the sample code: <StackPanel Orientation="Horizontal" Width="180"> <TextBlock.../> <TextBlock.../> <TextBlock.../> <Image.../> ... </StackPanel> Now I want to achive something like this: when there is not enough space for another element in the StackPanel it should be placed in new line. How I can achive this (it's not necessary to use stackpanel)? PS: My goal is to place text and images in one line (it can of

how to hide on EditText soft keyboard windows 8 Metro Application?

狂风中的少年 提交于 2019-12-30 07:39:29
问题 I'm having an EditText and a Button in my Frame using C#. After writing inside the edit field and clicking on the Button, I want to hide the virtual soft keyboard. 回答1: You cannot. There is more information on the behavior of the Input Hosting Manager and Soft Keyboard and you can register to know when it shows or becomes hidden. But, you cannot programmatically control whether it's up or down. 回答2: Add a dummy button and set focus to it and the keyboard will be hidden. 回答3: Thanks for your

How to change a grid layout when orientation is changed

↘锁芯ラ 提交于 2019-12-30 07:04:26
问题 I'm creating a win8 app and I need to change the layout of my grid so everything fits on screen when the user flips between orientations. I understand I need to use VisualStateManager but I can't understand any tutorials. If I have this code: <Grid> <Button x:Name="button1" Margin="188,73,286,0" VerticalAlignment="Top"/> <Button x:Name="button2" Margin="236,73,238,0" VerticalAlignment="Top"/> <Button x:Name="button3" Margin="284,73,190,0" VerticalAlignment="Top"/> </Grid> How would I use

How to change a grid layout when orientation is changed

 ̄綄美尐妖づ 提交于 2019-12-30 07:04:25
问题 I'm creating a win8 app and I need to change the layout of my grid so everything fits on screen when the user flips between orientations. I understand I need to use VisualStateManager but I can't understand any tutorials. If I have this code: <Grid> <Button x:Name="button1" Margin="188,73,286,0" VerticalAlignment="Top"/> <Button x:Name="button2" Margin="236,73,238,0" VerticalAlignment="Top"/> <Button x:Name="button3" Margin="284,73,190,0" VerticalAlignment="Top"/> </Grid> How would I use

Debugger.Launch() on windows service in Windows 8

喜夏-厌秋 提交于 2019-12-30 06:42:09
问题 After I installed Windows 8 perfectly legit statement like this doesn't work anymore: #if DEBUG Debugger.Launch(); #endif Service starts ignoring that thing. Yes, I am building the project in a debug mode. if I change that to a Debugger.Break() - the service just fails, and still there's no dialog for attaching a debugger. 回答1: Debugger.Launch would launch an application with a visual GUI. By default services do not interact with a desktop and thus anything they do cannot be "seen". Support

Frame navigation in xaml return false

谁说我不能喝 提交于 2019-12-30 06:40:09
问题 Hello, I'm working in a simple Windows 8 application with xaml and c#. I'm using the VS 2012 templates to create pages, with navigation system included. I'm loading a lot of data, so I decided to add a loading page with a ProgressRing and navigate to the first Application page when loading data is finished: //loading page protected async override void OnNavigatedTo(NavigationEventArgs e) { ... await topCookerManager.GetBlogsAsync(); this.Frame.Navigate(typeof(MainPage)); ... } It works well

How do we set Timers in WinRT app?

天涯浪子 提交于 2019-12-30 06:01:30
问题 I am trying to set Timer in my Windows Store App. public void Start_timer() { Windows.UI.Xaml.DispatcherTimer timer = new DispatcherTimer(); timer.Tick += new Windows.UI.Xaml.EventHandler(timer_Tick); timer.Interval = new TimeSpan(00, 1, 1); bool enabled = timer.IsEnabled; // Enable the timer timer.Start(); // Start the timer } On button click I call above method to set this Timer. But when Eventhandler for Tick is set, I get error "Attempted to read or write protected memory. This is often