r/WPDev • • Feb 27 '17

A style to make your App Bar Toggle Button look like the way Microsoft does • x-post from r/windowsdev

Thumbnail
reddit.com
4 Upvotes

r/WPDev • • Feb 26 '17

From a developer: Why you should forget about Windows Store and Microsoft app ecosystem

Thumbnail
medium.com
21 Upvotes

r/WPDev • • Feb 24 '17

I'm trying to add the ability to have a list of liked songs...

3 Upvotes

I want to have a list of songs that a user liked. I want this list to still be there when the app is opened again after it's closed. How do I do this?


r/WPDev • • Feb 23 '17

[App Request] OpenXcom

6 Upvotes

I don't know if this is the best place to post this, but OpenXcom is something I've wanted to have on WP for a while. Their website says all the code is open-source and fully documented, and that anyone can freely port it to other platforms. I'm not a programmer, but it seems most of the work is already done :)

X-COM is also currently on sale for $1.49, so now is a good time to take a crack at it (OpenXcom is a source-port of X-COM, and requires the gamefiles). I realize I should have posted this when it was given away for free a few weeks ago.. There would probably have been a bigger drive for it then :P


r/WPDev • • Feb 22 '17

Help needed with reading web content via InvokeScriptAsync • xpost r/windowsdev

Thumbnail
reddit.com
5 Upvotes

r/WPDev • • Feb 20 '17

Can't set lockscreen

4 Upvotes

So my music app is supposed to set the currenly playing album as the lock screen image. It did once, but now it won't anymore. I noticed that the documentation says if the file is the same name, it won't set the image. But the image that is supposed to update isn't the same name.

Edit: Never mind. I forgot to close the stream


r/WPDev • • Feb 19 '17

A weird bug

5 Upvotes

So my music app works fine on my laptop, the app only takes up about 110 mb of ram. I run the app on my phone, and the app crashes about 45 seconds from start. The debugger doesn't say anything about an exception. Is it a memory management issue?


r/WPDev • • Feb 18 '17

How to add new preview devices to the XAML Designer

Thumbnail
blog.mzikmund.com
10 Upvotes

r/WPDev • • Feb 18 '17

Sharing an image

1 Upvotes

So I have an image control, and the source is a picture in my image library, and the control's tag is the image path. So I copy the picture into the app's local folder, naming it "image.(file extension) to get ready to share. How do I share the file?


r/WPDev • • Feb 17 '17

UWP can't open file for reading if it's in use, works in non-UWP C#

5 Upvotes

I seem to have hit a brick wall when trying to develop a Windows Store app for the desktop. I'm trying to open a large (100+ MB) log file that another application has open and do real time processing on the latest events as they're written to the file.

With regular, non-sandboxed C#, this is pretty straightforward:

