我正在使用GitHub来托管我正在开发的开源Windows 10应用程序.我不小心gitignored我的应用程序的PFX文件,所以当我删除我的本地副本并重新克隆回购时,我没有MyApp_TemporaryKey.pfx
文件.现在Visual Studio抱怨这个,我无法构建解决方案.
如何重新生成此文件以便我可以再次运行该应用程序?谢谢你的帮助.
我有一个要求,我需要从UWP中的xaml WebView中的app data文件夹加载html文件.Html文件也引用另一个文件夹("99/js /")中的不同Js文件.任何有UWP知识的人都会指导我.在此先感谢我使用以下代码,Browser
是我的WebView.
var Uri = new Uri("ms-appdata:///Local/Downloads/99/index.html");
Browser.Navigate(Uri);
Run Code Online (Sandbox Code Playgroud)
我在99文件夹中的文件夹结构是:
udapte
我正在尝试在离线加载html文件到WebView没有加载相同的html文件正在加载服务器URL.
我想打开当前应用程序的Windows应用商店(因此用户可以对应用进行评级/评论).在这样做时,我需要获取App ID.但是,我在SO中看到这篇文章说CurrentApp.AppId
需要花费很多时间,并提供Package ID作为替代.我以前从未在Windows应用商店上发布应用,如果没有在Windows应用商店发布/发布的应用,则无法立即测试.
任何人都可以帮我确认以下两行代码吗?
//var appId = CurrentApp.AppId.ToString();
var appId = Windows.ApplicationModel.Package.Current.Id;
Run Code Online (Sandbox Code Playgroud) windows-store-apps win-universal-app uwp windows-10-universal
如何在UWP中将图标设置为TitleBar(Window)?
TitleBar图标示例:
我的Universal-Windows-App存在问题:我正在为用户提供更改应用语言的选项.
对于这个提议,我为每种语言"Ressources.resw"文件,并通过我的XAML代码referes创建x:UID=
部分资源.通过primaryLanguageOverride更改语言
这在我的环境中工作正常.但是,如果我通过部署应用程序Store->Create App Packages
然后尝试在(不同的)Windows-10计算机上侧载应用程序,则语言更改无法正确反映.例如,日期格式正在正确更改,但指向资源文件的属性未正确更改.
但是:如果用户安装了相应的Windows-Language-Pack,则该应用程序正常运行.我的猜测是,Windows将检查它将使用系统上安装的语言部署的语言资源文件:
我怎么能避免这个?
我是Universal app开发的新手.任何人都可以帮助我编写代码,
我在通用应用程序中使用Web视图控件加载了一个网站.我想从同一个网站上读取一些控制值.
我的标签控件ID是网站上的'lblDestination'.
我在通用应用程序中访问此类似的
MAinPage.xaml
<WebView x:Name="Browser" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Loaded="Browser_Loaded"
NavigationFailed="Browser_NavigationFailed">
</WebView>
Run Code Online (Sandbox Code Playgroud)
MAinPage.xaml.cs
Browser.InvokeScript("eval", new string[] { "document.getElementById('lblDestination')" }).ToString()
Run Code Online (Sandbox Code Playgroud)
这是读取浏览器控件值的正确方法吗?我正在使用模拟器来测试这个应用程序,那么模拟器是否会产生问题?
我想在UWP中创建范围滑块.我没有找到任何例子.只有单个滑块,但我想要它
.
有谁知道我该怎么办?请帮我.
我试图在我的Windows 10 UWP应用程序中进行微软登录.
var authenticator = new Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator();
var serviceTicketRequest = new Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest("wl.basic", "DELEGATION");
System.Diagnostics.Debug.WriteLine("Signing in...");
var authResult = await authenticator.AuthenticateUserAsync(serviceTicketRequest);
Run Code Online (Sandbox Code Playgroud)
这是我正在尝试的代码.我得到了例外authenticator.AuthenticateUserAsync
的例外
抛出异常:mscorlib.ni.dll中的"System.Exception"
附加信息:请求身份验证令牌的应用程序已禁用或配置不正确.(HRESULT的例外情况:0x80860003)任何人都知道为什么会发生这种情况?
我需要从TimePicker-Controll Flyout中删除底部按钮.这种风格做到了,但我无法看到魔法发生在哪里:
<Style x:Key="TimePickerStyle1" TargetType="TimePicker">
<Setter Property="IsTabStop" Value="False" />
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
<Setter Property="Foreground" Value="{ThemeResource TimePickerForegroundThemeBrush}" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TimePicker">
<Border x:Name="LayoutRoot"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="0">
<Grid Margin="{TemplateBinding Padding}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ContentPresenter x:Name="HeaderContentPresenter"
Content="{TemplateBinding Header}"
ContentTemplate="{TemplateBinding HeaderTemplate}"
FlowDirection="{TemplateBinding FlowDirection}"
FontWeight="{ThemeResource TimePickerHeaderThemeFontWeight}"
Foreground="{ThemeResource TimePickerHeaderForegroundThemeBrush}" />
<StackPanel Grid.Row="1"
Margin="0,0,47,0"
Background="#FFFBFBFB"
Orientation="Horizontal">
<Border x:Name="FirstPickerHost" BorderBrush="#FFFBFBFB">
<ComboBox x:Name="HourPicker"
MinWidth="50"
Background="#FFFBFBFB" …
Run Code Online (Sandbox Code Playgroud)