小编Amy*_*SFT的帖子

如何将Windows Phone 8.1应用程序部署到Windows 10移动设备?

无法将Windows Phone 8.1应用程序(XAML,appx)部署到运行Windows 10 Mobile v10512的Nokia Lumia 920.部署失败了:

Error : DEP0001 : Unexpected Error: Element not found. (Exception from HRESULT: 0x80070490) 
Run Code Online (Sandbox Code Playgroud)

将WP8.1应用程序部署到WP8.1设备可以正常工作.在该Windows 10移动设备上部署Windows 10 UWP应用程序也可以正常工作.甚至在Windows 10 Mobile Emulator上部署WP8.1应用程序也能正常工作.

我的机器运行Windows 10 x64,Visual Studio 2015与Windows 10 SDK v10240,所有RTM.

c# windows-phone-8.1 win-universal-app windows-10 windows-10-mobile

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

从 Windows 10 powershell 设置“旁加载应用程序”(更新和安全 > 为开发人员)

是否可以从 Windows 10 Anniversary 上的 powershell 脚本(只是简单的“旧”Win10)设置“更新和安全>面向开发人员”属性“侧载应用程序”?

powershell updates windows-store-apps sideloading windows-10

4
推荐指数
1
解决办法
4488
查看次数

为ContentDialog配置叠加背景颜色

我正在使用黑暗主题为通用Windows平台编写一个应用程序,我注意到虽然我在使用ContentDialog该类显示模式对话框时正确地将所请求的主题设置为暗,但覆盖层会使整个页面变暗而不是变暗它.

在显示对话框之前

叠加前的页面截图

显示对话框:

显示叠加后的页面截图

由于没有ContentDialog控制叠加层的属性,如何覆盖正在使用的颜色?

xaml windows-runtime winrt-xaml windows-10 uwp

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

如何在XAML中的TextBlock末尾添加空格?(Windows 10,UWP)

Text="Some text:" 我想在冒号之后添加一个空格.

我尝试过xml:space="preserve", 但似乎都没有效果.

我知道可以通过添加保证金来完成,但我很好奇是否有另一种方式.

xaml windows-runtime winrt-xaml windows-10 uwp

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

如何在uwp中鼠标悬停时增加gridviewitem的大小?

通常在鼠标悬停时,我们会得到一个灰色边框,突出显示鼠标悬停时的 gridviewitem。但不是这样,我会稍微想增加 gridviewitem 的大小,就像一点点弹出一样,当鼠标离开时,将其恢复到正常大小。请注意,大小/弹出窗口的增加不应干扰其余的 gridviewitems。

我的代码目前非常基本:

<GridView x:Name="contentGV" Margin="18,10,18,18"  
                          Width="Auto">
    <GridView.ItemContainerStyle>
        <Style TargetType="GridViewItem">
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>
    </GridView.ItemContainerStyle>
    <GridView.ItemTemplate>
        <DataTemplate>
            <Grid>
                <StackPanel Margin="5,5,25,5" MaxWidth="145" Height="220">
                    <Grid Background="{Binding LogoBG}" CornerRadius="25" Height="120" Width="120">
                        <Border Height="120" Width="120" CornerRadius="25">
                            <Border.Background>
                                <ImageBrush ImageSource="{Binding LogoUrl}" />
                            </Border.Background>
                        </Border>
                    </Grid>
                    <TextBlock x:Name="Title" 
                                   MaxLines="2" Width="120"
                                   Text="{Binding Title}" TextWrapping="WrapWholeWords"/>

                </StackPanel>
            </Grid>
        </DataTemplate>
    </GridView.ItemTemplate>
</GridView>
Run Code Online (Sandbox Code Playgroud)

c# xaml windows-runtime win-universal-app windows-10-universal

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

为什么我不能使用pack URI查找资源但可以使用相对路径?

我的项目的Styles文件夹中有myresource.xaml.我可以使用相对URI(第一行)加载它,但不能使用pack URI(第二行)加载它.为什么?

<ResourceDictionary Source="/Styles/myresource.xaml"/>
<ResourceDictionary Source="pack://application:,,,/Styles/myresource.xaml"/>
Run Code Online (Sandbox Code Playgroud)

.net xaml win-universal-app windows-10 windows-10-universal

0
推荐指数
1
解决办法
997
查看次数