Articles of windows phone 8

使用WP 8.1中的后台任务执行多个地理栅格的执行问题

我是WP 8.1 App开发新手,我一直在尝试构build一个应用程序,在用户input地理围栏时发出Toast通知。 如果只设置了一个地理围栏,这个效果很好。 但是,当我设置了多个地理围栏时,有时只有当所有地理围栏被激活时才会显示敬酒,有时甚至在到达第一个目的地之后都会显示所有的敬酒。 例如,如果我设置了两个地理栅栏,一个在Googleplex,另一个在迪士尼乐园,那么只有当我去Googleplex和迪斯尼乐园的时候,才会显示敬酒。 (或者当我去第一个目的地时显示两个敬酒)。 我正在用自己的智慧来结束如何处理这件事。 有没有办法解决这个问题? (下面的代码在图像的水龙头上设置了地理围栏)('App.nameofplace'捕获所选地点的名称,'selectedpoint'捕获地点的坐标。 private async void SetAlarm_Tapped(object sender, TappedRoutedEventArgs e) { //This line of code sets up a custom DataModel that need to display details about the geofence that has been set. await App.DataModel.AddCurrentAlarmAsync(App.nameofplace,DateTime.Now,selectedPoint.Position.Latitude, selectedPoint.Position.Longitude, currentPoint.Position.Latitude,currentPoint.Position.Longitude,vicinity); // Set fence ID string fenceId = App.nameofplace; double radius = 300; […]

Windows通用应用程序(10)隐藏栏

我在Windows 10创build通用的应用程序,我可以创build简单的列表。 我有问题。 我想创build隐藏顶部的酒吧。 当用户向下滑动时,栏从顶部淡入(类似于状态栏,当滑动时显示所有内容)。 你可以给我任何提示,我应该寻找解决scheme或给我一个? 我也使用GestureRecognizer,但它不适用于滚动查看器。 这是我的用户控制与酒吧: <Grid> <Grid Margin="0"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Rectangle Fill="DarkOrange" Grid.Row="0" Margin="0"/> <TextBox Name="TextBox" KeyDown="TextBox_KeyDown" Grid.Row="0" Margin="-2,5,2,13" Style="{StaticResource TextBoxStyle1}" Grid.RowSpan="2"/> <Polygon Grid.Row="1" Points="0,0, 40,25, 0,50" Fill="DarkOrange" Margin="172.584,-30.584,186.416,-7.25" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" > <Polygon.RenderTransform> <CompositeTransform Rotation="90"/> </Polygon.RenderTransform> </Polygon> </Grid> 这里是我想要使用这个栏的页面: <Grid Background="Black" Name="LayoutRoot" PointerPressed="OnPointerPressed" PointerReleased="OnPointerReleased" Margin="0,-76,0,0" > <Grid.RowDefinitions> <RowDefinition […]

适用于Windows Phone 8和Windows 8的应用程序开发

是否有统一的方式来开发适用于Windows 8和Windows Phone 8的应用程序。 我的意思是,我可以制作一个解决scheme/项目基础,还是需要创build不同的解决scheme,然后应用代码共享策略来最大限度地减less工作量。

用Itemtemplate或IValueConverter的LongListSelector的严重错误

我即将把我的头发脱落,但在我这样做之前,我会试着请你们帮忙…也许有人有同样的问题,可以帮助我。 所以这里是交易。 我有一个名为SourceZoneSelect的LongListSelector定义如下: <phone:LongListSelector x:Name="SourceZoneSelect" Grid.Row="2" LayoutMode="Grid" GridCellSize="160,160" BorderThickness="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Background="White" Width="480" Foreground="Black" ItemTemplate="{StaticResource DataTemplateContentZone}" Style="{StaticResource LongListSelectorStyleContentZone}" ScrollViewer.VerticalScrollBarVisibility="Visible" Margin="-2,0,0,0"/> ItemTemplate是一个DataTemplateSelector,如下所示: <DataTemplate x:Key="DataTemplateContentZone"> <local:ContentZoneTemplateSelector Content="{Binding}" VerticalAlignment="Top" HorizontalAlignment="Right"> … <local:ContentZoneTemplateSelector.PhotoWebSelect> <DataTemplate> <Grid Height="158" Width="158"> <Button BorderThickness="0" Style="{StaticResource ButtonStyleStyle}" Width="158" Height="158" toolkit:TiltEffect.IsTiltEnabled="True" Click="Button_SourceZone_Select_Click"> <Grid HorizontalAlignment="Left" Height="158"> <Rectangle Fill="{StaticResource StayfilmThirdColor}" HorizontalAlignment="Left" Height="158" Stroke="Black" VerticalAlignment="Top" Width="158"/> <Image x:Name="img" Stretch="UniformToFill" […]

Windows Phone 8.1 WinRT页面自定义转换

Windows Phone 8.1 RT有没有办法编写自己的页面转换,以及我可以获得的低级别和花式? 我并不是说能够在滑动和旋转转换之间进行select。 更像编码自定义着色器,使用位掩码随着时间的推移插入两帧之间。 假设我不想创build一个将首页消失的转换。 我试图谷歌一些教程,但我很难find任何。

使用DownloadStringAsync下载HTML源代码不会在WP8上下载整个源代码

我试图用DownloadStringAsync下载一些HTML源代码。 我的代码如下所示: WebClient client = new WebClient(); client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(DownloadStringCallback2); client.DownloadStringAsync(new Uri(url)); private void DownloadStringCallback2(Object sender, DownloadStringCompletedEventArgs e) { source = (string)e.Result; if (!source.Contains("<!– Inline markers start rendering here. –>")) MessageBox.Show("Nope"); else MessageBox.Show("Worked"); } 如果我看一下variables“来源”,我可以看到一些来源在那里,但不是全部。 但是,如果我做这样的事情它的作品: while (true) { source = wb.DownloadString(url); if (source.Contains("<!– Inline markers start rendering here. –>")) break; } 不幸的是我不能使用这种方法,因为WP8没有DownloadString。 有谁知道如何解决这个问题,或者如果有更好的方法?

Windows phone – 将列表绑定到LongListSelector

我对Windows Phone开发非常陌生,我一直在尝试将列表绑定到包含在基本Pivot应用程序中的LongListSelector,但没有成功。 这里是主页面的构造函数(发生绑定的地方): public MainPage() { InitializeComponent(); List<int> testList = new List<int>(); testList.Add(0); testList.Add(1); testList.Add(2); listDisplay.ItemsSource = testList; // Set the data context of the listbox control to the sample data DataContext = App.ViewModel; // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); } 这里是LongListSelector的XAML: <vm:MainViewModel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:PivotApp2.ViewModels" SampleProperty="Sample Text Property Value"> <vm:MainViewModel.Items> <vm:ItemViewModel x:Name="listModel" […]

canvas在Windows Phone 8.1中移动animation

我不能解决一个问题,canvas顺利移出屏幕边框在Windows Phone 8.1,虽然不透明度属性改变很好。 <Storyboard x:Name="moveOut"> <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="CanvCalling" From="1.0" To="0.0" Duration="0:0:1" /> </Storyboard> 我已经使用PointAnimation为基元(椭圆,方形)解决了它,但它不适用于canvas。 以前它使用ThicknessAnimation和Margin属性,但它不适用于UWP和Windows Phone 8.1 简述: 我需要使用animation顺利地改变保证金属性,我想在XAML中做, 要么 我怀疑这是通过RenderTransform实现的

如何运行Windows 8的基本版本安装的Windows Phone 8模拟器?

我的笔记本电脑支持运行Windows Phone 8 sdk的所有硬件要求。 它具有Windows 8基本版本,而不是Pro版本。我已经在BIOS中启用了Intel虚拟技术。但是,Hyper-v客户端在Windowsfunction中没有提供激活虚拟机。 有什么方法/可能性运行Windows Phone 8 sdk模拟器和工具与Windows 8的基本操作系统?

如何使Windows Phone 8模拟器与Windows 8.1一起使用?

我使用VS 2012 Update 3的Windows 8 Pro(64位)来开发具有仿真器和设备debuggingfunction的Windows 8 Phone应用程序。 在安装Windows 8.1 Pro之后,我无法再使用模拟器。 兼容性错误窗口popup,并带我到一个帮助页面。 如果我继续,那么我得到一个错误代码0x80131500 知识库文章说,这个问题影响Windows 8.1预览和解决scheme是安装VS2012更新3,我已经有了。 任何提示?