uwp

Xamarin UWP app size is too big? how to reduce?

て烟熏妆下的殇ゞ 提交于 2021-01-28 08:37:42
问题 I have built a xamarin forms app and android size 17mb using proguard, full linking. However UWP size is 76 mb. I am already using configuration as in the screenshot below. I am support x86, x64 and arm architectures on both platforms. in android i create separate packages per abi. thats why 17mb is each abi size. but I couldnt find a similar option in UWP. it is size of bundle. is there a way to provide 3 installers? Beside that why is the size too large and how can i optimize it further? PS

UWP ListView bind SelectedItem to property in viewmodel

自闭症网瘾萝莉.ら 提交于 2021-01-28 08:32:49
问题 I'm trying to bind SelectedItem in a ListView to the property SelectedSection in the viewmodel. I'm getting the following error: "Invalid binding path 'ViewModel.SelectedSection' : Cannot bind type 'Model.Section' to 'System.Object' without a converter". I'm currently binding the ListView's ItemSource to a list in the CurrentProject property. I tried making a converter, but I'm not quite sure how and what I'm suppose to convert. I got the same error when I tried to just get the property I

uwp adaptive gridview renders 1st element wrong

a 夏天 提交于 2021-01-28 08:04:12
问题 I am using AdaptiveGridView from UWP Community toolkit . The Very first Item displays horribly wrong and all other Items are displayed just fine. See in the picture below the 1st item has bigger Folder Image than others. XAML <Style TargetType="controls:AdaptiveGridView" x:Key="MainAdaptiveStyle"> <Setter Property="SelectionMode" Value="None"/> <Setter Property="StretchContentForSingleRow" Value="False"/> <Setter Property="DesiredWidth" Value="220"/> <Setter Property="IsItemClickEnabled"

How to know that camera is currently being used by another application with UWP?

早过忘川 提交于 2021-01-28 05:53:50
问题 I am trying to show error message "Cannot setup camera; currently being using" when there is already a process running the camera. I have the code that starts the preview using the MediaCapture and it works fine when running without another application using camera. I do get the exception 0x40080201: WinRT originate error (parameters: 0xC00D3704, 0x00000049, 0x10EFF1CC) in my logs but my try catch block doesn't catch the error. create_task(_mediaCapture->StartPreviewToCustomSinkAsync(encoding

How to dispose current page in UWP

纵然是瞬间 提交于 2021-01-28 05:44:14
问题 For Example I am having 2 pages in UWP application. with the names Mainpage and HomePage. Now I am using below statement for navigating to HomePage from MainPage. Frame.Navigate(typeof(HomePage)) Now I want to dispose objects and memory of my MainPage. How Can we do that in UWP applicaiton. Please provide your suggestions to solve this issue. 回答1: You do not, the garbage collector does it for you when appropriate. 来源: https://stackoverflow.com/questions/43638188/how-to-dispose-current-page-in

Cannot Change Accent Color for WASM on Uno 2.4

[亡魂溺海] 提交于 2021-01-28 05:35:14
问题 I defined a new accent color in App.xaml lke this: Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> </ResourceDictionary.MergedDictionaries> <Color x:Key="SystemAccentColor">#FFCB2128</Color> <Color x:Key="AcmGreen">#FFB8C282</Color> <Color x:Key="AcmPink">#FFE672A4</Color> <Color x:Key="AcmPurple">#FF71749E</Color> <Thickness x:Key="PivotItemMargin">0</Thickness> </ResourceDictionary> <

Accessing a control which is in a contentpresenter in c#

a 夏天 提交于 2021-01-28 05:00:17
问题 How to access a named control that is in the content template of the contentpresenter. how to access the webview control(x:name=detView) from cs file. <ContentPresenter x:Name="DetailContentPresenter" Grid.Row="0" BorderBrush="{ThemeResource SystemControlForegroundBaseLowBrush}" Content="{x:Bind coll.SelectedItem,Mode=OneWay}"> <ContentPresenter.ContentTemplate> <DataTemplate x:DataType="data:coll_Details" x:Name="ttt"> <Grid> <WebView DefaultBackgroundColor="#F5F5F5" x:Name="detView" Source=

Creating a draggable map pin on UWP

放肆的年华 提交于 2021-01-28 00:40:31
问题 After following the instructions in the link here How to create draggable pin in windows 10 to give pick location functionality? I have a half working dragging pin. Currently the map pin (Grid) starts in the correct place on the map, however, upon dragging the map pin the pin initially pops up to the top left of the screen (0,0) and starts dragging from here. Upon dropping the pin it appears to have disconnected from the map element itself as you can then scroll the map and the pin stays in

Open new window on secondary monitor in UWP

跟風遠走 提交于 2021-01-27 06:24:11
问题 I have a UWP project with two monitors that I want to use to open a new window on a secondary monitor. The application includes three parts: Open Main Page on first monitor Create new page Open on secondary monitor I wrote the first and second parts correctly, but I can't find a solution for the third part. Please help me with moving the window to another monitor. public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); //called creat new page function

How to always show scrollbar?

﹥>﹥吖頭↗ 提交于 2021-01-24 09:10:12
问题 How to always show the scrollbar in a UWP app? The scrollbar always disappears after a few seconds. I have tried setting ScrollViewer.VerticalScrollBarVisibility="Visible" , but the scrollbar still disappears. I have had a look at the Xaml UI Basics sample, and the scroll bars also disappear here regardless of what properties I set. This answer for Windows Phone 8 suggests modifying the scroll viewer template, but that seems like overkill. Any ideas? 回答1: For UWP use this style <!-- In