windows-phone-8.1

How do you make Speech to Text work in Windows (Phone) 8.1 Universal App

烂漫一生 提交于 2019-12-11 18:23:01
问题 I'm trying to write code to read aloud an incoming Toast (this was trivial in WP8.1) I have this so far Using MediaElement doesn't seem to work (code runs but no audio) either on the phone or in the emulator Using BackgroundMediaPlayer works in the emulator but not on the phone I've tried both from the UI thread (MediaElement only works on the UI thread) and BackgroundMediaPlayer from the thread that handles the incoming toast var mediaElement = new MediaElement(); using (var tts = new

Capture a photo

谁说我不能喝 提交于 2019-12-11 17:58:20
问题 I have problem with capturing a photo. I have tried to solve this for 3 days, I hope that you will help me with this. My xaml : <CaptureElement x:Name="capturePreview" Stretch="Uniform" Grid.Column="0" Height="200" Width="300" VerticalAlignment="Center" HorizontalAlignment="Center"/> <Image x:Name="imagePreivew" Stretch="Uniform" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Stretch"/> <StackPanel Orientation="Horizontal"> <Button Click="InitCameraBtn_Click" Content=

How to ignore “ease of access” settings on Windows Phone?

旧城冷巷雨未停 提交于 2019-12-11 16:19:41
问题 There are 'TextSize' and 'High contrast' settings in 'ease of access' settings category on Windows Phone. Is there a way to ignore them or make an app to follow my own accessibility styles? 回答1: It's a common bug in apps that they ignore the high contrast settings and hardcode their own colours. So yes: you can do this by doing the wrong thing and hardcoding your settings instead of using the system resources. You can override most system brushes in your app resources in app.xaml and you can

Map pushpin click event

荒凉一梦 提交于 2019-12-11 14:43:53
问题 I'm building a windows phone 8.1 app that reads a file ( which holds GPS points, each point consists of e.g. latitude and longitude fields). For each point I have it so it's displayed with a little pushpin icon on the map control, based on its coordinated from the above file. Is there any way I can implement a click event on the push pin element and use it to e.g. to display another window where user can change/display specific point/pushpin info ( latitude or longitude) ? This is what I use

The store-version of my Windows Phone 8.1 app does not start on my dev phone

对着背影说爱祢 提交于 2019-12-11 14:13:06
问题 My Windows Phone 8.1 App (C#/XAML) is ready for beta/store, but I have a strange problem. When my app is downloaded from the store on my Nokia 930, it quits instantly in a flash during splash screen of the app startup. The same app works fine on other phones (nokia 920,930,830,630) after downloading it from the store. My Nokia is registered as a developer device and used during development. The app works fine when side loading it from Visual Studio 2013.4 via USB and/or side loading the store

Windows 10 Mobile Direct3D

假装没事ソ 提交于 2019-12-11 13:55:01
问题 I have a C++ project targeted for Windows Phone 8.1 that uses Direct3D11, I tried using that project with Windows 10 Mobile device but at fails in the following line: hr = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE,NULL, D3D11_CREATE_DEVICE_DEBUG, featureLevels, sizeof(featureLevels) / sizeof(*featureLevels), D3D11_SDK_VERSION, &m_d3dDevice, &featureLevel, NULL); returning error code 0x887A002D -> DXGI_ERROR_SDK_COMPONENT_MISSING, Any idea how i can make this work on a Windows 10 Mobile

Windows Phone 8.1 button color on tap

ぃ、小莉子 提交于 2019-12-11 13:16:58
问题 I have a question regarding of changing button color in WP 8.1 on touch down or tap. I've already figured out how to change the background when there is no interaction, but I want to also change the background color of the button if it is tapped to transparent. Is this possible? 回答1: You'll have to modify the control template, as the "Pressed" state background is hard-coded into the control as "PhoneForegroundBrush": <VisualState x:Name="Pressed"> <Storyboard> <ObjectAnimationUsingKeyFrames

Make clickable UI-elements for windows Phone 8.1 apps maps

試著忘記壹切 提交于 2019-12-11 13:05:09
问题 Windows Phone 8.1 App , C# I would like to let the user add Pushpins ( which apparently are called MapIcons ) to the map and when the user clicks the newly created Pushpin some other ui-elements should appear. But apparently MapIcons are not clickable and you can not inherit from them since they are sealed, so no luck in making them clickable. I tried to just extend from Windows.UI.Xaml.Controls.Button , but those have not Location, probably because the do not belong to the Windows.UI.Xaml

XAML outsourcing datatemplate with events in APP.xaml

£可爱£侵袭症+ 提交于 2019-12-11 13:03:19
问题 I'm having a working datatemplate for a ListView with ItemTemplate <ListView ItemTemplate="{StaticResource MYTEMPLATE}" HorizontalAlignment="Center" ScrollViewer.VerticalScrollBarVisibility="Auto" ContinuumNavigationTransitionInfo.IsEntranceElement="True"> <ListView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel VerticalAlignment="Bottom"/> </ItemsPanelTemplate> </ListView.ItemsPanel> </ListView> The Template looks like that: <DataTemplate x:Key="GlobalBox"> <Border Background="

httpclient postasync windows phone 8.1 universal app second call 404 error

橙三吉。 提交于 2019-12-11 12:53:21
问题 I have a problem with httpclient in a universal windows phone 8.1 app. I've been looking but i have not a valid solution in any post. the problem is that, when i call to the web service first time runs correctly, but when i call it, second or third time, gives me an error 404. Until you restart the application will not run again. i need to send that data in a post function cause i want to send a xml formated to string. my code is very simple: var handler = new HttpClientHandler { Credentials