winrt-xaml

Check if a windows 8 tablet is connected to a power supply from windows 8 application

不羁岁月 提交于 2019-12-13 05:51:50
问题 I have a windows store application which will be used on tablet devices. The application communicates with a service every 15 minutes but when the devices is connected to a power source I'd like to it to communication with the service every minute. So is there any way in a windows 8 store application to check if a power supply is connected? I'm using XAML/C# for the store application. 回答1: Currently there's no access to the Power API in WinRT. If there was, you could use the SystemInformation

Strech ListBox/ItemsControl in UWP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 05:43:25
问题 I want to stretch a listbox horizontally and vertically in UWP. I tried some WPF solutions, but none of them worked. (Stretch line to width of Itemstemplate canvas in itemscontrol) What I tried: <Page.Content> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ListBox VerticalContentAlignment="Stretch" VerticalAlignment="Stretch" Background="Green"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"

How to design words balloon in WinRT XAML?

你离开我真会死。 提交于 2019-12-13 05:19:08
问题 I am trying to create words balloon looks like below image. How to design words balloon in WinRT XAML? Thanks. balloon image <Grid Width="400"> <Grid.ColumnDefinitions> <ColumnDefinition Width="22*"/> <ColumnDefinition Width="5*"/> </Grid.ColumnDefinitions> <Image Source="{Binding Image}" Margin="10,2,10,0" Grid.Column="2" VerticalAlignment="Top" /> <Border BorderBrush="Black" BorderThickness="3" HorizontalAlignment="Right" VerticalAlignment="Top" CornerRadius="4"> <TextBlock

How do I set a custom button background for a Metro app for all states

旧时模样 提交于 2019-12-13 04:17:52
问题 I want to use my own bitmaps for my buttons for a Metro style Windows 8 app. I can set the background brush for a button to my own ImageBrush and that works fine, except for the hover and pressed states. I cannot figure out how to set the bitmaps for them. Does anyone know how to do this? Thanks. 回答1: WinRT XAML Toolkit has an ImageButton control that allows to define images for all states if that is what you need. You can also check its default template in Generic.xaml to see how it uses the

Muliple Pushpins in Windows Phone 8.1

我的梦境 提交于 2019-12-13 03:56:44
问题 I am using MapControl to display map. I have MapServiceToken too. I have added custom pushpin using MapIcon and assigned this object to Map. It is working fine. But when i try to add multiple pushpins using same scenario and assign it to map so i am getting last pushpin on the map. Rest of other pushpins are not getting visible. Kindly tell me any simple solution to this problem. Thanks 回答1: You can binding your pushpins on map without MapIcon. Add in xaml <Maps:MapControl x:Name=

windows 8 Supported API test FAILED

谁说我不能喝 提交于 2019-12-13 03:24:12
问题 i'm working on windows 8 pdf reader i used MUPDF source sample it's working fine but when i tried for certification it giveing following errors. can any one please tell me how to rectify it ◦API GetModuleFileNameW in kernel32.dll is not supported for this application type. MuPDFWinRT.dll calls this API. ◦API GetModuleHandleW in kernel32.dll is not supported for this application type. MuPDFWinRT.dll calls this API. ◦API LoadLibraryExW in kernel32.dll is not supported for this application type.

How to Port or Convert existing Windows Store App(Metro Style) to Desktop App?

戏子无情 提交于 2019-12-13 03:01:13
问题 I have an existing App in Windows store(Metro Style)[XAML,C#]. I would like to convert this to Desktop(Ultra-book enabled ) and upload in to the Intel AppUp Store. The application uses GPS and call several web API for certain features. I there any tool to covert? or how could i port this app to Ultra-book enabled desktop app.? Please provide step by step help or link.. 回答1: I would check with Intel what APIs they provide for AppUp. I am almost sure though that there are no tools for this and

Local settings in Windows Phone 8.1 app are not stored

牧云@^-^@ 提交于 2019-12-13 02:04:44
问题 I have created many apps for Windows Phone 7 and 8. To store settings I was using these methods: IsolatedStorageSettings.ApplicationSettings["key"] = value; IsolatedStorageSettings.ApplicationSettings.Save(); Everything worked perfectly, my settings were stored. Save() method did the job. But now I am creating an app for Windows Phone 8.1 (WinRT). I have followed this guide to learn hot to save settings. Ane here is how it looks like now: Windows.Storage.ApplicationData.Current.LocalSettings

Creating .appxbundle using msbuild for (x86|x64|ARM)

霸气de小男生 提交于 2019-12-13 01:42:55
问题 i am trying to create .appxbundle using msbuild from developer command prompt i am using below command to create the same MSBuild KitabooBookshelf.sln /p:Configuration=Release;OutDir=..\Release\;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM" but getting below processor architecture error. I did not find much useful resource related to this issue though many have faced similar issue. I am new to Windows store Application. trying to figure what i am doing wrong & how can i create

manipulationdelta for popup window - XAML Windows 8

房东的猫 提交于 2019-12-12 22:33:01
问题 I am trying to put floating popup windows on screen. I want user to be able to move that popup window anywhere on the screen. And so I am using: <Popup x:Name="myPopup" Grid.Row="0" Grid.RowSpan="2" Margin="0, 0, 0, 0" ManipulationMode="All" ManipulationDelta="PopupManipulationDelta" IsLightDismissEnabled="False" Visibility="Collapsed" IsOpen="false"> code behind: private void PopupManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e) { var ct = (CompositeTransform