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

1 XAML GridSplitter works, 1 does not?

I am trying to use XAML to create a main window with various drawing areas (most with text, one with graphics). I'd like to be able to resize two of the areas with GridSplitter tools. The XAML below...

View Article


Image may be NSFW.
Clik here to view.

A New Year, a New Challenge! Become the FIRST WPF Guru of 2015!

Happy New Year!"Guru 2014" is so 'last year'!The real glory is to be the first Guru of 2015! :DThe birth of a new year, and a new hero?Or the stamp of authority from long established Guru leaders?The...

View Article


Image may be NSFW.
Clik here to view.

Unable to solve Datagrid solution

I am trying to rewrite a Windows form program to WPF. The top image is the original program that I am trying to recreate in WPF. For the moment I have a test program that I am using to try and achieve...

View Article

Bind Enum to Combobox.SelectedIndex

hi.. group, if i have variable whose type is enum and want to bind it to comboBox.SelectedIndex.  if i use code, I can easily convert enum to int. When I bind enum to comboBox.SelectedIndex, I was...

View Article

How can I pass value child window to parent window by ComboBox (WPF and MVVM)

I have a child window and there is ComboBox. I want to get value child window to parent window using WPF and MVVM. Can anyone help me how to do it ??

View Article


How to remove/Hide border of Grid in WPF.

Could anybody help me out, how to hide/remove border of Grid in WPF.<Grid Grid.Row="3" Background="Transparent" Margin="26,0,6,0" ShowGridLines="False" >                 <Grid.Resources>...

View Article

Passing specific data to multiple instance of User Control in WPF (C#)

I am developing the desktop application using WPF with MVVM architecture, In which, I created one User Control (View) contains the Menu control and its Menu Items would be added dynamically from its...

View Article

Can I have a pack path in the XmlWriter.Create() method?

Hi Everyone,This piece of code is throwing "The given path's format is not supported" error!var settings = new XmlWriterSettings(); settings.Indent = true; var writer =...

View Article


grouping listview case-insensitive

Hi All.I grouping ListView by that wayDim DeptListSource = CType(Me.Resources("cvEmpDeptList"), CollectionViewSource) Dim groupDescription As PropertyGroupDescription = New...

View Article


Problem to add .MDF file from Visual Studio 2010 application

Hi All I would like to add to project WPF applicaction in VS 2010 .MDF file. The problem is that when I am trying to add new service-based database (.mdf) I am getting the error "Connection to SQL...

View Article

What happens to merged ResourceDictionaries in App.xaml in DesignMode?

I have a requirement to load and merge ResourceDictionaries in code at runtime according to certain configuration options. Merging the dictionaries in the Application.OnStartup method works fine of...

View Article

Image may be NSFW.
Clik here to view.

Button mouseover event hides the button's background Image

hi,I used an image for a button's background in WPF.I also want the button to glow when mouse is over it. I used triggers to do this.But when the mouse is over the button, the image is hidden and the...

View Article

3d PROJECT

HiI am in the middel of a 3d projcet for school .And I did a punction for draging 3d object , and I dont knowwhy bout its moving very weird it's like get suddnely stuck,and don't move all around the...

View Article


Canvas Dynamic Sizing problem

I created a class to build a Dynamic Bargraph, which works allright. I only have an issue to get the Canvas to the minimum size required plus a little extra to just display the content. It always...

View Article

changing a certain row background in datagrid programmatically

hi every one,i have  a code like this For Each item As Server In ServerList.Items If item.ID = IDInput.Text Then 'change the item background End If Nextit would have been very simple if it was .net...

View Article


How do I get text on one form to appear on another form?

I'm new to coding (obviously), so sorry for the noob question.I'm trying to get the text in TextBox1 on PC1Initiatives to appear at TextBox5 on PartyStaging (and possibly multiple other places in the...

View Article

Adding DAL in MVVM

I was wondering how one incorporates a DAL and BAL into a WPF application that uses MVVM. Suppose I have an object called Rectangle in which it persists it name, length and width to a database or file....

View Article


3D elements drag and drop in 3d aria

Who can help? WPF project type, use UI3DElements I try to drag a three-dimensional object in a three dimensional space. And Details: I have a room (floor) three-dimensional, and I want to put on it...

View Article

how to bind custom class collections to wpf datagrid combobox (multiselected)

Please help me figure out how to bind custom class collection to datagrid combobox. My custom class...

View Article

apply ContextMenu for some controls

Hi All.In form I have ContextMenu for search icon that located under StackPanel. Under that StackPanel I also have other controls. Is it possible to have same ContextMenu effect for all controls under...

View Article
Browsing all 18858 articles
Browse latest View live


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