Skip to main content

Questions tagged [xaml]

Extensible Application Markup Language (XAML) is an XML language used for defining user interfaces in WPF and Silverlight.

2votes
1answer
2kviews

Avalonia user control with design time XAML property setter

I am trying to make an AvaloniaUI user control. I want to be able to set a property at design time from inside my XAML files and see the result in the designer in Rider, such as the "Hello World!...
Sean Kearon's user avatar
2votes
0answers
565views

WPF DataGrid Column FIltering using Behaviors

This is the simplest implementation of the 'DataGridBehavior' Class for column Filtering I could come up with: ...
AYOUB BOUSSAID's user avatar
1vote
1answer
351views

Index IValueConverter Optimisation

I've created an IValueConverter in order to Bind to the index value of a Collection. However it seems to be rather slow/infefficient and I wonder if there is a ...
J.Dhaik's user avatar
2votes
1answer
492views

Cash register form

I'm pretty darn new to C# and to be honest in programming. I'm experimenting on making a cash register type program and I picked WPF because its been recommended as better than Forms when it comes to ...
Johanes's user avatar
1vote
1answer
135views

App.xaml.cs Startup Code Refactoring

Quite simply, this is my base class for Xamarin forms, everything is fully working, but it's getting a bit too long and feels a bit like it can be improved, especially the network bit could be handled ...
JsonDork's user avatar
3votes
1answer
5kviews

My approach on nested properties that bind to XAML

Here is my simple model. public class Product { public String Name { get; set; } public int Price { get; set; } public String Info { get; set; } } When ...
zadane's user avatar
2votes
0answers
32views

Initializing Group Data Mess

This is my OnAppearingAsync method where I as a page load in Xamarin I filter data, group it together, set data based on it, order the groups e.t.c. However the code is rather long and looks a bit ...
JsonDork's user avatar
4votes
1answer
86views

More Efficient Way To Search On-Demand

I need better logic that would allow this search to perform quicker and more efficiently. In XAML, I have a DataGrid and a ...
Mike's user avatar
2votes
0answers
215views

Simple Data Entry Application in WPF xaml UI

I made a simple data entry application in WPF MVVM and was just hoping for some input as I am pretty new to WPF . I have done the same application using winforms. Now I have recreated the same ...
Vini's user avatar
20votes
5answers
4kviews

House plan design (Head First C#)

I've been working through the book Head First C# and this is an exercise from chapter 7, which is about interfaces and abstract classes. Note that the class design was mandated by the authors, I'm ...
Phrancis's user avatar
2votes
1answer
1kviews

WPF Content Navigation and Button management

I have been working on my first ever C# project and I'd love some feedback of the any and all aspects variety. I am building a game called Fleet Command. In the ...
Summer's user avatar
  • 2,340
2votes
1answer
1kviews

Vertical WPF icon button that uses Segoe MDL2 font for icon

This is a button that changes text and icon according to a Boolean state. for example, a play / pause button or a connect / disconnect button. The icon uses Segoe MDL2 Assets as the default font, but ...
geometrikal's user avatar
-2votes
1answer
81views

Add new TabItem to a TabControl using Click Event [closed]

I'm trying to add a new TabItem to a TabControl. The TabItem's content will be set to a new Frame, and the frame holds the actual Page. A new Tabitem is added each time the button is clicked, this is ...
Raheem's user avatar
2votes
0answers
136views

GUI and Powershell script to manage mail accounts [closed]

I've written this rather cumbersome PowerShell script that facilitates a business use case. Because I built it off a PowerShell auditing tool I made, it was formatted differently. What I'd like to do,...
pakman's user avatar
5votes
1answer
2kviews

Loading a XAML file related to a control programmatically?

I'm trying to have a custom WPF control whose content is defined in XAML but avoiding the use of a UserControl. This is because a UserControl makes it impossible to ...
millimoose's user avatar

153050per page
close