Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

enable treeviewitem edit from F2 key press or edit contextmenu in wpf mvvm

I have a treeview which works with mvvm binding. And i have contextmenu enabled for them. Now i want to give user the ability to edit the treeviewitem by pressing F2 key or right click...

View Article


Combobox not selecting after initial selection WPF MVVM

Hello all, I've got a ItemsControl loop of Comboboxes being created in my XAML.  I bind the ItemsSource to the Ancestor and the SelectedItem to a SelectedItem property in the model.  My problem is that...

View Article


Is it possible to use a dependency property in a the axml file of a custom...

I have a custom control, with an axml with the template and a .cs file as view model. In the axml I can use a converter to set the value of a property in this way:<TextBlock TextAlignment="Right"...

View Article

Help troubleshooting binding

I have two situations I believe are the same. One binds, the other doesn't. This is .net 4.6 with entity framework 6.This one works, it binds ID_GDB successfully.<ContentControl...

View Article

How to share an ObservableCollection between two views/viewmodels in wpf mvvm

Hi,I have two ViewModels VM1 and VM2  whereas VM1 creates or edits TreeViewItems on tab1. In another tab2 i have viewmodel VM2 which just reads the TreeViewItems which were created/edited by VM1. VM2...

View Article


Datagrid using MVVM Adding and Delete

Hello please help to my datagrid .. when i open the section of my datagrid it will not responding .. here's my datagrid code <Datagrid x:Name="dgrid_tempstore" ItemsSource="{Binding Path =...

View Article

Image may be NSFW.
Clik here to view.

Problem in binding Checked property of Radio Button in WPF

I have trouble in binding radio buttons in tab control template. I have a TabControl template with two radio buttons. I have binded the tab control ItemSource to the container from code behined. My...

View Article

I want to take backup multiple database of the sql server database on schdule...

 I want to take backup multiple database of the SQL server database on schedule based in C# WPF.  A. Schedule may be     a.Daily basis     b.Weekly basis.     c.Hourly basis.     d.All of these.vkp

View Article


Implementing Virtual Mode with Just-In-Time Data Loading in WPF forms

Dear support staff,I usually uses the datagridview in Windows Forms with the (Virtual Mode with Just-In-Time Data Loading) as illustrated in this...

View Article


Image may be NSFW.
Clik here to view.

tablet touch freeze

 I use a tablet.In wpf applicationPreviewMouseLeftButtonUp (object sender, MouseButtonEventArgs e)Use the event.Initially,work well.However,after a certaintime,Touchinghandswill not work.Butit works,...

View Article

Wizard to transform C# Windows.Forms to WPF

Hello,is there a Wizard wich helps to transfrom an existing C# Windows.Form Project to a C# WPF Project.The idea is that I open a Project file in the wizard and then the wizard try to transform all...

View Article

Changing the size of an Ribbon Application Menu

Hi,I wonder how to change the size of an application menu of a "Microsoft Ribbon for WPF" ribbon window.Setting the width property only chan ges the aplication menu button width, but I'd like to...

View Article

Same UI call in Loop

Hi,   In my WPF application i have event that i will show a window on a foreach loop. Window will show when i close the first then for second data same window will show and so on. how i can do...

View Article


EF Entity in DataGrid isn't changed when values get back to original

I'm not quite sure if it's right forum to post this thread, because it touches EF and WPF, but I guess my problem concerns WPF.So, here's the thing. I have EF entities (flights) bound to DataGrid in...

View Article

Task.Factory.StartNew with TaskScheduler.Default freezes UI. Net 4.0

I've read a Stephen Cleary's article that it is necessary to explicitly set from TaskScheduler.Current to TaskScheduler.Default. However, my UI still freezes and I can click any button while imitating...

View Article


Menu Icon interferes with separater

After inserting the (arbitrary) icon against "New" in the "File" menu the system disappears the <Separator/> which worked fine before the icon was added.Can anyone help me to display both the...

View Article

user control binding error

getting the following error when binding to a simple user control from a window.System.Windows.Data Error: 40 :  BindingExpression path error: 'FirstName' property not found on 'object' ''Control2'...

View Article


Image may be NSFW.
Clik here to view.

SQL Data extract and display

I need to display the data from SQL DB:I have db with number of loans for each customer and their current balance for past five years. ( The date part contains year, month, day)I need to display the...

View Article

Run coded ui test from WPF application

I want to run my coded ui test cases from a WPF application. However, when I initialize playback and call the test method, I am getting an error that the TestContext is NULL. Could anyone pls suggest...

View Article

Is it possible to create a custom control WPF in a class library project?

I have a test project that is a WPF project, in which I add a new item, a custom control (WPF). This creates a generic.axml file and the .cs with the code that controls the bussiness logic (MVVM...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>