System.IO.FileStream stream = File.Open("LOGFILE PATH HERE", System.IO.FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

Unfortunately, in a UWP, I get "UnauthorizedAccessException" whenever I try to open a file that's in use by another app. I've tried every API in every combination I could find, but have had zero luck, so I've come here for some suggestions.

Some of what I've tried:

Windows.Storage.Pickers.FileOpenPicker picker = new Windows.Storage.Pickers.FileOpenPicker();
picker.ViewMode = Windows.Storage.Pickers.PickerViewMode.List;
//Prompt the user to open the log file:
Windows.Storage.StorageFile logFile = await picker.PickSingleFileAsync();
picker.FileTypeFilter.Add(".txt");

//This won't work in any case, because it doesn't use the handle that the user picked,
// so the UWP sandboxing blocks it:
new FileStream(logFile.Path, FileMode.OpenOrCreate, FileAccess.Read);

//These DO WORK, but they buffer the entire 100+ MB every time I call one of them, so the app
// will use excessive resources if I try to do it multiple times a second:
await FileIO.ReadBufferAsync(logFile);
await FileIO.ReadLinesAsync(logFile);

//These work if the file is not open by another app, but fail if another app has the file open
await logFile.OpenAsync( Windows.Storage.FileAccessMode.Read);
await logFile.OpenStreamForReadAsync();

EDIT over a year later Microsoft fixed the issue in an update to the SDK, see the comment here: https://www.reddit.com/r/csharp/comments/5up8vh/uwp_cant_open_file_for_reading_if_its_in_use/dggiq8m/ (TL;DR: Use OpenAsync(FileAccessMode.Read, StorageOpenOptions.AllowReadersAndWriters);)


r/WPDev • • Feb 17 '17

System media controls

4 Upvotes

So I got the media element ready for my music app, I just need to know how to use the seek bar, and the buttons.


r/WPDev • • Feb 17 '17

UWP on Xbox - LocalSettings and RoamingSettings reset every few deploys

6 Upvotes

Hi guys,

So I'm working on bringing my app to the Xbox, but the application settings are reset every 2 or 3 times I deploy the app. Is there a setting or trick I can use to prevent this?

EDIT: Files in the local and roaming folders disappear alongside the settings as well, so it seems to just be resetting the entire app when it's deployed. It seems to be fine when installed from the Store.


r/WPDev • • Feb 16 '17

I want to add a drop box option so people can navigate through my app, but have looked online and can't find anything useful (developing for windows phone 8.1)

3 Upvotes

I went on visual studio, and so far my apps progress has been alright up till now. And it's bothering me that I tried using groupbox control(in XAML toolbox) to see if so some options drop down like they do in .Net controls. Please help me, I want to make as much significant progress as I can before the deadline, and this info will help me do so. Thank you.


r/WPDev • • Feb 16 '17

Making a music app, I have some questions

4 Upvotes

I have a list of songs from the users music folder. For the album view I was wondering if there was anyway I could get a single thumbnail to set the image in the ListView, if the album has multiple files?


r/WPDev • • Feb 15 '17

Use adsTips for using ads in your Windows Phone apps - Building Apps for Windows

Thumbnail
blogs.windows.com
3 Upvotes

r/WPDev • • Feb 09 '17

Dev Center Question [x-post from r/windowsdev]

Thumbnail
reddit.com
5 Upvotes

r/WPDev • • Feb 08 '17

Announcing Project Rome Android SDK

Thumbnail
blogs.windows.com
25 Upvotes

r/WPDev • • Feb 07 '17

UWP application settings performance

Thumbnail
blog.mzikmund.com
16 Upvotes

r/WPDev • • Feb 03 '17

What about Xamarin ?

8 Upvotes

-Someone use it ? -is it possible to make UWP app on it ? i'm starting developing uwp for my WM but Microsoft start to not produce and sell lumia anymore, and outside are there only hpx3(that are expensive) so from now till a year i dont' see a lot of users on WM, so the question: programs with c# to make SIMPLE app for 3 os...seems to be cool! :D
what are the restrictions ?

Edit: thank to all for answering!


r/WPDev • • Feb 02 '17

Testing for Holographic and XBOne

3 Upvotes

Hi all,

I have some UWP apps, which can theoretically work on Holographic devices and XBOne. But I have neither to test with.

Although they should run, I: a) Am against releasing on "should" without testing. b) Need to explore the real world considerations; eg the controller vs touch and keyboard/mouse.

How do you do it? Is there an emulator or something available?

Cheers, Rob.

Update: I found the Holographic emulator not long after posting this. Just looking for XBOne now.


r/WPDev • • Feb 01 '17

PSA: Publishing 3rd party browsers using Desktop Bridge to Windows Store is not supported

5 Upvotes

We were trying to get our desktop browser, which is based on Chromium, into Windows Store using the Desktop Bridge/Project Centennial, but today we received message from Microsoft that for security reasons third party browsers published using the Desktop Bridge aren’t supported. Apparently not all Desktop apps are accepted into the Store right now.


r/WPDev • • Feb 01 '17

VisualStateManager pitfalls

Thumbnail
blog.mzikmund.com
7 Upvotes

r/WPDev • • Jan 30 '17

How to do it ?

3 Upvotes

i've downloaded the "mspoweruser" app on WM, and it has an hamburgher menu that i like:

(pre: i'm a beginner in UWP development, and i doesn know all the control and how to use them right to makes a valid UI)

when u swipe to left u find the menu(like hamburgher menu) but it doesnt open (for example the hamb of readit app, u tap it and a Windows opens and cover the main page), that menu is at the same level of main page. (hope that i'm clear)

i would like to do the same thing(on an app that i'll finish dev), but on the right of my main page to let user see some data. i mean, my app works with map control and when u tap an POI i would like to swipe on right of my mapcontrol to show in some way data about that POI, with the same style which mspoweruser app open his menu.

what control should i use ? and is it possible ?

SBE and thanks

https://i.imgur.com/fy8Iuj8.png


r/WPDev • • Jan 28 '17

Adding Hyper-V-less boot entry with PowerShell

Thumbnail
blog.mzikmund.com
2 Upvotes