Questions tagged [xaml]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

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
2 votes
0 answers
432 views

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
1 vote
1 answer
325 views

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
  • 149
2 votes
1 answer
424 views

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
  • 21
1 vote
1 answer
116 views

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
  • 414
1 vote
0 answers
32 views

Xamarin: ToggleBar control

Heyhey, I'm attempting to implement a ToggleBar control for Xamarin as there is non up to date and fully customizeable. Now I haven't implemented too many controls and while the control is not fully ...
JsonDork's user avatar
  • 414
3 votes
1 answer
4k views

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
  • 327
2 votes
0 answers
30 views

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
  • 414
4 votes
1 answer
86 views

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
  • 51
2 votes
0 answers
196 views

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
  • 21
20 votes
5 answers
4k views

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
  • 20.4k
2 votes
1 answer
1k views

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,334
2 votes
1 answer
1k views

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
-2 votes
1 answer
59 views

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
  • 1
2 votes
0 answers
131 views

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
  • 21
5 votes
1 answer
2k views

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
4 votes
1 answer
5k views

Login modal with MVVM pattern

I would like some feedback on whether this follows MVVM principles well. The MainPage has a Login button that opens the login modal page. Upon successful login, the LoginPageViewModel will raise an ...
Jam's user avatar
  • 347
-3 votes
1 answer
235 views

Initializing commands C# [closed]

...
JsonDork's user avatar
  • 414
0 votes
1 answer
10k views

WPF button with xaml-defined icon that changes with state

I needed a button with text and icon that did two things: Text and icon went grey if the button was disabled. Icon changes depending on Boolean property (e.g. connected / disconnected). For the icon ...
geometrikal's user avatar
0 votes
1 answer
4k views

Improving CollectionView Filter Speed

I have around 350 People loading into a CollectionView and am already noticing some lag when filtering on their ...
CBR's user avatar
  • 299
3 votes
0 answers
472 views

Media player in WPF - Event binding

I recently started making a media player, this is the first time I'm using WPF and I found that most project are utilizing the MVVM architectural pattern, I haven't used that one either but I decided ...
Denis's user avatar
  • 8,448
2 votes
1 answer
2k views

MVVM pattern in Xamarin login form

Please let me know if the MVVM pattern I followed in this is correct or not. Here is the code for ViewModel ...
Siraj M's user avatar
  • 115
1 vote
1 answer
2k views

Xaml Wpf Snake game

I'm doing a game in Xaml WPF and I didn't really choose the tools and languages. It's to be hidden in a really big app with a lot of code. The whole snake takes place in a simple xaml canvas and xaml....
Jebik's user avatar
  • 113
2 votes
0 answers
393 views

Control for displaying error messages

I am working on a WPF application consisting of a tree view and multiple "view parts" that display details about the selected node. The content of the view parts are loaded asynchronously which may ...
JanDotNet's user avatar
  • 8,538
2 votes
0 answers
2k views

Using Prism to Inject and Navigate Views?

So I have been trying to learn Prism and use it with my project. I am also trying to use the MVVM pattern. So basically, I want a experts advice or opinion on how I setup my program. I've been trying ...
Hypergyzed's user avatar
6 votes
1 answer
1k views

Checkers Board Editor

I created a board editor for my Checkers game. This allows the user to create any board position and copy the FEN string representing that board, which can then be used to create a game from that ...
user avatar
7 votes
3 answers
1k views

Optimize WPF application (2 WPF Windows and a huge mess)

