xaml

How to create a ScrollView in this layout?

百般思念 提交于 2020-12-14 23:37:41
问题 I need to create a ScrollView in this layout but the problem is that my control occupies the entire screen and I don't know how to make it occupy only the size it has. This is the functionality of the control I need it not to fill the entire screen and only its own size to be able to add more things to the layout This is the XAML of my control: <?xml version="1.0" encoding="UTF-8" ?> <ContentView x:Class="ControlProject.CustomControl" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x=

Switch templates in xamarin based of bound property (NOT ItemTemplate)

試著忘記壹切 提交于 2020-12-14 06:46:47
问题 I have a Model that contains some data, and a field that can have one of three (enum) values. Socket, Tcp, Udp And a View that shows some details. The details that I want shown in the view differ according to the value of this property in the model. I have read all about ItemTemplates for Lists and Pickers, and I want to do something similar but just with a single view bound to a single property. If Socket => Show this view else => Show this other view. Both views have the same viewmodel.

Switch templates in xamarin based of bound property (NOT ItemTemplate)

我们两清 提交于 2020-12-14 06:39:14
问题 I have a Model that contains some data, and a field that can have one of three (enum) values. Socket, Tcp, Udp And a View that shows some details. The details that I want shown in the view differ according to the value of this property in the model. I have read all about ItemTemplates for Lists and Pickers, and I want to do something similar but just with a single view bound to a single property. If Socket => Show this view else => Show this other view. Both views have the same viewmodel.

Blur effect on image as a window background

风流意气都作罢 提交于 2020-12-12 06:47:11
问题 I have a window in my WPF app with an image as a background. I want that image to be blurred. This is how I do it: This is my window: <Window x:Class="kiosk.UI.Views.PageSwitch" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="clr-namespace:myProjectName.Converters" Title="PageSwitch" Height="1024" Width="1280" Style="{StaticResource WindowStyle}" WindowStyle="None" ResizeMode="NoResize"

Blur effect on image as a window background

扶醉桌前 提交于 2020-12-12 06:46:24
问题 I have a window in my WPF app with an image as a background. I want that image to be blurred. This is how I do it: This is my window: <Window x:Class="kiosk.UI.Views.PageSwitch" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:converters="clr-namespace:myProjectName.Converters" Title="PageSwitch" Height="1024" Width="1280" Style="{StaticResource WindowStyle}" WindowStyle="None" ResizeMode="NoResize"

How to concatenate strings in Xamarin.Forms?

社会主义新天地 提交于 2020-12-08 05:59:50
问题 I want my two strings to be diplayed on just a single line. Is it possible for it to appear like this: Curry Stephen using this code Text="{Binding EMP_LAST_NAME + EMP_FIRST_NAME}" ? ? ? I currently have this code. Thanks a lot. <ListView ItemsSource="{Binding EmployeesList}" HasUnevenRows="True"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid Padding="10" RowSpacing="10" ColumnSpacing="5"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid

Why UWP ApplicationPageBackgroundThemeBrush is always white?

元气小坏坏 提交于 2020-12-05 08:10:43
问题 I am beginner. I have below simplest code: <Page x:Class="ClientFramework.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:ClientFramework" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> </Grid> </Page> I test it in

Frame corner radius not rounding corners on iOS

拈花ヽ惹草 提交于 2020-12-03 07:27:37
问题 I am trying to round the corners of a stack layout, it works on android but on iOS, they still appear square but it does display the Frame shadow My XAML is <ContentPage.Content> <StackLayout BackgroundColor="WHITE"> <ListView> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <Frame CornerRadius="10" Padding="0" Margin="10, 10, 10, 10"> <StackLayout> . . . </StackLayout> </Frame> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> <

Frame corner radius not rounding corners on iOS

廉价感情. 提交于 2020-12-03 07:27:08
问题 I am trying to round the corners of a stack layout, it works on android but on iOS, they still appear square but it does display the Frame shadow My XAML is <ContentPage.Content> <StackLayout BackgroundColor="WHITE"> <ListView> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <Frame CornerRadius="10" Padding="0" Margin="10, 10, 10, 10"> <StackLayout> . . . </StackLayout> </Frame> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> <

Print dialog and print prewiew dialog for WPF

五迷三道 提交于 2020-11-30 03:52:35
问题 Is there a print dialog for WPF that is combinated whit a print preview dialog in WPF like Google Chrome or Word does? At this moment I use a the print preview dialog from Windows forms. I have also try for to use the WPF version of it. But WPF has no PrintPreviewDialog or PrintPrewiewControl . This is my code: //To the top of my class file: using Forms = System.Windows.Forms; //in a methode on the same class: PageSettings setting = new PageSettings(); setting.Landscape = true; _document =