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

WPF DataGrid Column FIltering using Behaviors

This is the simplest implementation of the 'DataGridBehavior' Class for column Filtering I could come up with: ...
user avatar
1 vote
1 answer
161 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 ...
user avatar
  • 149
2 votes
1 answer
132 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 ...
user avatar
  • 21
1 vote
1 answer
76 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 ...
user avatar
  • 414
1 vote
0 answers
29 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 ...
user avatar
  • 414
3 votes
1 answer
2k 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 ...
user avatar
  • 327
2 votes
0 answers
27 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 ...
user avatar
  • 414
4 votes
1 answer
82 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 ...
user avatar
  • 51
2 votes
0 answers
126 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 ...
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 ...
user avatar
  • 20.3k
2 votes
1 answer
763 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 ...
user avatar
  • 2,324
2 votes
1 answer
928 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 ...
user avatar
-2 votes
1 answer
46 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 ...
user avatar
2 votes
0 answers
108 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,...
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 ...
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 ...
user avatar
  • 347
-3 votes
1 answer
190 views

Initializing commands C# [closed]

...
user avatar
  • 414
0 votes
1 answer
9k 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 ...
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 ...
user avatar
  • 299
3 votes
0 answers
411 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 ...
user avatar
  • 8,438
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 ...
user avatar
  • 115
1 vote
1 answer
1k 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....
user avatar
  • 113
1 vote
0 answers
63 views

Script to append a new method to a XAML code-behind file

My company is converting a VB.NET project to a C# application and I was tasked with writing a script to automate part of the process. In particular, given information about a control name and event in ...
user avatar
2 votes
0 answers
331 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 ...
user avatar
  • 8,498
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 ...
user avatar
1 vote
0 answers
625 views

WPF "Glowing" button user control

I have created a "wrapper" for a button that "pulses" until the user presses the button. The implementation that I came up with is below, but I'm sure there's a better approach. ...
user avatar
  • 111
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
965 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 ...
user avatar
11 votes
2 answers
610 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 ...
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. <...
user avatar
  • 275
1 vote
4 answers
443 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 ...
user avatar
  • 157
2 votes
1 answer
5k 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 ...
user avatar
  • 275
2 votes
2 answers
3k 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 ...
user avatar
  • 5,920
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 ...
user avatar
  • 2,430
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 ...
user avatar
3 votes
1 answer
2k views

CollectionViewSource Filter trigger for multiple controls

I have some markup: ...
user avatar
4 votes
2 answers
132 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
903 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 ...
user avatar
  • 2,430
9 votes
1 answer
1k 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 ...
user avatar
  • 8,498
7 votes
1 answer
502 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 ...
user avatar
3 votes
1 answer
311 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 ...
user avatar
  • 201
4 votes
1 answer
62 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 ...
user avatar
5 votes
1 answer
258 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
620 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
187 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 ...
user avatar
1 vote
1 answer
69 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. ...
user avatar
  • 1,506
2 votes
1 answer
394 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 ...
user avatar
4 votes
1 answer
88 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, ...
user avatar
  • 1,506
10 votes
1 answer
33k 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 ...
user avatar
5 votes
1 answer
128 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 ...
user avatar
  • 585