让bing地图全部铺设(Make bing maps streetch all the may)

我怎样才能让bing地图占据下面的所有位置。

第一行是名称第二行是姓氏:第三行是地图。

我希望bing map可以从第三行到最后一行。 地图应位于第1列和第2列

    <!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
        <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
        <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
    </StackPanel>

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">First name:</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="0">Last name:</TextBlock>
        <TextBlock Grid.Row="0" Grid.Column="1">name</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="1">name</TextBlock>
        <my:Map Grid.Row="2" Grid.Column="1" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    </Grid>
</Grid>

How can I make that bing maps take all place below.

First row is name Second row is last name: Third name is map.

I want that bing maps takes everything from third row to all the way down. Maps should be in column 1 and column 2

    <!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto"/>
        <RowDefinition Height="*"/>
    </Grid.RowDefinitions>

    <!--TitlePanel contains the name of the application and page title-->
    <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
        <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/>
        <TextBlock x:Name="PageTitle" Text="page name" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
    </StackPanel>

    <!--ContentPanel - place additional content here-->
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="200"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0">First name:</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="0">Last name:</TextBlock>
        <TextBlock Grid.Row="0" Grid.Column="1">name</TextBlock>
        <TextBlock Grid.Row="1" Grid.Column="1">name</TextBlock>
        <my:Map Grid.Row="2" Grid.Column="1" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
    </Grid>
</Grid>

原文:https://stackoverflow.com/questions/20489442
2022-05-14 19:05

满意答案

当您执行清除缓存时,Symfony会遭受同样的痛苦。 为了避免这个问题,我们预先加热了缓存。 考虑以下:

  • 创建临时目录(确保设置正确的权限):cache_temp

  • 添加代码以识别触发器。 如果触发器可用,则将cache dir设置为cache_temp(而不是cache_current)。 示例触发器通过http:http: //mydomain.com?prewarm=1

  • 代码将知道在cache_temp中生成所有缓存文件而不是cache_current

  • 将cache_current重命名为cache_old

  • 将cache_temp重命名为cache_current

  • 删除cache_old


Symfony suffers from this same affliction when you do a clear cache. To circumvent this issue we pre-warmed the cache. Consider the following:

  • Create temp directory (be sure to set correct permissions): cache_temp

  • Add code to recognize a trigger. If trigger is available set cache dir to cache_temp (instead of cache_current). Example trigger via http: http://mydomain.com?prewarm=1

  • The code will know to generate all cache files in cache_temp and not cache_current

  • Rename cache_current to cache_old

  • Rename cache_temp to cache_current

  • Delete cache_old

相关问答

更多

以最少的停机时间部署Java webapps的最佳做法?(Best practices for deploying Java webapps with minimal downtime?)

