xaml

  1. MikeI

    Question Obtaining a specific layout in WPF

    I have a question about WPF. The interface shown in the GIF is something written in C++. I've been trying to replicate this effect for some time, but with no success. What I've been trying to do is create a trigger to give the grid column definition a width of "*" instead of the regular "4*"...
  2. B

    Removing treeviewitem using MVVM pattern in WPF application

    I'm making a file explorer app using MVVM pattern in C# WPF. Right now I want to implement watcher events that are responsible for adding, removing and renaming items from treeview. I already have adding, and partially renaming (I think that in this case I have to combine deleting and adding)...
  3. M

    How to Scale WPF application according to screen resolution?

    I make a WPF application in .Net Framework 4.7. I developed this application on my Laptop which has full HD resolution (1920*1080). My problem is when I run my application on a low resolution monitor (1366*768), my application don't scale up according to the screen resolution. I tried using Per...
  4. destro

    Question How do I get the values in all columns of a row with button click event in code behind?

    I have an ItemTemplate in my WPF app main window which shows the details of all personnel in SQLite database. Each row has 8 columns and one of them is the delete button. I want to get the values inside all fields of the row whose delete button is clicked on in my code-behind. I have...
  5. destro

    Resolved How can I bind my objects horizontally using itemTemplate?

    I have an observablecollection of class type as follows: public ObservableCollection<selectedLevel> selectedLevels { get; set; } selectedLevels = new ObservableCollection<selectedLevel>(); public class selectedLevel { public string Level { get; set; } public...
  6. destro

    Question How can I bind the property of class Object with a textblock?

    I have two classes in my script and an observable collection of secondary class type. The method in the main class adds several objects of Person class type in an observable collection defined and initialized in primary class as follows: public class PrimaryClass : BaseViewModel {...
  7. destro

    Resolved How to set click event for primary menu items in xaml?

    My Menu is perfectly bound with observable collection in view model and all submenu items fires click event properly using below xaml, but I am unable to set the same click event for first menu items. Is it possible to set same click event on all primary menu items? <Menu Background="Lavender"...
  8. destro

    Resolved change the selected Value of a bound combo box from a window button?

    How do I change the selected Value of a combo box from a window button when combo box is binded with enumList in its own viewmodel? I have two Windows and several user controls in my project, one of the user control Ribbon is placed on MainWindow. The Ribbon is groupBox user control containing...
  9. W

    Resolved ScrollViewer doesn't work with dynamically created content

    Hi, I have a dockPanel inside a scrollviewer. In that dockpanel I create a lot of buttons, and what happens is that the scrollviewer doesnt react at all and new buttons just clip through the app. (And when I resize the app they stay cropped). I can't find any instructions on how to set that up...
  10. H

    Question Start in learn WPF and I have a little problem...

    I have read this book https://www.tutorialspoint.com/wpf/wpf_tutorial.pdf and on page 22,23 this code example do not run.... and Am I missing? UserControl1.xaml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using...
  11. Neal

    Question WPF vs. Winforms 2018

    One of those questions that are frequent, annual, and indecisive! When considering a new project in 2018 what platform are you choosing for Windows and why? WPF is the current and future platform, some say, yet Winforms continues to grow by 3rd party vendors (I use Developer Express) as if WPF...
  12. J

    How Do I Add Search Feature To My Wp8 App

    Good day i am developing an application that has several pages in it, instead of the user having to go through the stress of navigating to the required page i will like to add a search feature in which when the user type in the required page keyword it will take the user to the page without...
  13. J

    Increase and decrease font size in wp8 app

    Good day I will like to add a feature that will give users ability to increase and decrease the font size of my app The size should be from 1-5 or small, medium and big How can i implement this Reply soon and thank you in advance
Top Bottom