Right now i have a WPF application supposed to display some media into a WPF Window, from actions in another WPF Window ( for example : you write text in a textbox, you click on a button, and the text ...
Cédric MEYER's user avatar
11 votes
2 answers
640 views

A Binary Editor with Live Text Preview

This is a tool I needed for some other things (it's incomplete, but almost done) which is essentially just a text-editor that has two text-boxes: the left being the binary view / raw bytes, the right ...
Der Kommissar's user avatar
5 votes
2 answers
1k views

Catching exception inside model

Is it normal to catch exception in concept of MVVM inside model? Or how should it be? How to improve this code? This is simple application that allows user to drop .pfx certificate on the label. <...
A191919's user avatar
  • 275
1 vote
4 answers
488 views

Validating user input in C# coming from XAML controls

I have page where I am inserting some data into Entry fields. For each Entry I have written in XAML different controls with parameters. One of them is Formated parameter where I am giving a string ...
BinaryTie's user avatar
  • 157
2 votes
1 answer
6k views

WPF controls visibility throught IMultiValueConverter

I have control with RadioButtons. Each RadioButton represent some state of document. Each document have a lot of labels, buttons and another trash. I need to ...
A191919's user avatar
  • 275
2 votes
2 answers
4k views

A list of students using MVVM

Is this a proper MVVM implementation? I copied it off a sample but the source would not open so I have to put stuff in spots? Should I call in different files? My first MVVM and have trouble with the ...
paparazzo's user avatar
  • 5,946
1 vote
1 answer
2k views

Displaying picture collections from a user's picture library

Currently, I have been digging up my old codes. One of the applications I worked on was an Image editing phone app that displays a collection of random pictures from a user's picture, which I limited ...
Tolani's user avatar
  • 2,471
3 votes
1 answer
12k views

Changing visibility of ToolbarItem - Xamarin.Forms

I want to fill collection of ToolbarItems from XAML, but change visibility of some ...
Yehor Hromadskyi's user avatar
4 votes
1 answer
2k views

CollectionViewSource Filter trigger for multiple controls

I have some markup: ...
Andrew Truckle's user avatar
4 votes
2 answers
139 views

Code Explorer UI

The third post in the Code Explorer series is about the UI and main VM. This is the XAML, except a few hundred lines of styling: ...
user avatar
1 vote
0 answers
966 views

Binding an ObservableCollection<BitmapImage> to a FlipView Properly

I am currently working on a Universal Windows Platform App. It involves using a flipView to display a certain number of pictures in the user's picture library e.g ...
Tolani's user avatar
  • 2,471
9 votes
1 answer
2k views

Creating interactive tours for WPF applications

I am developing a WPF component that can be used to create interactive tours for WPF applications. To further improve the API in terms of usability and intuitiveness, the input of other developers is ...
JanDotNet's user avatar
  • 8,538
7 votes
1 answer
583 views

MVVM: Am I doing it right?

I read a lot of articles recently concerning XAML, WPF, data binding and MVVM. I also watched some MVVM tutorials and downloaded some MVVM samples. I finally got my first MVVM sample to work, but ...
Kim Homann's user avatar
3 votes
1 answer
353 views

Uploading .dll files to a local computer

I have created a simple application that has grown a little bit. Though most likely it won't grow anymore, I have looked back and I realized that it has become a little monster in terms of how many ...
Bartosz's user avatar
  • 211
4 votes
1 answer
66 views

FindAllReferencesCommand 2.0

Rubberduck 2.0 will feature a "Search Results" dockable toolwindow that will be used for displaying the results of Find all references, Find all implementations, and whatever else we need to find. It ...
Mathieu Guindon's user avatar
5 votes
1 answer
267 views

About Window in XAML

I just redid Rubberduck's About window in XAML: I do not like my XAML very much. The way I place the StackPanel for the white pane over two rows, only to provide ...
user avatar
3 votes
3 answers
635 views

Unit Test Settings

Recently, I redesigned the Rubberduck settings pane. Here is the unit test settings view, which is posted in this question: The part we are referring to is the section in the right pane. The rest ...
user avatar
4 votes
1 answer
198 views

Displaying inspection results, grouped per user selection

The Rubberduck 2.0 Code Inspections UI was recently redesigned (again!), this time featuring a GroupingGrid control (thanks @BrunoCosta!), and what appears to be a ...
Mathieu Guindon's user avatar
1 vote
1 answer
71 views

Randomly choose a game executable from a folder 2.0

After asking Randomly choose a game executable from a folder, I applied the recommended changes. I also redesigned the program to make use of the MVVM (Model-View-Viewmodel) paradigm, using Prism 6.0. ...
Nzall's user avatar
  • 1,526
2 votes
1 answer
399 views

Saving User Settings in Univeral App for Windows 10

I am a self-taught programmer, so please be gently. Please give as much feedback as possible for my code. I want to make sure I am doing things the right way and efficient way. What is the proper ...
Illuminati's user avatar
4 votes
1 answer
96 views

Randomly choose a game executable from a folder

I've written a Universal Windows Application which allows you to select a folder and shows the icon and name of a random executable from anywhere in that folder. The intent is to be a Game Roulette, ...
Nzall's user avatar
  • 1,526
10 votes
1 answer
34k views

Navigation between pages in WPF MVVM application

I did a project in WPF MVVM. Just a single Window with single Frame control and few Pages. My problem was communication between ...
tobiasznowak's user avatar
5 votes
1 answer
134 views

Categorize episode-file names - Follow up

This is a follow up to this question. I have implemented changes to the code as they were suggested in the previous question and have made a few changes of my own. But it has been mentioned that the ...
Paras's user avatar
  • 585
10 votes
1 answer
284 views

Code Explorer 2.0: A folder hierarchy to organize VBA projects

Next release of Rubberduck will introduce a very cool @Folder annotation system that the Code Explorer will use to organize modules into - you guessed it - folders: ...
Mathieu Guindon's user avatar