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

WPF Dependency property issue for usercontrol

Hi,In my application, i want to bind an object to a new dependency property which i have created. But i am not able to assign it correctly. If i assign the same object tp DataContext of the UserControl...

View Article


Passing a value from 1 Window to Another

Hi, I have 2 Windows in my WPF C# project.I have a textbox in both windows. One is called genBox.Text (passGenerator.xaml) and the other is calledpassBox.Password (MainWindow.xaml). I want the user to...

View Article


How to create properties and collections at run time in C#?

Hello, I have to create the properties at run time in modal class and have to attach INotifyInterface to those columns. Also I have  to create the observable collections at run time and bind it to grid...

View Article

C# : How to identify the cell format is Number or currency ot accounting or...

Hello, I have come across scenario wherein I have to identify the cell format  is Number or currency or accounting or percentage in excel using Interop Please let  me know how to do this.

View Article

WPF: how can we chang the combobox dropdown box's background with override...

Is there a simply way that we can change the Combobox drop down box's background without override whole combobox controltemplate?the default combobox dropdown box background is white. we like to...

View Article


ExpanderList not working within an unselected TabItem

Hi all,I implemented an ExpanderList and it seems to work quite well, unless I put it into a TabControl.Only if it is embedded into the TabItem which is selected by default, it is working. If it is...

View Article

How to have different groups or do nested condition checking using...

I want to be able to do something like.<MultiDataTrigger>     <MultiDataTrigger.Conditions>      <Condition Binding="{Binding CheckGroup1}" Value=true>           Value="false"...

View Article

How to dynamically disable validation when the control is hidden or diisabled?

How to dynamically disable validation when the control is hidden or diisabled?Again I want to enable the validation when the control is visible and enabled.?The Xaml looks like <TextBox...

View Article


3d border around datagrid

i have a custom layout datagrid.i want all the datagrid to have a 3d border around it.i tried to wrap it with border but it didnt affect its border.what should i do?thanks in advance

View Article


WPF Ribbon Commands in vs2010

Hallo,I am working with VS2010 and i installed the latest Ribbon. I have a problem using commands.My commands work if i place them in the MainWindow code where the ribbon is also placed (see...

View Article

Get the current UserControl in a project in WPF

I have lots of UserControl in a project build on MainWindow , they will be show different view in screen, I can switch those UserControl but I want get information of current UserControl.How can I get...

View Article

input validition c#

i am pretty new in wpf.i understood that it have input validion error binding.i have read some articles but they were too hard for me.i just want to know what i should do in the code behind with very...

View Article

WPF Slider problem

HiI have a WPF Slider where the values are set as follows.MinValue = 0.1Max Value = 1Small change and Large Change both set to 0.01.Now the problem is when i run the slider, it is showing both 0.1 and...

View Article


Wierd issue with button click event

Dear all,I have a strange beaviour with a button click event.I have a main windows which display a map( it could be anything else). The main windows is based on a main grid where controls gets align...

View Article

Retrieving error details from a process using BeginErrorReadLine() method...

HiI have a wpf program for Video audio merging using the tool ffmpeg. I am using BackgroundWorker for accomplishing this task. On my DoWork method of my backgroundWorker I have a foreach loop. Inside...

View Article


i want to add a button corressponding to each row in datagrid how can we do...

i want to add a button corressponding to each row in datagrid how can we do that.....

View Article

WPF APPLICATION IDLE

Hi,I have done one application using Wpf. if run the application and idle for some time(20 min) the application is going to struck.Shall i include any configuration for the wpf application.Thanks.

View Article


How to create properties and collections at run time in C# (SilverLight)?

Hello, I have to create the properties at run time in modal class and have to attach INotifyInterface to those columns. Also I have  to create the observable collections at run time and bind it to grid...

View Article

Namespace collision in the .NET code generated from XAML file

Below I describe how to reproduce an error I'm receiving.  It behaves the same in VS 2010, 2012, and 2013.Steps to reproduce the error:1. Create a solution.2. Create a C# class library called Common,...

View Article

How to get focus in to content(usercontrol) element(combobox) of tab item.

I am adding tabitem  to tabcontrol,setting content to tabitem  in runtime I want focus(logical and keyboard) in content control's element(combox) but focus stays on tabitem not to its content control's...

View Article
Browsing all 18858 articles
Browse latest View live


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