小编Ate*_*eik的帖子

我怎么能做这样的事情?(应用程序内的Tiles)Windows手机

我很抱歉,如果问题标题不清楚,但我想尝试制作这样的东西,我不知道如果它们是WrapControl中的瓷砖或图像:

在此输入图像描述 在此输入图像描述

我正在考虑使用包装面板制作这样的东西,并将每个块作为堆叠面板.但我不确定这是不是正确的做法.

有没有控制来做这样的事情?

tiles toolkit silverlight-4.0 windows-phone-7

18
推荐指数
1
解决办法
5999
查看次数

如何从C#使用ColdFusion Web服务?

我正在尝试使用端点的Web服务https://services.example.com/ASP_SecureWebServices.cfc?wsdl.

在文档中我有这个:

请求

<authorise>
  <site>xxx</site>
  <login>xxx</login>
  <password>xxx</password>
  <partnerid>xxx</partnerid>
  <wstype>xpt_exhibitors</wstype>
</authorise>
Run Code Online (Sandbox Code Playgroud)

经过验证的回复

<authorisation>
  <service>getAuthToken</service>
  <authorised>OK</authorised>
  <authtoken>255461</authtoken>
</authorisation>
Run Code Online (Sandbox Code Playgroud)

我之前从未使用过ColdFusion,所以我不明白如何提出请求.有人可以帮忙吗?

我添加了这样的服务引用:

截图

但我没有得到这种方法:

截图

c# coldfusion web-services

15
推荐指数
2
解决办法
4075
查看次数

