win-universal-app

Ignoring duplicate tile updates in Windows 10 Universal App

﹥>﹥吖頭↗ 提交于 2019-12-11 13:42:10
问题 I'm implementing queuing in medium, wide and large tiles in my universal app to show top 5 news headlines. In large tile, I'm showing 2 headlines at a time, so if there are 5 headlines, there will be 5 medium and wide tiles, but 3 large tiles in the queue. Since while updating tiles, we need to provide payload for all tile sizes, I need to specify to ignore the large tile payload from the 4th and 5th update. There is a contentId attribute in binding element, that we can (theoreticaly) use for

CameraCaptureUI control size of popup?

£可爱£侵袭症+ 提交于 2019-12-11 13:28:24
问题 A couple of questions about CameraCaptureUI. 1) Can I control the size/placement of the popup? It pops up very small on my Win10 tablet and it's really annoying to enlarge it each time the app needs to take a photo! 2) I am trying to create photos that are equivalent in quality to the built-in camera app, but I had a lot of trouble with this. Only by playing around with the croppedSizeInPixels could I get anything larger that seemed decent quality. Can someone explain why this helped and if

Incorrect Byte[] from WriteableBitmap in C# UWP10

别说谁变了你拦得住时间么 提交于 2019-12-11 13:08:45
问题 I want to get the base64 string from WriteableBitmap. I believe the byte[] to be incorrect. Because: The code for creating image from base64 is working. Tested this when sending base64 string from file. However i can't see anything when i'm using my function for WriteableBitmap to base64. My attempts so far. public static string GetByteArrayFromImage(WriteableBitmap writeableBitmap) { Stream stream = writeableBitmap.PixelBuffer.AsStream(); MemoryStream memoryStream = new MemoryStream();

Xaml Grid Visibility Transitions

荒凉一梦 提交于 2019-12-11 13:07:10
问题 Since I cannot find any official documentation about it I need to ask this questions. Is there any way to animate grids on visibility change? I have tried adding TransitionCollection s to grids but it works only the first time that grid initialized. I also tried this answer but it also wont work because Grid.Loaded event fires even if grid is collapsed. 回答1: You can use event Loaded(). Just add attributes in XAML x:DeferLoadStrategy="Lazy" Visibility="Collapsed" and element will be completely

Converting a .Net dll to a .Net Core dll

混江龙づ霸主 提交于 2019-12-11 12:49:48
问题 We have this application written in Visual Basic (Windows Form Application) and I am tasked to convert it to Universal App (UWP). the said application uses a dll that is specific to .Net Framework so in order to convert it into a Universal App, I need to have a dll that is targeting .Net Core. Is there a way to do it? I know nothing in dll stuffs, can someone enlighten me up? Any help will be appreciated. 回答1: Your best bet in this case is the Desktop App Converter. In summary, what that does

HttpBaseProtocolFilter.ClearAuthenticationCache() throw 'System.InvalidCastException'

社会主义新天地 提交于 2019-12-11 12:37:50
问题 I create an simple uwp app. The sdk version is Universal Windows 10.0.14332.0. The app does nothing, only call the function "HttpBaseProtocolFilter.ClearAuthenticationCache()". But when I call the "HttpBaseProtocolFilter.ClearAuthenticationCache()", an exception throwed: An exception of type 'System.InvalidCastException' occurred in App2.exe but was not handled in user code Additional information: Unable to cast object of type 'Windows.Web.Http.Filters.HttpBaseProtocolFilter' to type 'Windows

Labeled ComboBox in Windows 10 Universal App

a 夏天 提交于 2019-12-11 12:04:07
问题 similar to my Labeled TextBox, which issues are resolved in: Labeled TextBox in Windows Universal App I got two issues in my Labeled Combobox, but first the Code: Generic.xaml : <Style TargetType="template:LabeledComboBox"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="template:LabeledComboBox"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Text="{TemplateBinding Label}" FontWeight="Bold"

Can't build JavaScript universal Windows app

十年热恋 提交于 2019-12-11 12:04:00
问题 I have started a new project - javascript - windows universal app and without changing anything or adding any code I try to build it and run it but it wont with the following error: Error : DEP0700 : Registration of the app failed. error 0x80080204: App manifest validation error: The document root element m:Package must be defined in the http://schemas.microsoft.com/appx/2010/manifest namespace. (0x80080204) App7 A similar issue was reported here and I tried renewing the license with project

Universal application with visual studio online

巧了我就是萌 提交于 2019-12-11 11:51:22
问题 I'm currently setting up project in Visual Studio Online (VSO) and having troubles with setting up automated build. My solution contains projects targeted as Universal Windows VSO uses msbuild to run my project. During build I see strange error messages like: Error CS0518: Predefined type 'System.Void' is not defined or imported Error CS0518: Predefined type 'System.Object' is not defined or imported Error CS0246: The type or namespace name 'Uri' could not be found (are you missing a using

Positon of DropDown list of ComboBox in UWP

六眼飞鱼酱① 提交于 2019-12-11 11:13:28
问题 I have a ComboBox in my universal application, I want DropDown list open below of my combo not over it. how can I change position of DropDown list of ComboBox in UWP ? 回答1: The DropDown of a ComboBox is actually a Popup , and the position where to show this Popup is defined in the code behind, and we can't access to it. One workaround is finding this Popup and relocate it when it is opened, but using this method we need to calculate the VerticalOffset property each time when it is opened, and