uwp-xaml

Change height of Bottom AppBar in XAML UWP

陌路散爱 提交于 2019-12-01 05:38:40
问题 Is there any way to decrease the height of Bottom AppBar in XAML UWP? I have the below XAML code: <Page.BottomAppBar> <CommandBar Height="35"> <CommandBar.SecondaryCommands> <AppBarButton Label="Share"/> <AppBarButton Label="Settings"/> <AppBarButton Label="Settings"/> <AppBarButton Label="Settings"/> <AppBarButton Label="Settings"/> <AppBarButton Label="Settings"/> <AppBarButton Label="Settings"/> </CommandBar.SecondaryCommands> </CommandBar> </Page.BottomAppBar> Problem is, when I set

Change default time of auto-hide timer of ScrollViewer scrollbars

拥有回忆 提交于 2019-12-01 05:32:36
问题 When a ScrollViewer has scrollbars showing, and the cursor is not moved for around 3 seconds, the scrollbars auto hide. Is there a way to set that time to more or less than the default time? EDIT Reproduce so: <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <ScrollViewer Height="500" Width="500"> <Grid Background="Blue" Height="1000" Width="1000"> </Grid> </ScrollViewer> </Grid> Move the cursor over the ScrollViewer to show the scrollbar. Leave the cursor motionless

UWP get live webcam video stream

心不动则不痛 提交于 2019-12-01 03:23:05
问题 I was looking into the MediaCapture class, however it doesn't seem to expose what I'm looking for. I want the live Stream from the web cam - not to record it or preview it. I'm working on the Microsoft Cognitive Services Emotion API and I want to follow this example, but instead of getting a local video stream from the file system - I want to get a Stream from a web cam. 回答1: The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is

Xamarin Form - How to make UI Responsive in UWP

喜欢而已 提交于 2019-12-01 02:37:48
I am developing the DMS application in uwp desktop application. I have developed the design.but my designs are not responsive.I am gone through so many UI responsive articles but i am not able to make the ui responsive.:( I am uploaded my one project module please go through it and let me know whats wrong in it.I want to make ui responsive form login page to add new user. link Download the UWPUIResponsive zip file. thanks in advance.:) Xavier Xie - MSFT's reply is correct. And I checked your link, if you want to make UI responsive for your page, You could create VisualStateGroups that contains

UWP trying to animate scrollviewer with attached dependency propert

让人想犯罪 __ 提交于 2019-12-01 01:09:23
Am trying to animate horizontal offset of scrollviewer in UWP.but the attached properties are not being identified by animation target. <Grid x:Name="maingrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid.Resources> <Storyboard x:Key="animation" x:Name="animation"> <DoubleAnimation Storyboard.TargetName="scrolviewer" Storyboard.TargetProperty="(local:ScrollviewerBehaviour.Horizontalofset)" Duration="0:0:1" From="0" To="80"/> </Storyboard> </Grid.Resources> <Button Width="100" Height="50" Click="Button_Click_1"/> <ScrollViewer x:Name="scrolviewer" local

Maximize UWP app window on launch

本小妞迷上赌 提交于 2019-12-01 00:59:12
问题 Is there a way (either C# or XAML) I can maximize a UWP app window even after I resized and closed it previously on desktop? I have tried with ApplicationViewWindowingMode.FullScreen but this makes the app go entire full screen and covers the Widnows Taskbar too. 回答1: You can use another value PreferredLaunchViewSize from ApplicationViewWindowingMode and then set ApplicationView.PreferredLaunchViewSize but the key is to find out what the size is going to be. Theoretically, you could use a

[UWP][XAML] ListView child item not using full width

只愿长相守 提交于 2019-12-01 00:49:45
I'm trying to display a list of bound items. I've customized the datatemplate to be a grid and I want the right column (that has a fixed width) to stick to the right side of the screen, and the 1st column I want to fill the remaining space. Normally this works fine, but when I put this grid inside a ListView, the behavior seems to change. Below is my ListView code: <ListView x:Name="LView" Background="Green" Width="{Binding ElementName=ExtPropPage, Path=Width}" ItemsSource="{Binding CurrentSensor.ExtendedProperties, Mode=TwoWay}" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment=

How can i change the Package family name in uwp windows 10

∥☆過路亽.° 提交于 2019-11-30 21:15:13
I want to change the key mentioned in fig., when i change the certificate file it changes to the another temporary key, and the publisher folder is creating with this key as name. but i want it as a meaningful name. is it possible.? if anybody knows, please help me. Together, these elements declare the identity of your app, establishing the "package family" to which all of its packages belong. Individual packages will have additional details, such as architecture and version. The package family name is the combination of YourProjectName and TemporaryKey . And the Temporaraykey is a hash value

UWP trying to animate scrollviewer with attached dependency propert

点点圈 提交于 2019-11-30 21:11:29
问题 Am trying to animate horizontal offset of scrollviewer in UWP.but the attached properties are not being identified by animation target. <Grid x:Name="maingrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid.Resources> <Storyboard x:Key="animation" x:Name="animation"> <DoubleAnimation Storyboard.TargetName="scrolviewer" Storyboard.TargetProperty="(local:ScrollviewerBehaviour.Horizontalofset)" Duration="0:0:1" From="0" To="80"/> </Storyboard> </Grid.Resources> <Button

SplitView.PaneClosed event is available but not for PaneOpened

扶醉桌前 提交于 2019-11-30 18:08:00
问题 According to the https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.splitview.paneclosed.aspx there is no PaneOpened event for the SplitView control, only PaneClosed event for the SplitView control that exists. I have a Button control inside a SplitView pane that needs to change in size according whether the pane is opened or closed. So my plan is I will place a piece of code that will change the button size wider in the PaneOpened event, and restore it back to the