在Windows 8 metro应用程序(C#/ XAML)中创建一个表(DataGrid)

我正在尝试创建一个这样的表: 在此输入图像描述

我怎样才能使用ListView或GridView做类似的事情?我找不到添加表格标题的正确方法..

xaml listview gridview windows-8 windows-runtime

15
推荐指数
2
解决办法
3万
查看次数

如何在经度和纬度之外获得道路的标记速度限制

我知道这不是一个技术问题,但我不知道还能在哪里问.

有没有办法从谷歌或bing地图获得道路标记的速度限制?或任何其他网络服务?

google-maps web-services geolocation latitude-longitude bing-maps

13
推荐指数
3
解决办法
4万
查看次数

有没有办法在metro风格的应用程序中设置Margin属性的动画

我正在尝试使用Storyboard类从代码中做一些动画.没有ThicknessAnimation类.我还尝试使用Blend构建故事板,它在那里不起作用.它只是直接跳转到新值,没有平滑的动画.

更新:我尝试使用TranslateX转换.但是当我在图像上使用它时,图像会被剪裁.我想要做的是在一个小网格中设置一个非常慢的大图像,因此它具有这种效果(类似于Zune和Windows Phone Gallery中的一个).图像打开后我开始动画,这是我的代码:

private void Image_ImageOpened_1(object sender, RoutedEventArgs e)
    {
        var img = sender as Image;

        Storyboard sb = new Storyboard();
        var doubleAnimationx = new DoubleAnimation() { To = -100, SpeedRatio = 0.1, From = 0 };
        Storyboard.SetTarget(doubleAnimationx, img);
        Storyboard.SetTargetProperty(doubleAnimationx, "(UIElement.RenderTransform).(CompositeTransform.TranslateX)");
        sb.Children.Add(doubleAnimationx);
        sb.Begin();
    }
Run Code Online (Sandbox Code Playgroud)

XAML:

<Grid  IsSwipeEnabled="True" ItemsSource="{Binding Source={StaticResource cvs1}}" ItemClick="ItemsGridView_ItemClick_1"
                            x:Name="ItemsGridView" Margin="50,20,116,46" SelectionMode="None" IsItemClickEnabled="True"
                            AutomationProperties.AutomationId="ItemsGridView" 
                            AutomationProperties.Name="Grouped Items">
                <Grid.ItemTemplate>
                    <DataTemplate>
                        <Grid Height="250" VariableSizedWrapGrid.ColumnSpan="{Binding ColumnSpan}" Margin="2">
                            <Image ImageOpened="Image_ImageOpened_1" Stretch="UniformToFill" Source="{Binding ImageHQ}" >
                                <Image.RenderTransform>
                                    <CompositeTransform />
                                </Image.RenderTransform>
                            </Image>
                            <StackPanel VerticalAlignment="Bottom" Background="#AA000000"> …
Run Code Online (Sandbox Code Playgroud)

animation xaml storyboard windows-8 windows-runtime

10
推荐指数
2
解决办法
1万
查看次数

关于如何将m38u文件流式传输到Metro风格应用程序(WinRT)的指导

我正在将m38u文件传输到直播电视频道.我试图打开这些文件(因为它们只是媒体类型为"MPEG/TS"的文件列表)并构建了一个播放列表.但视频之间的转换很糟糕,在开始下一个视频之前会暂停一两秒.

我不介意编写一些服务器端代码来解决这个问题,但我需要一些指导.

silverlight wpf live-streaming windows-runtime

6
推荐指数
1
解决办法
792
查看次数

在Windows Phone 8上更改Map控件上的语言

当我将手机的语言更改为任何语言(例如法语)时,地图中的标签将更改为法语.

是否可以在Map Control中强制使用某种语言?我尝试使用Map的"Language"属性并将其更改为"fr"和"fr-FR".它没有用.

map here-api windows-phone-8

6
推荐指数
1
解决办法
1017
查看次数

如何在 Xamarin.Forms 中实现连接动画?

在 UWP 中,您可以在页面导航上创建出色的过渡: 在此处输入图片说明

https://docs.microsoft.com/en-us/windows/uwp/design/motion/connected-animation

甚至颤振也有类似的东西:https : //flutter.dev/docs/development/ui/animations/hero-animations

我们如何在 Xamarin 上创建这样的东西?

xaml xamarin uwp

5
推荐指数
1
解决办法
1156
查看次数

在StorageFile(WinRT)中获取存储文件的URI

我正在构建一个metro应用程序,我想在将它保存在StorageFile中后得到一个Uri的图像,这是我的代码:

StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync("samplefile.dat", CreationCollisionOption.ReplaceExisting);

IRandomAccessStream raStream = await file.OpenAsync(FileAccessMode.ReadWrite);
IOutputStream outStream = raStream.GetOutputStreamAt(0);
DataWriter dw = new DataWriter(outStream);
dw.WriteBytes(img); // I'm saving array of bytes
await outStream.FlushAsync();
Run Code Online (Sandbox Code Playgroud)

我读了这篇文章:

它说我可以使用ms-appdata访问存储的文件,所以我尝试了这个:

Uri uri = new Uri("ms-appdata:///samplefile.dat", UriKind.Absolute);
Run Code Online (Sandbox Code Playgroud)

但它不起作用

xaml isolatedstoragefile windows-8 windows-runtime

3
推荐指数
1
解决办法
6399
查看次数

使用 Windows Azure 创建网络爬虫

我想创建一个网络爬虫,它获取某个网站的内容并将其保存在 blob 存储中。在 Azure 上执行此操作的正确方法是什么?我应该启动一个 Worker 角色,并使用 Thread.Sleep 方法使其每天运行一次吗?

我还想知道,如果我使用这个辅助角色,如果我创建它的两个实例,它会如何工作?我注意到使用“Compute Emulator UI”命令“Trace.WriteLine”同时适用于两个实例,有人可以澄清这一点吗?

我使用 php 创建了相同的爬虫,并将 cron 作业设置为每天启动一次脚本,但需要 6 个小时才能获取全部内容,这就是我想使用 Azure 的原因。

web-crawler azure azure-worker-roles

3
推荐指数
1
解决办法
6039
查看次数