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

Image may be NSFW.
Clik here to view.

Textbox SelectionText Color

simple is that i need to make my (replica) software textHighlight just as it is in the Normal Notepad im using WPF.

View Article


Image may be NSFW.
Clik here to view.

DropShadowEffect is sometimes missing when dynamically adding many controls

foreach (DataRow dr in dt.Rows) { Rectangle rectangle_timeline = new Rectangle(); rectangle_timeline.Height = 19; rectangle_timeline.Cursor = Cursors.Hand; rectangle_timeline.Effect = new...

View Article


datagrid scrolling problem

Hi All,I have very strange problem in my Datagrid. I have used comboboxes and checkboxes to show their value in Datagrid.When i scroll my datagrid vertically then values of combobox selected item is...

View Article

After resize object (rectangle or grid), clip is not resized (help)

I have Grid which contain some graphics and all graphics are cliped with grid. The cliping object is inside grid, othervise I got black (or object colored) object.Imagine:Grid- rectangleClip-...

View Article

WPF: How to make TextBox only allow enter certain range of numbers?

In our WPF application, we need to restrict a TextBox to only allow to enter number from 5 to 9999.In WPF, we could implement the following to only allow the number inputin XAML, define TextBox's...

View Article


Image may be NSFW.
Clik here to view.

Showing popup or tooltip on TreeView item dragover

Hi,I have a requirement to display information as a popup or tool tip, while dragging on to tree view item.The information should move along with mouse, just similar to Windows behavior.Refer the...

View Article

Image may be NSFW.
Clik here to view.

How to use WPF to draw the density profile of mouse clicks?

My idea was to use the GetPosition method to get the coordinates for multiple clicks, then save them in a string, and then use the following if statement:if(x <192&& y...

View Article

How to add texture to 3D model?

I have a 3D model in .stl format. How can I add texture to it?

View Article


WPF: how to make the selection item highlight color stay in the listBox even...

In the listbox, when mouse over a selected row, it will display the selected row as the systemselection color (for example, Blue)However, when listbox lose the focus, the selected row become light...

View Article


Disabling text input in TextBox for WPF code

HiI have a textbox in which the input is displayed using buttons and if i want to disable text input on clicking the textbox what the code should be?It's a WPF code.Thanks in Advance!

View Article

Image may be NSFW.
Clik here to view.

How can I create a gradient blending effect in a .NET drawing?

I am trying to create a heat map with gradients,the code creates an image like this for overlapping points:  It does not blend. How can I create a gradient blending effect in a .NET drawing?

View Article

WindowChrome strange behaviour on Windows 10

Hello,we are working on WPF app that is using D3DImage and InteropBitmap for some real-time graphics. Rendering performance was fine until we add custom WindowChrome. Playing with different...

View Article

Image may be NSFW.
Clik here to view.

Datagrid not showing ObservableCollection

Hallo,I am making a quiz game with entityframework and MVVM light. Currently i am working on a part where you can create questions and answers to put into a quiz.What i'm trying to do is when i click...

View Article


How to customize Pie series of WPF charting toolkit ?

I want to assign different colors to different pie slices in WPF pie chart . Can you please help me to do this ? How to customize its style & how to assign colors to pie slices dynamically?Please...

View Article

How to pick new object instead of editing the properties of the object that...

Hi, is it possible to pick a new object instead of editing the properties of the object that it is bound in PropertyGrid?For exampleConsider module has a Employee property and it is of anEmployee type...

View Article


How to load content page into mainPage from another xaml page?

In my scenario, I have 3 separate pages MainPage.xaml, Content.xaml and Nav.xaml. I need to load a Content.xaml in 'ucMainContent' userControl that sits inside MainPage.xaml by clicking a button from...

View Article

Why is my ContextMenu item disabled?

Can someone please tell me why, in the following window:Code Block<Window x:Class="GuitarHelper.Main" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article


Image may be NSFW.
Clik here to view.

Common WPF toolbar

Hi,I want to use common toolbar for many views. My idea is:The toolbar is as user control: <Grid><dxb:MainMenuControl HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top"...

View Article

Problems With ScrollViewer

Hi I have faced a strange problem with my project. ScrollViewer does not send mouseWheel to its childern. I have searched a lot and everyone told me that always scrollviewer child catch mouseWheel...

View Article

Custom window and allow mouse to pass through window shadow (help)

I created custom window. Everything is working except when I create shadow around window, mouse is not pass events behind shadow.This is how I create shadow around window<Window...

View Article
Browsing all 18858 articles
Browse latest View live


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