图像在编辑模式下可见,但在运行模式下图像不可见

时间:2017-05-28 23:33:05

标签: c# image uwp

简单的案例。需要将图像添加到我的按钮。虽然编码在屏幕上可见,但在本地机器模式下运行时它是不可见的。我试过png和jpg的照片。即使在按钮外面的图像的情况下也有这个问题。

     <RelativePanel Grid.Column="2">
                <Button Grid.Column="2" x:Name="vkIcon"
                        RelativePanel.AlignRightWithPanel="True" 
                        Background="White"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch" BorderThickness="0" >
                    <StackPanel>
                        <Image Source="\Assets\Icons\ME.jpg" Height="48" 
                                      Width="48"/>
                    </StackPanel>
                </Button>
                <Image Source="\Assets\Icons\ME.jpg" Visibility="Visible"/>
            </RelativePanel>

编码

enter image description here

RunningApp

enter image description here

0 个答案:

没有答案
相关问题