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

Binding comobox to cells in datagrid and adding rows dynamically.

 I have a filter kind of interface which takes 3 fields. The filter and operator contains combobox list while value is a textbox. So i want to bind the same list to comboboxes in all the rows and when...

View Article


Why is the MainWindow of my mvvm project instanced twice on startup?

I created an mvvm wpf project (called DemoApp) which is a basic customer list/add a customer type demo project.  The project actually runs as expected except that on startup that MainWindow.xaml is...

View Article


RichTextBox slows down the entire UI

I have an application which opens multiple text files in different tabs. I use RichTextBox while processing this data in my application. However, loading large text files(10MB) slows the entire UI. Is...

View Article

Trigger WPF Style on Value Increase or Decrease

Hi, I wish to trigger a different Style in WPF based upon if a value of a particular property on a ViewModel increases or decreases.I think what I need to do is to embed some logic in my view model at...

View Article

VisualTrue in WPF - Find DataTemplate - Generated Elements :...

I trying to find elements that are generated by a DataTemplate like in "http://msdn.microsoft.com/en-us/library/bb613579(v=vs.110).aspx". but it didn't work....

View Article


Using WindowsHost usercontrol inside Layoutdocument in AvalonDock

Hi ,I am new to avalondock and using it my WPF solution.In order to use Window control in my application i am hosting the control inside Layout document in my Xaml as follows....

View Article

Visual Studio 2013 XAML editor not showing window

Hi,I just upgraded from VS 2010 to VS 2013. In general the IDE looks great and have a lot of small improvements that i find useful for everyday coding.The problem that i have is with my main Window on...

View Article

Explicit binding in XAML..

Hello All,In my application, i have few control which are displaying data from a object. And i have a button, which allows user to save the modified data in the object. I can use explicit data binding...

View Article


How to prevent the width of the main window from changing.

Hello,I've been struggling with this problem all morning. How to set Window.MinWith = Window.MaxWidth without hardcoding any values, thus preventing the user from resizing the window's width. In XAML...

View Article


Disable Combo box of user control in wpf

Hi, I have one user control which contains Two comboobx, six textbox and 4 labels.I I have added this user control in main window xaml like this:    <Grid Height="Auto" HorizontalAlignment="Left"...

View Article

How to make a glossy polygon?

I have a couple of arrows and shapes being drawn using Polygon. The Fill property is bound to a dependency property so it is possible to change the polygons' color in code. While functional the result...

View Article

How to prevent texture resample for shader input?

  Dear community members,it would be very nice if somebody can help me with some very weird problem.The problem can be easy described by citing part of this article...

View Article

MultiBinding to Polygon.Points has error in designer but work in runnning

<Grid x:Name="control" ><Polygon x:Name="pg" Fill="Black" Stroke="Black" FillRule="Nonzero"><Polygon.Points><MultiBinding Converter="{StaticResource pointConverter}"...

View Article


MVVM Light and EF 6

After a few years of experiencewith the EntityFramework, the time has come tostart studyingMVVM usingMVVM Light. I developeda small application thatwill perform the classicCRUD operations,and throughEF...

View Article

Import a namespace of a DLL that is embedded in my .EXE

Hi I've got a WPF project that uses 2 DLL's, both are from WPFToolkit.I can embed both files and have had success getting my program to work. However, one of them has to be referenced in my XAML file....

View Article


Preventing multiple insertion in a database from C#

Good day my brilliant friends,I have another pickle to deal with today. I am creating a WPF application, which allows my clients to generate a series of 10 digit number based on an already defined...

View Article

How to bind to a property higher up in a control in XAML?

In the following example I am trying to bind a GradientStop's Color to the Stroke property in the Polygon that contains the brush. However, it is unclear how to do that. Ancestor doesn't...

View Article


C#/WPF viewing and .eps .ai vector - looking for tutorial / examples / API

I would like to create WPF/C# application to display vector graphics files ai or eps .Are there any good C# tutorials/API/Library for this?All I found with google is ".ai to XAML" coverter, but it...

View Article

I want to develop application for electronic device like solar device handel...

Hi All,             I want to develop application  for electronic device like solar device  handel by WPF/C# application.this application data communicat (Bit/Byte , Registers and ModeBus) between...

View Article

WPF binding not worked for foreground property in TextBlock

Hi All, I want to set the text color of textblock text with foreground property.  http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.foreground(v=vs.100).aspx So I have...

View Article
Browsing all 18858 articles
Browse latest View live


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