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

DispatcherTimer IsEnabled is returning true but alarm event not called

Background: As I understand it, DispatcherTimer's Start method resets the timer's interval and thus restarts the alarm time when called so when I wrote a DispatcherTimer wrapper class I explicitly...

View Article


WPF datagrid selection and selecteditem binding

Hi, I am not sure if I have enabled the selection mode, but I do have set selectionmode = single. But the selecteditem binding returns null every time. <DataGrid x:Name="dataGrid" Grid.Column="1"...

View Article


How do I refresh the ItemsSource for a ComboBox during runtime after adding a...

I have posted multiple questions here as I have struggled through the stages of developing this software.My application has two windows(using WPF and C# in Visual Studio 2015).The first window...

View Article

ScrollBar for Canvas as Container

Hi,I have a master canvas which accepts any images and shapes.When a rectangle is added into this master canvas i am creating a child canvas inside rectangle to hold any objects inside rectangle.So,...

View Article

Image may be NSFW.
Clik here to view.

Adornor - ArrangeOverride() is not called for Line when line is moved out of...

Hi,i am facing problem when moving line object using arrow keys.ArrangeOverride() method of Adornor is called when the line is inside its parent rectangle. But when the line goes out of parent...

View Article


using svg in wpf controll

hello comrade - please help how to use svg image for animating wpf controll ?tnx very much

View Article

Displaying Recursive Data in a Treeview

I have a table in my SQL Server database which has two columns: HID: a hierarchyid Name: a string In my application I have a Node class that just has those two properties. I import the data into Node...

View Article

Now that Microsoft is on a trend to release Open Source software, is there a...

First with .NET core, now I notice they even release some Visual Studio code editors for the Mac and Linux. I know it's hard to implement WPF on everything because of the Direct3D code, but I wonder if...

View Article


WPF MediaKit: MediaUriElement playing a streaming properly, but...

Hi,I have a UserControl containing a WPFMediaKit:MediaUriElement, playing properly a video streaming, received from network, visible, and everything seems to be working fine.When I wanted to add Input...

View Article


How do i make 2 or more window sharing the countdown timer?

This is my code so far:Main Window:private int time = 5; //5 second DispatcherTimer timer = new DispatcherTimer(); public MainWindow{ InitializeComponent(); timer.Interval = new TimeSpan (0,0,1);...

View Article

WPF app and dispatcher: Issue with making UI responsive

Hello, I've a C#/WPF app in which I'm using a Webbrowser control. I'm trying to set the value of DocumentPath from within my view model using Dispatcher. But my UI gets becomes unresponsive until the...

View Article

Property change event not triggered for enum type while binding in MVVM

Hi,I have created simple MVVM sample with two buttons named "Width" (enumeration binding) and "150" (integer binding) in WPF. The "150" button is properly triggered the ZoomPropertyChanged in...

View Article

Propertychange event not triggered for enum type in MVVM binding

Hi,I have created simple MVVM sample with two buttons named "Width" (enumeration binding) and "150" (integer binding) in WPF. The "150" button is properly triggered the ZoomPropertyChanged in...

View Article


Listbox inside tabcontrol IsSynchronizedWithCurrentItem issue

I have a TabControl that has tabs for certain nodes of my XML. In each tab there is a ListBox with other items loaded from XML. Next part of the window is taken by stackpanel that has textboxes inside...

View Article

Rendering the contents of file stream

I have a file Stream object and want to render the content of that file Stream object opening it. What's the best approach to do that?

View Article


Binding

I have codepublic class Pipe    {public Mounting Mounting { get; set; }} public class Mounting    { public float Diametr { get; set; }} var pipe = (Pipe)item.Value; var binding = new Binding();...

View Article

How do you write to a specific field in a TreeView in C#?

I have a TreeView:<TreeView Name="OOB"<!-- etc., -->And I know which item was clicked on: selectedNode = ((XmlNode)treeViewItem.Header);The TreeView is built from this XML file:<?xml...

View Article


Reference to control in DP is not set

I have the following problem.  The application does not really matter it is  the method of getting a reference to an array of controls that is set in the XAML.  The code I am showing is not the actual...

View Article

WPF MVVM display selected data from one datagrid in one view to another...

Hi, I am new to WPF MVVM, how should I display selected data from one datagrid in one view to another datagrid in the new view?

View Article

Image may be NSFW.
Clik here to view.

Want to be the Microsoft TechNet Windows Presentation Foundation Guru for...

February 2017 Guru, it’s time to share great skills as a TechNet Wiki article and WIN medal(s). Medals? Yes, you can share multiple articles in the same or different categories! Now, navigate to...

View Article
Browsing all 18858 articles
Browse latest View live


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