windows-10-universal

RichEditBox: picture and content after the picture disappear (Windows 10 1703 Creators Update)

被刻印的时光 ゝ 提交于 2019-12-25 16:02:43
问题 In Windows 10 1703 Creators Update a new bug appeared. Steps to reproduce: Load an RTF document with a picture into RichEditBox Save it. Save it again. Reload it or open it with another app - you will see that the picture is gone and all the content after it is gone too. I submitted this bug here in FeedbackHub app. The question is how to avoid this bug or make a workaround? 回答1: This project on GitHub is to demonstrate the bug and to fix it. After you save the document for the 2-nd time, the

bind images in buttons in a FlipView windows app store

筅森魡賤 提交于 2019-12-25 12:46:16
问题 I am new in universal app developpment,I have a flipview with 4 buttons in each page,each button has an image(8 images in total),I have created a model class that contains the list of images and their URls: public class SampleItem { public string Image1 { get; set; } public string Image2 { get; set; } public string Image3 { get; set; } public string Image4 { get; set; } public string Image5 { get; set; } public string Image6 { get; set; } public string Image7 { get; set; } public string

Styling for ListBox, ListView and GridView Items

こ雲淡風輕ζ 提交于 2019-12-25 12:45:17
问题 The default colors for these controls seems to be similar to the Windows theme colors. How do you change the hover, selected, selected hover and pressed colors (code or XAML)? The following isn't working for the ListView: <ListView> <ListViewItemPresenter PointerOverBackground="#99CEEA" SelectedPressedBackground="#72BFE9" SelectedBackground="#72BFE9" SelectedPointerOverBackground="#99CEEA" /> 回答1: In your VS/Blend Designer, right click on your ListView and select Edit Additional Templates >

Show listview in middle of method but wait until SelectionChanged event fires before method continues

天涯浪子 提交于 2019-12-25 09:48:08
问题 Windows UWP app in C#. I have a method that checks a condition and depending on the condition, it may need to show a listview to the user so they can select an item from the list. I have more code in the method, after I potentially show the list view that needs to run after. However, because the listview shows and I have to wait for the SelectionChanged event handler to fire, I cannot figure out how to pause the calling method on that line until the event handler is completed for

Windows 10 Mobile: how can I see inside on my app folder?

我们两清 提交于 2019-12-25 09:19:43
问题 I'm deploying my Windows 10 Mobile application on my device. I want to inspect the folder to be sure the application created folders and files. How can I do that? I tried with the webapp in the phone but I access only on the Documents folder. I asked this here because in my Windows Phone with latest update (I active Windows Insider Programme then I think I have for sure the latest version of the OS) I can't explore app folders as you see on the following picture. If I click on the link User

How to store a .wav file in Windows 10 with NAudio

情到浓时终转凉″ 提交于 2019-12-25 09:04:48
问题 I'm trying to store my 16000hz 16bit mono PCM audio bytes to a wav file in a Windows 10 app. NAudio normaly has a WavFileWriter, but it seems to be gone in the Windows 10 version. I can only seem to find access to new WaveFormat(16000, 16, 1); from https://www.nuget.org/packages/NAudio/1.7.3/ Is there a stream I can use to create the Wav file or its bytes? 回答1: I suspect that NAudio removed WavFileWriter because there's now a substitute in the standard UWP API, in the Windows.Media.Audio

How to update a sideloaded APPX on Windows 10 Mobile

混江龙づ霸主 提交于 2019-12-25 09:04:08
问题 Problem: I have created two APPX-files with version 0.0.1 and version 0.0.2. After the installation of version 0.0.1 the app is visible and accessible. All is ok so far. Now I want to update that app to version 0.0.2. I open the 0.0.2 APPX-file and the installation pop-up comes up. I press the install button and the app seems to install, same like the 0.0.1 installation. After about a minute I open the app again, but against my expectations version 0.0.1 is still installed. I have also tried

How do I get cell row and column indexes of UWP Grid control?

做~自己de王妃 提交于 2019-12-25 07:40:19
问题 I've been trying to get the row index and the column index when specific cell of grid control is tapped. So far nothing... I achieved to take the absolute value of X and Y when I tap somewhere on the grid control. private void gridGameBoard_Tapped(object sender, TappedRoutedEventArgs e) { Grid grd = sender as Grid; Point pos = e.GetPosition(grd); } I've tried this: int row = Grid.GetColumn(grd); int col = Grid.GetRow(grd); Both gives me only zeros no matter where I tap. I didn't find another

How to make a List of CheckBoxes like in the Alarm & Clock App

▼魔方 西西 提交于 2019-12-25 06:49:58
问题 How can i make such alist of checkboxes, that they are left aligned to the button, from where it opens, and provide a opening and closing Animation, like in the Alarm & Clock App in Windows 10? I tried with Popups and Flyouts, but there isnt the same effect. 回答1: It looks that this Control in the Alarm & Clock App is actually expanded from a ComboBox control. So we can use a ComboBox to do this, for example: <ComboBox x:Name="comboBox" VerticalAlignment="Center" HorizontalAlignment="Stretch"

Setting Visibility=“Collapsed” doesn't hide the Button. Update: Fixed by myself but I want to know the reason for the issue

那年仲夏 提交于 2019-12-25 06:37:27
问题 I am creating a custom transport controls. In that, I have added an AppBarButton. To change the visibility of that I have created a Property for it, but for some reason, it doesn't work. The AppBarButton is always visible. Code of the Property //To change Visibility for CompactOverlayButton public bool IsCompactOverlayButtonVisible { get { return compactOverlayButton != null && compactOverlayButton.Visibility == Visibility.Visible; } set { if (compactOverlayButton != null) //To neglect the