已经注意到,当将更改推送到WAR文件时,rsync不能正常工作。 这样做的原因是WAR文件本质上是ZIP文件,默认情况下是使用压缩成员文件创建的。 成员文件的小变化(压缩之前)导致ZIP文件中的大规模差异,从而导致rsync的增量传递算法无效。 一个可能的解决方案是使用jar -0 ...创建原始的WAR文件。 -0选项告诉jar命令在创建WAR文件时不压缩成员文件。 然后,当rsync比较WAR文件的旧版本和新版本时,增量传输算法应该能够创建小的差异。 然后安排rsync以压缩形式发送diff(...

如果日志文件有重复,请在日志文件中获取作业停机时间(Getting Job Downtime in a Logfile if it has a duplicate)

cat tmp.log Job ABC ran at 5:00 Job ABC abended at 5:03 It was restarted at 5:05 Job ABC abended again at 5:08 I was restarted again at 5:10 Job ABC completed at 5:15 Another Job ABC ran at 6:00. It abended at 6:03. It was restarted at 6:05 J...

Azure VIP交换停机时间(Azure VIP Swap downtime)

理论是没有停机时间。 但是,有多种因素可能导致停机。 其中一些因素是: Microsoft DNS服务器上的DNS缓存( <guid_based_staging_domain>.cloudapp.net与[nameit].cloudapp.net的记录更改) - 即使更改直接在DNS服务器上,也有与这些记录关联的TTL,并且更改不能立竿见影 需要应用程序重新编译 - 您的staging部署可能需要重新编译ASP.NET页面,也称为“冷启动”; 可能还有其他因素 由于VIP Swap的执行方式,请检...

如何监控(非零停机时间)Unicorn?(How do I monitor (non-zero-downtime) Unicorn?)

发动机场使用Monit ,它是一个非常小的实用程序,可以完全满足您的需求! 这是独角兽的配置: check process unicorn with pidfile /path/to/unicorn.pid start program = "command to start unicorn" as uid yourUID and gid yourGID stop program = "command to stop unicorn" as uid yourUID a...

亚马逊RDS多可用区缩短停机时间(Amazon RDS Multi-AZ scaling downtime)

在多可用区设置中,您对实例所做的任何更改都将首先在备用实例上完成。 然后,将发生故障转移(在此阶段,您的应用程序将无法连接到数据库),并且更改将应用于主实例。 故障转移是唯一的停机时间。 更多信息: http : //docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html In a Multi-AZ setup, any change you make to the instance will first be do...

App Engine停机时间(App Engine downtime)

简短的答案 下午与清晨停机。 数据存储区在下午比上午凌晨(太平洋时间;包括放入,更新和删除可用性)更频繁地写入大约20-30%。 注意 :我确信谷歌希望在非高峰时段发生停机。 因此,我希望他们会继续尽量减少停机时间,或者尽可能在非高峰时段安排时间。 停机趋势。 数据存储区不可用的15分钟周期数一直在减少。 在过去的366天中,每天平均有3.8个15分钟的数据存储空间。 在过去的200天里,这一数字每天减少60%至2.3。 过去几个月的写入停机时间确实相当不错 - 从3月1日起,每天写入停机时间不到...

平面文件缓存,零停机时间(Flat file caching with zero downtime)

当您执行清除缓存时,Symfony会遭受同样的痛苦。 为了避免这个问题,我们预先加热了缓存。 考虑以下: 创建临时目录(确保设置正确的权限):cache_temp 添加代码以识别触发器。 如果触发器可用,则将cache dir设置为cache_temp(而不是cache_current)。 示例触发器通过http:http: //mydomain.com?prewarm=1 代码将知道在cache_temp中生成所有缓存文件而不是cache_current 将cache_current重命名为ca...

RAILS资产管道:“佣金资产:清洁”停机时间(以及避免它的方法)(RAILS assets pipeline: `rake assets:clean` downtime (and ways to avoid it))

rake assets:clean应该在本地机器上运行,而不是在生产机器上运行,所以它不应该影响停机时间。 当您推送更改时,生产计算机上的文件将被覆盖,除非您先清除旧的资产,否则不会对预编译资产进行更改。 这就是rake assets:clean就是为了。 一般来说,推送不应该导致停机,但它可能会降低您的应用程序,具体取决于您的设置。 rake assets:clean should be run on your local machine, not on your production mach...

我希望在CloudBees上实现零停机时间 - 但我的应用程序需要预热(I want zero downtime deploys on CloudBees - but my app needs to warm up)

您想要的,但可能没有意识到 - 是蓝绿色部署,您总是有一个活动/备用应用程序对 - 并始终部署到备用数据库,准备好时切换。 请参阅此处以获得更好的描述。 嗯,好消息 - 这里有一个插件 。 您甚至可以将其作为Jenkins构建的一部分进行自动化,例如,在自由式作业脚本中执行此类操作(假设您已根据上述链接设置了应用程序: # INSTALL AND CONFIGURE BEES SDK export BEES_HOME=/opt/cloudbees/cloudbees-sdk/ export PAT...

AlwaysOn TDE和停机时间(AlwaysOn with TDE and Downtime)

我已经启用了TDE几次。 加密过程中可以使用该数据库。 它是I / O(它必须读取整个数据库并将其写回)和CPU(您正在加密)密集,因此您可能仍希望在维护窗口中执行此操作。 您可以查看sys.dm_database_encryption_keys以跟踪进度和状态。 至于故障转移到次要加密,我不明白动机。 具体来说,一旦你进行了故障转移,那么次要的是现在的主要内容,无论你想在主要设备上做什么都要避免,这是不可避免的。 关于次要的一件事是确保您用于启用TDE的证书存在于AG中的所有节点上。 我的建议是...

相关文章

更多

【云图】如何设置微信里的全国实体店地图?

商家福利!如何提高微信公众平台的粉丝数?如何更好地与粉丝互动?如何为客户提供更好的网络服务? 答案是, ...

【云图】如何制作附近实体店的地图?-微信微博支付宝

摘要: 附近连锁店地图与全国连锁店地图,最大的区别就是: 1、附近连锁店地图需要先定位,然后搜索附近的 ...

【云图】如何制作附近实体店的地图?-微信微博支付宝

摘要: 附近连锁店地图与全国连锁店地图,最大的区别就是: 1、附近连锁店地图需要先定位,然后搜索附近的 ...

[How to] Make custom search with Nutch(v 1.0)?(转)

http://puretech.paawak.com/2009/04/29/how-to-make-c ...

地图编辑

我要做一个模块。他主要是做地图这边的。 他主要就是把自己的一百多张图片从数据库读出来拼在一起然后可以 ...

小记 百度地图 soso地图 经纬度偏移

项目里遇到了这么个问题,数据库原有数据是微信上用的,所以是soso地图坐标, 但是现在要做百度地图,坐 ...

win8系统intellij输入中文问题

用上新的intellij,不过在输入汉字时出现后面的被删除,网上找了,没有找到解决方案,只有自己解决了 ...

solr简介(二)

Solr In Action 中文版 第一章 (二) Solr 到底是什么? 在本节 ...

微信公众号怎么添加腾信地图?

微信公众号怎么添加腾信地图?经过5分钟的探索,郑州喝彩彩印包装有限公司小编学会了,下面教大家具体操作步 ...

android中如何实现双缓冲铺地图(卡马克算法)

想用卡马克算法来铺地图, 现在一点头绪也没用 问问大家~~

最新问答

更多

获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)

我用Google搜索了一个解决方案。 “EnumDisplayModeProvider”是我自己设置网站的各种模式的枚举。 public EnumDisplayModeProvider GetDisplayModeId() { foreach (var mode in DisplayModeProvider.Instance.Modes) if (mode.CanHandleContext(HttpContext)) {

如何通过引用返回对象?(How is returning an object by reference possible?)

这相对简单:在类的构造函数中,您可以分配内存,例如使用new 。 如果你制作一个对象的副本,你不是每次都分配新的内存,而是只复制指向原始内存块的指针,同时递增一个也存储在内存中的引用计数器,使得每个副本都是对象可以访问它。 如果引用计数降至零,则销毁对象将减少引用计数并仅释放分配的内存。 您只需要一个自定义复制构造函数和赋值运算符。 这基本上是共享指针的工作方式。 This is relatively easy: In the class' constructor, you allocate m

矩阵如何存储在内存中?(How are matrices stored in memory?)

正如它在“熵编码”中所说的那样,使用Z字形图案,与RLE一起使用,在许多情况下,RLE已经减小了尺寸。 但是,据我所知,DCT本身并没有给出稀疏矩阵。 但它通常会增强矩阵的熵。 这是compressen变得有损的点:输入矩阵用DCT传输,然后量化量化然后使用霍夫曼编码。 As it says in "Entropy coding" a zig-zag pattern is used, together with RLE which will already reduce size for man

每个请求的Java新会话?(Java New Session For Each Request?)

你是如何进行重定向的? 您是否事先调用了HttpServletResponse.encodeRedirectURL()? 在这里阅读javadoc 您可以使用它像response.sendRedirect(response.encodeRedirectURL(path)); The issue was with the path in the JSESSIONID cookie. I still can't figure out why it was being set to the tomca

css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)

我认为word-break ,如果你想在一个单词中打破行,你可以指定它,这样做可以解决问题: .column { word-break:break-all; } jsFiddle演示。 您可以在此处阅读有关word-break属性的更多信息。 I think word-break, with which you can specify if you want to break line within a word, will do the trick: .column { word-break

无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)

我认为您忘记在分类时间内缩放输入图像,如train_test.prototxt文件的第11行所示。 您可能应该在C ++代码中的某个位置乘以该因子,或者使用Caffe图层来缩放输入(请查看ELTWISE或POWER图层)。 编辑: 在评论中进行了一次对话之后,结果发现在classification.cpp文件中错误地删除了图像均值,而在原始训练/测试管道中没有减去图像均值。 I think you have forgotten to scale the input image during cl

xcode语法颜色编码解释?(xcode syntax color coding explained?)

转到: Xcode => Preferences => Fonts & Colors 您将看到每个语法高亮颜色旁边都有一个简短的解释。 Go to: Xcode => Preferences => Fonts & Colors You'll see that each syntax highlighting colour has a brief explanation next to it.

在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)

你考虑过第三方拼写检查吗? 您可以将在C#中开发的自定义WinForms控件插入访问数据库吗? VB6控件怎么样? 如果你能找到一个使用第三方库进行拼写检查的控件,那可能会有效。 Have you considered a third party spell checker? Can you insert a custom WinForms controls developed in C# into an access database? What about a VB6 control? If

从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)

我有同样的问题,因为我在远程服务器上有两个图像,我需要在每天的预定义时间复制到我的本地服务器,这是我能够提出的代码... try { if(@copy('url/to/source/image.ext', 'local/absolute/path/on/server/' . date("d-m-Y") . ".gif")) { } else { $errors = error_get_last(); throw new Exception($err

从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))

我不确定我完全明白你在说什么。 你能编辑你的帖子并包含你正在做的Subversion命令/操作的特定顺序吗? 最好使用命令行svn客户端,以便容易为其他人重现问题。 如果您只是想获取文件的旧副本(即使该文件不再存在),您可以使用如下命令: svn copy ${repo}/trunk/moduleA/file1@${rev} ${repo}/trunk/moduleB/file1 其中${repo}是您的存储库的URL, ${rev}是您想要的文件的版本。 这将恢复该文件的旧版本,包括最高版本