uwp

Could not load file or assembly 'clrcompression, xamarin forms UWP

会有一股神秘感。 提交于 2019-12-05 07:55:40
During OnLaunched at Xamarin.Forms.Forms.Init(e); the app throws System.IO.FileNotFoundException Could not load file or assembly 'clrcompression, I have the following dependencies "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2", "Newtonsoft.Json": "9.0.1", "System.Collections.Immutable": "1.2.0", "Xamarin.Forms": "2.3.1.114" All the xamarin sample apps for uwp are running without a problem. UPDATE: The exception is now gone, reason unknown. The only known difference is that i added and then removed xlabs dependencies. I think this triggered a rebuild of a broken dependency graph?! It

Zoom content to fit in a UWP WebView

陌路散爱 提交于 2019-12-05 07:22:40
I am trying to implement a zoom to content fit function in a XAML-WebView control inside a UWP app. As the semi-official solution for zooming seems to be using JavaScript, my approach was to dynamically set the zoom CSS-property of the body element. Now the question is to find the right zoom factor. According to the documentation, the WebView uses the Edge browser in document mode. However, in Edge, I found that the document.body.clientWidth -property always returns the document width, regardless of the window size and even the zoom factor. Thus, I set the zoom factor using document.body.style

How can I watch for file changes in a UWP project?

耗尽温柔 提交于 2019-12-05 07:10:22
I am porting my game to UWP from the full desktop .net and one thing I need to work out is how to live load texture, shaders etc... into the UWP version of the game. In the desktop version I use a FileSystemWatcher to do this but FileSystemWatcher doesn't exist in UWP, even on directory's that I have full control over. Is there an equivalent for UWP? What is the best way to implement this with the limited set of API's in UWP? Grace Feng Is there an equivalent for UWP? You can subscribe the ContentChanged event for the queried storage files. For example: List<string> fileTypeFilter = new List

Changing language in UWP doesn't change system features language - only on app restart

▼魔方 西西 提交于 2019-12-05 06:27:09
I have a UWP application. And i have a need to change locale on the fly, so i have this for language changing: Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = language.FourDigitCode; ResourceContext.GetForViewIndependentUse().Reset(); ResourceContext.GetForCurrentView(); But there is a problem that system features language doesn't switch ( only after application relaunch ) how can i fix it? Here is an example: Now i run this code: Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = "lv-LV"; ResourceContext.GetForViewIndependentUse().Reset();

UWP - MediaPlayerElement vs MediaElement

佐手、 提交于 2019-12-05 06:08:10
MediaPlayerElement is replacement for "old" MediaElement . My question is Why ? What is the difference between MediaPlayerElement and MediaElement ? Media Player element uses Media Playback Source in form of MediaSource class which has many methods so it can provide media source by several ways like Streams StorageFiles Uri and some more as well. It can also be rendered on any XAML surface like a grid or a button. these are main upgrades in Media Player element but you can read in detail about all features here . MediaPlayerElement is the evolution of MediaElement . In Windows 10, build 1607

Can't Debug .NET Standard 2.0 DLL in UWP

谁说我不能喝 提交于 2019-12-05 04:26:49
I created a fresh Xamarin Forms solution, upgraded all the NuGets, made sure that the UWP version was targeting build 16299, and made sure the .NET Standard project is targeting 2.0. I ran the project and was able to debug the .NET Standard 2.0 DLL fine. You can download this here but I don't think it will be of any use: https://www.dropbox.com/s/jw13heu98yq2n6x/CleanXF.7z?dl=0 . I then pulled these projects in to another solution, added some references to other projects, and copied and pasted some Xamarin Forms pages etc. in to the new clean projects. I could then compile and run the project,

Using SQLite-NET with UWP

旧街凉风 提交于 2019-12-05 04:17:38
I downloaded the package from NuGet and still there's no SQLite.cs neither SQLiteAsync.cs added to the project, If SQLite-NET is still not supporting VS 2015 RTM, Any possible alternatives? Note that I tried SQLite.NET-PCL and still the same problem. SQLite.NET-PCL shouldn't add those two classes directly to your project files. Did you download the right SQLite.NET-PCL via NuGet? (there's a huge mess when you search for SQLite.NET on NuGet so it's easy to get confused and install the wrong one). Did you install the SQLite VSIX package for Universal App Platform development using Visual Studio

Reference a class library from UWP and ASP.NET 5

╄→尐↘猪︶ㄣ 提交于 2019-12-05 03:34:17
I am trying to create a class library that'll contain common objects (mainly DTOs) of a WebAPI (using ASP.NET 5) and a consuming UWP App. However, I have not yet figured out how to create the class library such that it can be referenced from both other projects. What I have tried so far: First, I tried a Class Library (Package) , which can be found under Web . This type of library can be referenced from the ASP.NET project without problems, but when trying to reference it from the UWP project, I get the following message: A reference to 'ClassLibrary1' could not be added. Next, I tried a Class

UWP Page Transition Animations

China☆狼群 提交于 2019-12-05 03:23:25
I programing in Windows 10 UWP. I have a Frame in Xaml that I would like to have the Page/Content to slide left and off screen when the use navigates away from the page to another page. Any Idea how to do Frame Navigation Animations? JuniperPhoton Try to use build-in animation: protected virtual void SetUpPageAnimation() { TransitionCollection collection = new TransitionCollection(); NavigationThemeTransition theme = new NavigationThemeTransition(); var info = new ContinuumNavigationTransitionInfo(); theme.DefaultNavigationTransitionInfo = info; collection.Add(theme); this.Transitions =

UWP - zooming image (with pinch zoom and double tap), with Flip View

爱⌒轻易说出口 提交于 2019-12-05 03:11:48
I need to show images (using Flip View controll) and allow users to zoom them (with pinch zoom and with double tap) and drag zoomed image. I would like it to be compatible with Flip View (I mean it shouldn't ovveride draging gesture). What is the best way to achieve that? I need to show images (using Flip View controll) and allow users to zoom them (with pinch zoom and with double tap) and drag zoomed image. We can use the ScrollViewer control and UIElement.DoubleTapped event to allow users to zoom the images (with pinch zoom and with double tap) and drag zoomed image. In order to zoom the