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

Image may be NSFW.
Clik here to view.

WPF Change the object opacity in Circular way

For the sake of example lets assume I have Captain America's two shields as displayed in image. I am laying new image underneath the old. Now upon some interaction like a button click, I want an...

View Article


How to load TreeViewITem style from Resource Dictionary in wpf mvvm

In my TreeViewDictionary.xaml i have defined the style as below. Its a Resource Dictionary file for reuse. How do i refer this treeviewitem in view . When i refer it using ItemCcontainerStyle of...

View Article


Multiple UI Threads in the same window

I have a WPF application that hosts different usercontrols in tabs. Since every usercontrol is independent i would want to run each one in a separate UI thread (similar to how Google Chrome runs each...

View Article

Image may be NSFW.
Clik here to view.

How are colored words in brackets in RichTextBox in WPF ?

How are colored words in brackets in RichTextBox in WPF ?as the following picture :

View Article

property value changing back to null inside combobox of a datagrid column...

HiI have a datagrid with two columns . First column has a combo box to choose a value from  and second column is a text box . Both of them display data correctly . This datagrid data collection is part...

View Article


change context menu of ListBox when ListBoxItem contains TextBox?

I am using <DataTemplate> to set the content of a ListBoxItem to a TextBox.  But the TextBox brings along a default ContextMenu Which overrides the <ListBox.ContextMenu> I am defining.  How...

View Article

Bind Viewmodel to View using Caliburn Micro

Hi,in my mainviewmodel i have a variable currentviewmodel where the main content is shown, when i set the currentviewmodel to a viewmodel i want to show, it only shows the path where the viewmodel is...

View Article

Using ListCollectionView.CustomSort gives me duplicate entries

I'm not sure what I'm seeing here.My application adds lots of items to an ObservableCollection in multiple threads. To make dispatching to the UI thread any efficient, I queue the CollectionChanged...

View Article


Image may be NSFW.
Clik here to view.

XAML is not loading, d:Height & d:Width are not recognized?

<UserControl x:Class="PressureVessels.UserControls.NozzleUC" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"...

View Article


Add tree view item dynamically in WPF

I have two user controls like name usercontrol1 and usercontrol2  in usercontrol1 i have one tree view.In another usercontrol2 i have textbox and save button. on click of save button i need to add this...

View Article

Outlook Integration With WPF Application

Is there any way to integrate Microsoft Outlook with my application(Window based application,build on .Net Framework 4.0)Requirement is as follows:-Person will be able to use calendar provided in...

View Article

Windows media player embbeded in winforms not playing network files continously

Hi, I just included a windows media player in a winform (using wmplib dll). And this form was called in an WPF window to play network videos(Playing videos from the server, which is a growing video...

View Article

Outlook Integration With WPF Application

Is there any way to integrate Microsoft Outlook with my application(Window based application,build on .Net Framework 4.0)Requirement is as follows:-Person will be able to use calendar provided in...

View Article


Using TwoWay mode in AutoCompleteTextBox

Hello, I've following xaml code in my WPF app.If I keep he Mode for "Text" as TwoWay, the autocomplete text box does not respond to mouse clicks...i.e.lets say i  type  'A' in the searchbox, then it...

View Article

Image may be NSFW.
Clik here to view.

Highlighted Text does not scroll correctly

I have a RichTextBox that I am searching.  When the search result is selected the text is then highlighted correctly.  However, once the RichTextBox is scrolled, the highlight does not follow the text...

View Article


TextBox in DataGridTemplateColumn CellTemplate with TreeView wpf mvvm

I have a data grid which has three columns and one of the column i have looks like below:<DataGridTemplateColumn Header="Field"...

View Article

Implementing Hit Testing for Strokes of InkCanvas

I've implemented a custom InkCanvas and multiple custom Strokes, which are described here: Custom Rendering InkEvery thing works fine, except I can't do Hit Testing on my strokes. At the "Implementing...

View Article


Coverting from WinForm - Runtime error -...

This is an odd issue. When working on this yesterday, the program would stop, highlight the area of code I was working on and present "NullReferenceException," and linked to this...

View Article

Display Scaling Issue after Anniversary Update

I've run into an issue with the behavior of my WPF applications (all of them) since the Anniversary Update.  I'm wondering if anyone else has encountered this and what (if anything) you did to fix...

View Article

Correct use of Addhandeler and RemoveHandeler

Hello there, ok I am trying to understand adding and removing event handelers.In this very small example I have 1 button and 2 labels.When the button is clicked for the first time label is loaded with...

View Article
Browsing all 18858 articles
Browse latest View live


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