win-universal-app

Can anyone guide how can I add shadow effect to Grid in windows universal app?

限于喜欢 提交于 2019-12-12 04:26:16
问题 add shadow effect to Grid in windows universal app like this image 回答1: This might help <Grid > <Rectangle Width="230" Height="225" Margin="1,1,0,0" Stroke="#99000000" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" /> <Rectangle Width="230" Height="225" Margin="2,2,0,0" Stroke="#4C000000" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" /> <Rectangle Width="230" Height="225" Margin="3,3,0,0" Stroke="#19000000" StrokeThickness="1"

UWP FileSavePicker Contract File Processing

本小妞迷上赌 提交于 2019-12-12 04:22:03
问题 In my App i'm using a a FileSavePicker Contract (Provider). So other Apps could save files to my App. I implemented it, as it is shown on MSDN. The Problem now is, that i have to process a "saved" file, but how do i know, when the saving is completed? Here is my handler private async void FileSavePickerUI_TargetFileRequested(FileSavePickerUI sender, TargetFileRequestedEventArgs args) { var deferral = args.Request.GetDeferral(); string saveFileName = sender.FileName; StorageFolder

Packets swapped on BLE receive

心已入冬 提交于 2019-12-12 04:11:36
问题 First of all, a short introduction to the application. We are developing a wireless sensor that sends data over BLE using a single characteristic (hardware limitation) to a client UWP app. The messages vary in size from under 20 bytes, to 512 bytes. The messages consist of a start character (start_char), preamble, data, CRC for detecting errors and an end character (end_char). If these special characters occur inside the message, they are escaped. Message processing on the client side

How to Manage Deployment/Upgrades for Internal Mobile Application?

ε祈祈猫儿з 提交于 2019-12-12 04:11:28
问题 I'm creating a UWP application that will be used exclusively on rugged Win10 tablets by a group of initially 10-20. If things go well it will be expanded to 100 users. These users are employees of our company, but will be remotely located. Currently, with the test tablets, I am pushing the packages in google drive and manually copying them to the tablets, unzipping and executing the ps file on the tablet. This is way to complicated for even a beta test group of our users. I'm looking for

Manipulation events of MediaElement not fire when on FullWindows mode

筅森魡賤 提交于 2019-12-12 04:08:04
问题 When I set player not in fullscreen (player.IsFullWindows = false), event work normally but when change player to full screen all manipulation event not work. Anyone have solution? <MediaElement Name="player" Margin="10,5" ManipulationCompleted="player_ManipulationCompleted" ManipulationDelta="Grid_ManipulationDelta" ManipulationMode="TranslateX" > 回答1: I can reproduce this scenario by enabling both the IsFullWindow="True" and the AreTransportControlsEnabled="True" . I think it makes sense,

Load Binary Formatter file in Universal app

浪子不回头ぞ 提交于 2019-12-12 04:00:03
问题 I have an application build with .NET 4.0 and I want to port this application to a Windows 10 application. In the old application I saved my data to a binary file using Binary Formatter. using (FileStream fs2 = File.Create(serializationFile)) { var bformatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); bformatter.Serialize(fs2, transactionData); } With the following class that is serialized: [Serializable] public class TransactionData { public TransactionData() { }

Bind to UIElement in code-behind crashing

丶灬走出姿态 提交于 2019-12-12 03:48:29
问题 In my code, I have an UIElement variable I set with certain button presses. Now, I have this variable: public UIElement currentMenu; Set to this value: currentMenu = (UIElement)Resources["Home"]; I get it from the Resources so I don't have to manage it messily in the code-behind, I will export the Resources to a seperate ResourceDictionary once I get this problem solved. My SplitView looks like this: <SplitView x:Name="NavPane" OpenPaneLength="250" CompactPaneLength="50" Content="{x:Bind

DataReader of SocketStream for UWP App

末鹿安然 提交于 2019-12-12 03:38:25
问题 I've seen a few questions similar to this, but so far I've not seen an actual solution that works for the UWP platform. I'm connecting to some UPnP devices on the network, which send JSON back over port 1255. I have the initial connection working and the send request that tells the devices to send me some info. StreamSocket socket; using (socket = new StreamSocket()) { hostName = new HostName("192.168.0.nnn"); await socket.ConnectAsync(hostName, "1255"); //Code that does the request for info

C#: PointerPressed has been called twice when I click the image

夙愿已清 提交于 2019-12-12 03:34:19
问题 I am beginner in UWP. I wanna add a click event to an image that change splitview 's open-status. So I have an image in ma xaml: <Image x:Name="image_1_6" HorizontalAlignment="Left" Height="200" Margin="1225,559,-171,0" VerticalAlignment="Top" Width="200" Source="Assets\images.jpg" PointerPressed="image_1_6_PointerPressed"/> I define image_1_6_PointerPressed as like as this: private void image_1_6_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { mySplitView

connect and read .MDB item with C# in UWP

不想你离开。 提交于 2019-12-12 03:29:56
问题 I'm developing a UWP application and want to read a MDB file to convert this database to a SQLite database. I read that i could use OleDbConnection to open MS Access database following this topic : connect and read .MDB item with C# But OleDbConnection is not available in UWP project. It seems not available in System.data Do you know solution to read MDB file in a UWP application programatically? EDIT : Microsoft team answered me this information : Currently, there are no in-box API, or tools