windows-8

WinJS are there #DEBUG or #RELEASE directives?

流过昼夜 提交于 2020-02-06 06:48:05
问题 I would like to exclude some code when using release vs debug. Basically I have an internal admin section for testing that I don't to ever make it into the app store by accident :) Ideally, I would just be able to do something like this: #IF DEBUG <div id="appBar" data-win-control="WinJS.UI.AppBar"> <button data-win-control="WinJS.UI.AppBarCommand" data-win-options="{id:'cmdAdmin', label:'Admin', section:'global' }"> </button> </div> #ENDIF 回答1: See here. There is a nuget package here to

Visual Studio 2012 Attach to process dialog does not have Show Processes from all sessions

与世无争的帅哥 提交于 2020-02-05 05:24:06
问题 I am using Visual Studio 2012 Pro on Windows 8 Pro. What I want to do is attach to w3wp so I can debug a website but w3wp isn't showing in the process list. In every example, I can find it shows both Show processes from other users and Show processes from all sessions ticked. However when I launch the Attach To Process dialog, I don't have the Show processes from other sessions tick box. Anybody please let me know how I can get that tick box to appear? I've tried running VS as administrator

How to display a Windows 8 metro style tile within an app?

不问归期 提交于 2020-02-02 11:02:01
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

How to display a Windows 8 metro style tile within an app?

谁说胖子不能爱 提交于 2020-02-02 10:59:13
问题 Windows 8 metro style app tiles are created based on pre-defined xml templates (found here). Is there any way to hook up to Windows' rendering of the tile to allow a tile preview within an app? In my app I would like to offer the user a subset of the tile templates listed in the above link and let the user customize the tile content. A live preview of the customized tile rendered within my app would greatly improve the user experience. 回答1: you should look into HubTile. I don't know any free

User '' does not have required permissions, SSRS 2008 on Windows 8

戏子无情 提交于 2020-01-29 06:39:33
问题 When you try to log into SSRS's root site at http:// (servername)/Reports it displays: User '' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed. This is on a 64 bit edition of Windows 8 Pro, running SQL Server 2008 enterprise. Everything should be using the local system as the account of execution. I have tried changing the execution account as my user which is admin, I have added

How can I change opacity of first listview element?

跟風遠走 提交于 2020-01-25 05:53:06
问题 im trying to change opacity of first ListView element, but i am not getting the right way to implemet it ; Can you please give some suggestions ? display.Opacity = 0.5; foreach (Common trigger in display.Items) { if (trigger.Image_Name == "First") { trigger.Opacity = 1; } } where display is my ListView 回答1: When you change the opacity property of ListView it does not affect to it's items separately(opacity changes for ListView as a whole). If you want to set all items opacity to 0.5 except

Get unread emails from exchange in Windows 8 Store App

微笑、不失礼 提交于 2020-01-25 05:43:55
问题 I want to write an App (Windows Store App) which should display all my unread emails. I did my research at google and msdn but found nothing suitable. The problem is as follow, my development pc does not have any connection to a exchange server, so I had to write an app (C#/XAML) which should later on work: On every PC in the organisation Uses the default credentials of the user Displays the unread emails Is it possible to get these information (Emails) by asking the EWS? Is there a WinRT

VS Express 2013 for Windows does not halt at the (async) line that throws an exception

泄露秘密 提交于 2020-01-25 02:17:25
问题 I am very new to async programming. When an exception is thrown, I am used to Visual Studio to halt at the erroneous line. In a code like the following, the debugger normally stops and highlights line 2 int[] array = new int[] { 0, 1, 2 }; int throwsException = array[3]; But when an exception occurs in a method that is called with await , than I am completely lost and the debugger simply stops at the await line. public async void ThrowException() { int[] array = new int[] { 0, 1, 2 }; int

Remove padding from GridViewItem

点点圈 提交于 2020-01-24 21:09:27
问题 Does anybody know a way to remove all the padding from GridViewItem? I'm using very small items (not too small though, I exaggerated in the picture below) and there's some padding when selecting the items which makes it good really bad and I'd like to take it out. This is what I mean: The code for the image is this: <GridView Margin="120,80,0,0" SelectionMode="Multiple"> <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> <

How to get coordinates of corners of visible bing map?

做~自己de王妃 提交于 2020-01-24 13:20:07
问题 I'm using Bing Maps in a windows 8 app and I need to display pushpins at numerous locations. Is there any way to get the GPS coordinates of the corners of the visible map? Or alternatively a way to get the distance of the visible map? (e.g. 40km width, 60km height) I need this in order to limit the number of pushpins I attach to the map to just being the ones on the visible part of the map. 回答1: You can get this information directly from the Bounds property of the map instance, which returns