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

Image may be NSFW.
Clik here to view.

placing the context menu

Hi,I am trying to adjust the position of the context menu that shows up on right clicking the mouse.the context menu always appears close to the point of click but I want it to appear on the edge of...

View Article


Blend wpf i cant access textbox name to my main.cs

how can i access my textbox name or any other controls in my main.cs? 

View Article


[Question] Change toggle button state after a specific time

Hi everyone,I'm about making ToggleSwitch which is based on ToggleButton by using . It works fine, but now I want that after the move animation is done, the checked event or unchecked event is fired....

View Article

get text from textbox inside listview

Hi ,i have this listview in wpf , which has a gridviewcolumn that has textbox, now i am stuck how to get the text inside the textboxes for that particular datarowview or say for the selected item of...

View Article

Setting an Image or Shape as The Cursor Dynamically

In a WPF game I need to set the cursor as the player's piece. I don't want to to it through the properties, 'cause it will change every turn.so, I would like to know if anyone has an easy way to define...

View Article


ManipulationBoundaryFeedback does not work in webbrowser in wpf

I am using ManipulationBoundaryFeedback to avoid the window from being dragged on touch device , this works fine will all the other controls except when the webbrowser. Any work Around for this? Thank...

View Article

How to color a list box item at run time

I do not want to change colors in a selected or a highlighted item.  I want to color foreground on any item based on a program condition.IN windows forms I could change the drawmode property to...

View Article

Changing a button's background color (via code-behind)

Hi,I have the following button, and I'd like to change the background color of the button from white to a hex colour code from the code behind.<Button x:Name="btnContinue" Click="btnContinue_Click"...

View Article


Changing a button's background color (via code-behind)

Hi,I have the following button, and I'd like to change the background color of the button from white to a hex colour code from the code behind.<Button x:Name="btnContinue" Click="btnContinue_Click"...

View Article


How to integrate WPF NotifyIcon with Caliburn.Micro

Hi, can anyone help with my question? I've asked 20 days ago...http://stackoverflow.com/questions/27588784/how-to-integrate-wpf-notifyicon-with-caliburn-microAny insights?Take a look at WPF...

View Article

Draggable properties window on Canvas

Hello, in my application I am drawing selectable basic shapes like line ellipse rectangle inside a Canvas control. When user selects these control I want to display a draggable properties window...

View Article

WPF Label text alignment

Hi,I've dropped a 200px label on to my 800px Window with the text "TEST".However, when I set the alignment to left/right this sets the alignment of the label not the text inside the label.<Label...

View Article

Image may be NSFW.
Clik here to view.

Refresh DataGrid without freezing the application (asynchronous)

I have a DataGrid filled with 'verifiable objects'. A verification of one object takes about 150ms.A row looks like this:If I verify one object it can be valid or invalid:I can verify all object in the...

View Article


Win32Exception from ReleaseCapture call in Window.ShowDialog

Hi,We are getting "The operation completed successfully" Win32 exception in a very specific use case. In our application there are some old windows made in Progress OpenEdge that can be opened as...

View Article

Why doesn't this databind???

I have the following very simple XAML:<Window x:Class="WpfApplication7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article


border around button on mouse over

hi,I am trying to get a white border around a buttonwith green background on mouse over but the button always get filled with blue.<Button Height="35" Grid.Row="0" Background="Green" Grid.Column="1"...

View Article

CheckBox in DataGrid Header to Check or UnCheck CheckBoxes in all DataGrid Items

We have an MVVM application with what should be a simple requirement.  You've all seen this in the wild.  You check the "header" checkbox and all "detail" checkboxes become checked.  Ditto for...

View Article


wpf/webbrowser:-how to get height,width,scroll height and scroll width of...

hi I am using to web browser control to get  height,width,scroll height and scroll width in wpf c#.Could You please tell me how to achive this information if .pages contain this css on body....

View Article

SQLDataAdapter, DataTable and DataGrid

A WPF Navigation application using C# -Page1.xaml has a DataGrid (DataGrid1) defined like this:<DataGrid x:Name="DataGrid1" AlternatingRowBackground="LightBlue" HorizontalAlignment="Left"...

View Article

Changing Key Values

Hello I have a question about changing the key strokes values within system.windows.input and I wonder if anyone could help, I was asked by a friend if you could change the value of a key or keys at...

View Article
Browsing all 18858 articles
Browse latest View live


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