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

PreviewMouseDown event not always firing

I have a border that is acting as a button, although within it there is a grid with textblocks in the cells of the grid. I am using the previewmousedown event to test to check the data of this border...

View Article


Entity Framework and Navigation window

Hi all :)I am trying to implement  Julie Lerman's entity framework for Master-Detail scenario on Navigation Window.when I try to drag and drop a control ( for example a datagrid) on a Page it doesn't...

View Article


Refresh UI With Dispatcher In Detail

I have read that this refreshes the UI but why so? I have been using this sometimes and it kinda sometimes worked but what happens in details when I execute this code below. Dispatcher invokes this...

View Article

Mediaclock Issues with updation of Current Time.

I am using a Mediaplayer in CLOCK mode to play an audio file. The current time of the mediaclock is updated fine with a single mode audio file. If I run a multi-mode audio file which varies between 3/2...

View Article

WPF - How to make part of a string bold

I am brand-new to WPF development.  I am an ASP.Net developer using C# and VB.Net.I am working on my first WPF project using C#.  I have the following code:string directions = "";directions += "Start:...

View Article


DocumentViewer causes Application crash when clicked

I am using a DocumentViewer control in an embedded application that has a touch screen interface.  When the control is 'clicked' by a finger touch, the application crashes and exits. Does this cause a...

View Article

VS2012 WPF Designer: d:DataContext - number of generic arguments provided...

When using a class as a d:DesignInstance that exposes aKeyedCollection<TKey, TItem>, the XAML designer complains with the following warning:The number of generic arguments provided doesn't equal...

View Article

The mysterious code about measuring in WPF

Hi guys,what is this code part doing. I have seen this inside a custom control in WPF.this.InvalidateMeasure(); this.UpdateLayout();Both commands are together. I guess the first one is invalidating...

View Article


How to increase spacing between controls as the size of the window increases?

How do you increase spacing between controls in a stack panel (I can put it into another container if appropriate) as the size of the window increases?and obviously the other way round (i.e. reduce...

View Article


Lookup value using data binding relation in DataGrid

I have a dataGrid which is bound to a contact table. The contact table has an ID value (integer) but the company name is stored in a second parent table called company. As it is a parent relation it...

View Article

Binding to FlowDocumentReader Document field help?...

Hi, OS: Windows 7 SP1 IDE: VS 2010 Express WPF Project: .NET 4.0 Code Practice: Prism, Unity, MVVM I've seen posts on the internet regarding the Binding to a FlowDocument, but these post were all dated...

View Article

ComboBox IsEditable is driving me nuts

I can't seem to remove the read-only. accessible setter error in xamlPlatform- WinRTAll I'm trying to achieve is a simple enter text or select from a comboBox that has turned into hours of frustration....

View Article

Layout question

I want the contents to fit the screen, with the datagrids to have scrollbars if the content doesn't fit.This is what I got<Grid x:Name="panelMain"><Grid.RowDefinitions><RowDefinition...

View Article


WFP How do I get the file name for the image used on a form?

Hey guys,I have a program that allows image objects to be added dynamically.  What I want to be able to do is to check the name of the file that is the source of the image.  I know that the the...

View Article

Image may be NSFW.
Clik here to view.

WPF DYNAMIC TREE VIEW....

Hi,I have a method it will return a TreeViewItem                      public TreeViewItem loadtree()       {           DataTable table1 = new DataTable();           table1.Columns.Add("EmpId");...

View Article


Why do I need the WF?

Hi All,I thought, I am very skills with .NET 4.5 Async and Await.  long-running processesWhy? Are there any benefit about those?Best Regards,WP

View Article

Image may be NSFW.
Clik here to view.

Filter Control in Menuitem as it's content

Hi All,I wanted to add following Filter control in Menu item as it's content in Popup , how is it possible any ideas?Sincerely, dhampall Please remember to mark the replies as answers if they help and...

View Article


MVVM VIewModel and view relationship question

can anyone confirm the following for me.From what i keep reading ive noticed this "The viewmodel knows nothing about the view".  This means it doesn't have a dependency on the view.  Is the purpose of...

View Article

XPS FlowDocument Two BlockUIContainers Side By Side

Hi ThereI am looking for a way to have two BlockUIContainers (FIGURE) (side by side) in a paragraph? Please note that I cannot use InlineUiContainer (which makes it possible to align two controls side...

View Article

Why is my dockpanel's LastChild overflowing its container?

I have a DockPanel with LastChildFill = true. It has 4 children: a StackPanel(top), another DockPanel(top), and three more StackPanels(bottom, left & none respectively). The last StackPanel...

View Article
Browsing all 18858 articles
Browse latest View live


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