win-universal-app

UWP InkCanvas Out Of Memory

痴心易碎 提交于 2019-12-12 17:13:04
问题 I'm using MVVMLight to create a questionnaire and running into memory issues when rendering the InkCanvas controls. Here's a watered down example of what I am working with: QuestionVm public Question Question { get; set; } public HandwritingControl HandwritingControl { get; set; } QuestionnaireVm public List<QuestionVm> currentQuestions; public List<QuestionVm> CurrentQuestions { get { return currentQuestions; } set { currentQuestions = value; RaisePropertyChanged(); } } Questionnaire.xaml.cs

Image in the interface is not updated after WritableBitmap has changed

别等时光非礼了梦想. 提交于 2019-12-12 16:20:35
问题 I am trying to update the image by drawing circles every time mouse pointer is moved. The pixelBuffer is stored in map object and updated with CircleFilledWithGradientMethod() . I load the pixel buffer in to WriteableBitmap Bitmap and then try to display it by setting image source of an image element in my XAML UI to Bitmap. What happens, is that when I first move my mouse, I see the very first 2 circles drawn but then as I move the mouse, the image does not get updated. Why could that be? Is

PointerDownThemeAnimation application stops WP8

白昼怎懂夜的黑 提交于 2019-12-12 15:52:16
问题 I'm confused why my app is closing, I have added the PointerDownThemeAnimation and it works fine but only one time, when I try to click it again the aplication stops. Why? Here is my code: private void staryrynek1(object sender, PointerRoutedEventArgs e) { pointerDownStoryboard.Begin(); } private void staryrynek(object sender, PointerRoutedEventArgs e) { pointerUpStoryboard.Begin(); this.Frame.Navigate(typeof(StaryRynek)); } and <Grid x:Name="staryrynek_grid" Margin="10,92,10,0"

Separate ResourceDictionary for each project type

余生颓废 提交于 2019-12-12 15:28:32
问题 I've created a ResourceDictionary in my Shared project without problem. However, some of my styles will be very particular* to Windows Phone 8.1 and not used in Windows 8.1. As there's no App.xaml in the Windows Phone project, how do I specify a ResourceDictionary just for Windows Phone? *In addition to different sizes and margins, extensive use of PhoneAccentBrush which is obviously not available on Windows Store Apps. Or, if the Shared ResourceDictionary is the preferred method, how do I

Unable to load DLL 'sqlite3.dll': The specified module could not be found in UWP Xamarin.Forms

孤人 提交于 2019-12-12 13:51:42
问题 I am trying to write app for UWP Xamarin.Forms with use of Azure Mobile SQLiteStore package. I struggle with SQLitePCL package which is dependency of that mentioned above package. In my UWP project I referenced extension SQLite for Universal Windows Platform also it's dependency Microsoft.VCLibs Error is : Unable to load DLL 'sqlite3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Android app works fine, only UWP has this problem crashing app as soon as it

Dynamically add UI elements to StackPanel after button pressed

情到浓时终转凉″ 提交于 2019-12-12 13:34:21
问题 This is my first question here :) I'm not a professional programmer, I'm only 18 and I haven't studied at university or anything, so please don't hate me if I say something stupid :p I'm making (or rather trying to make...) an app for Windows 10 UWP and a piece of my xaml code looks like this: <Grid Grid.Row="1" Grid.Column="1"> <Grid.RowDefinitions> <RowDefinition Height="12"/> <RowDefinition Height="Auto"/> <RowDefinition Height="12"/> </Grid.RowDefinitions> <Rectangle Margin="0" Grid.Row=

Navigating to page increases memory usage Windows Universal 8.1

时光毁灭记忆、已成空白 提交于 2019-12-12 13:17:48
问题 I'm creating a Windows Universal 8.1 application. Everytime I navigate to a page and then navigate back and then to the page again a new instance of the page is being held in memory. Obviously the garbage collector frees the memory after a while, however I'd rather not use the memory if it's unneeded. Is there a way to recycle or dispose of these pages? 回答1: In Windows Uriversal App, We can use NavigationCacheMode to recycle a page. It can be set in the constructor of the page. For example,

Can't open Windows Phone project in Windows 8.1+ Universal App using Visual Studio 2015 RC

心已入冬 提交于 2019-12-12 12:05:06
问题 Trying to open a Universal App for Windows 8.1+ in the Visual Studio 2015 RC and everything aside from the Windows Phone project opens fine. Error Message: "The application which this project type is based on was not found." Link given by message - Visual Studio 2013 Compatibility The project file says VS 12 so I'm pretty sure I created it in VS 2013. Is there any way to open the project without recreating the entire solution? 回答1: Grabbed the VS 2015 RC ISO and started up the install. I

Reading the response from HttpClient.GetStringAsync

本秂侑毒 提交于 2019-12-12 11:53:13
问题 I am working on a Windows Universal app using the new runtime for Windows Phone/Store apps. I am sending a request to a server using the following code and expecting a HTML response back. However when I return the string and display it in the UI, it just says: "System.Threading.Tasks.Task'1[System.String]" It's not showing me the actual HTML/XML that should be returned. When I use the same URL in a normal Windows Forms app, it's returning the data I expect but the code I use there is

how can i use the file that is generated by xsd.exe in windows 10 universal app

馋奶兔 提交于 2019-12-12 11:29:07
问题 I am generating .cs files from .xsd files using xsd.exe. But when I am adding the files to windows 10 universal blank app, I was getting error as "missing an assembly reference" for System.SerializableAttribute() and System.ComponentModel.DesignerCategoryAttribute(‌​"‌​code"). I fixed this by @t.ouvre's trick. Then there were no errors in any of the particular line of the code but when i am building the code i am getting an error saying that " Cannot find type System.ComponentModel