Category "xaml"

Determine when the popup of a combobox encounters the edge of the screen and changes target origin changes to the top-left corner of the target area

I have an issue with popup placement. If the combobox encounters the edge of the screen then the target origin changes to the top-left corner of the target area

The ScrollViewer automatically changes its height and does not scroll

In my program, I use ScrollViewer to display elements inside, but the problem is that when the ScrollViewer is filled with content, its height automatically cha

The ScrollViewer automatically changes its height and does not scroll

In my program, I use ScrollViewer to display elements inside, but the problem is that when the ScrollViewer is filled with content, its height automatically cha

WPF Drawing Wheel Color Picker?

I'm have try drawing color picker by Ellipse LinearGradientBrush. <Ellipse Width="200" Height="200"> <Ellipse.Fill> <VisualBrush Tile

WPF Textbox Validation Error binded to Variable

In a .xaml file, I have a number of Textbox objects that are linked to data paths as such: <TextBox Text="{Binding Path=Var1}"> These variables (like Var

My Xamarin app keeps crashing due to Databinding(Basic Databinding)

I was trying to use Databinding in my Xamarin app. After implementing, just like the many instructions suggest, it just always crashes while loading the app. Wi

How to Add Row in datagrid wpf

Private Property DataTable As DataTable Public Property DataView As DataView Public Sub New() InitializeComponent() DataTable = New DataTable()

How to nest formatted strings in XAML?

Is it possible to nest formatted strings in XAML without creating a custom class? Here is an example of what I want to achieve: Format a string, e.g. "inner sta

I would like to change my Items Page from using CollectionView to ListView in xamarin.forms but I am having issues?

The above header refers. I would like to make this change so I can implement expanding lists (whereby my some of my list of items could have sub-items that can

Xamarin.Forms: editing (in VS) custom control's property value at runtime in XAML doesn't cause any updates

I have a custom control in Xamarin.Forms app that's described via XAML. For example, CustomControl.xaml: <ContentView xmlns="http://xamarin.com/schemas/2014/

Xamarin.Forms: add control (in XAML) based on Platform

I have this (simplified) layout in XAML using Xamarin Forms: <controls:MyTabItemView> <ScrollView> <Grid> ......

if itemcontainerstyle is inside DataTemplate and a call the the main window is used an System.NullReferenceExc on start-up but works fine if ignored

when i try to call a event from the main wind if a control is in a template in itemcontainerstyle when the run a System.NullReferenceException: 'Object referenc

Xamarin Drag and drop how to edit balloon icon and text see image

Using the drag drop sample https://github.com/xamarin/xamarin-forms-samples/tree/main/WorkingWithGestures/DragAndDropGesture I'm not sure its actually a notify

Binding Callback Function to a HeaderTemplate

How do I bind a callback function to a DataTemplate inside a HeaderTemplate in WinUI3? After reading various answers it appears the DataContext inside a HeaderT

How to include an XAML icon in another XAML file

I've downloaded the Visual Studio Image Library, which contains XAML icons. For example, this is the content of the file FolderClosed_16x.xaml: <!-- This fil

How to display text on a progress bar? [C# WPF]

I need to display a sentence on a progress bar, I've found XAML solutions but I need C# specific solutions, meaning I need to set the text in code. This is an i

How to create multiple custom renderer with same type?

I wanted to create a page render with ContentPage type. I created so in android and it is working but in IOS there has custom page renderer with same type (Cont

Getting index of selected item in a ListView while WPF MVVM pattern is used

I want to get selected Item from ListView. My view is: <ListView Name="StudentGrid" Grid.Row="1" Margin="1,1,1,1" ItemsSource="{Binding studentList}" Selecte

Cannot find type System.Windows.DependencyObject in module WindowsBase.dll

I'm using WinUI 3. I used the Project Reunion 0.5 (Blank App WinUI 3 in Desktop). I removed the x86 and arm64 architecture. As soon as I add the Microsoft.Ident

Big button in navigation view. WinUI / xaml

Does anyone know how to make a big button with subtext and a picture in a navigation panel (using xaml)? Like in the Windows 11 settings app. Like this...