windows-8

WorkLighr 6.0 Deployement on windows 8 issue

一个人想着一个人 提交于 2019-12-11 21:43:59
问题 I am still working to ibm-worklight 6.0 mobile application , it's working fine my local eclipse development server. but i am going to install the the liberty based using WAS server while i deploye the worklight WAR file is not working. am i got the error below that, Exception thrown by application class 'com.worklight.core.auth.impl.AuthenticationFilter.doFilter:110' javax.servlet.ServletException: Worklight Project not initialized at com.worklight.core.auth.impl.AuthenticationFilter.doFilter

How to use IAppVisibility from a VS project prior to VS 2012?

痴心易碎 提交于 2019-12-11 20:44:13
问题 I'm trying to use the IAppVisibility interface (and namely the IAppVisibility::GetAppVisibilityOnMonitor method) from my C++ project that is developed under Visual Studio 2008. I found this code sample, that unfortunately requires VS 2012 to compile. So I was curious, is there a way to call it from a VS project prior to VS 2012? For instance, I'm doing this: #include <Shobjidl.h> //Earlier version IAppVisibility* pAppVis = NULL; HRESULT hr = CoCreateInstance(CLSID_AppVisibility, NULL, CLSCTX

Unable to access clipboard in FileSystemWatcher's renamed event

Deadly 提交于 2019-12-11 20:40:07
问题 I have an object of FileSystemWatcher called 'watcher' instantiated in my main function. I tried to store the text on clipboard in a string variable during the 'watcher.renamed' event but it always returns empty data? I checked the value of the variable with the help of a breakpoint, it remains empty. Here is the code: private void Form1_Load(object sender, EventArgs e) { FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = Application.StartupPath; watcher.Filter = Path

Update 2 different classes from a settings flyout?

本小妞迷上赌 提交于 2019-12-11 20:32:43
问题 As per MSDN guidelines we need to put all the app's settings into the SettingsPane and then the app should update all pages when the settings is applied. In my app I need to have a reset option which brings the app to the default settings. There are 2 pages, Calendar.xaml and HistoryStatistics.xaml that i need to update when the reset button is pressed. All the data of the app is put in a singleton class called CycleManager. I have used a SettingsFlyout control from the Callisto Toolkit. App

Windows 8 - Cordova - navigator.camera.getPicture

强颜欢笑 提交于 2019-12-11 20:19:39
问题 We are in the process of porting our HTML application to Windows 8 using Cordova/Phonegap 3.1.0. Most of it runs fine; however when we take a photo using the FILE_URI navigation, we receive what initially looks like a blob, but is just a string (I believe). An example string I get back when using the following code, could be: blob:00000000-0000-0000-0000-000000000000 Using: navigator.camera.getPicture(success, failure, { quality: 40, destinationType: Camera.DestinationType.FILE_URI,

What can cause GetFileAsync to hang?

那年仲夏 提交于 2019-12-11 19:58:13
问题 I've got a simple utility collection for a Windows Store application (a.k.a Metro), but I'm finding that it seems to hang when calling ApplicationData.Current.LocalFolder.GetFileAsync in succession (i.e. as soon as I try to debug it and step through, the problem disappears). public static async Task<LocalCache<T>> LoadCache() { try { // Get the input stream for the cache StorageFile file = await ApplicationData.Current.LocalFolder.GetFileAsync(GetFileNameForType()); using (IInputStream

Place popup at top right corner of a window in XAML

别来无恙 提交于 2019-12-11 19:55:57
问题 I am developing an app for windows store using c#/xaml. Xaml: <Popup x:Name="EditQuantityPopup" x:Uid="EditQuantityPopup" AutomationProperties.AutomationId="EditQuantityPopup" IsLightDismissEnabled="True" IsOpen="{Binding IsEditPopupOpened, Mode=TwoWay}"> <Grid x:Name="PopupPanel" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Opacity=".9" Height="100" Width="230"> <Grid x:Name="ContentPopupGrid" Grid.Row="1" Margin="20,0,10,15"> <Grid.ColumnDefinitions> <ColumnDefinition

how to disable default (next/prev) buttons of flip in winrt xaml

五迷三道 提交于 2019-12-11 19:41:43
问题 i am working on winrt flipview. in this i want to disable its default next and prev buttons of FlipView . but the fliping can be done by another buttons. can any one please tell me how to disable default(next/prev) buttons in winrt xaml 回答1: You would need to re-template the control and remove those elements. 回答2: There are 2 options. Option 1. In FlipView.Loaded event dynamically remove the arrow buttons. private void flipView_Loaded(object sender, RoutedEventArgs e) { Grid grid = (Grid

Windows 8 App Screen Layout

夙愿已清 提交于 2019-12-11 19:40:02
问题 How can I design an app that adjusts to different screen sizes? So far I stretched the grid because on my computer that fills the screen. Will other computers see this differently? Should I use a scrollbar, if so how? I also tried <viewbox stretch="fill" stretchdirection="both"> <grid width="1024" height="575" Using this everything in the app looks stretched and zoomed in. 回答1: You don't necessarily have to hard code the pixel values as Windows 8 supports various types of layout for making a

What is the difference between null and transparent brush in the Background or Fill

柔情痞子 提交于 2019-12-11 19:39:19
问题 For example we have a Border. What the difference beetween these XAMLs? 1) Background="Transparent" <Page x:Class="App1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Border BorderBrush="White" BorderThickness="2" Width="400" Height="400" Background="Transparent" PointerPressed="Border_PointerPressed" PointerReleased="Border