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

how move object graphical with C#

how move a button or other objects - Graphical -Except this :button1.left = button1.left + 10;with C# or with WPF C#.

View Article


Expander Template: Trouble moving the location of the ToggleButton

I am using a control template for an Expander and I only want the expander to expand/contract if the button is checked/unchecked (I have this working) but I also wanted the button to be below the text....

View Article


contextmenu is flickering in windows xp

I have a contextmenu for a user control: xControl, the xControl will update every second based on some realtime data, so the context menu is blinking. but that only happens in xp. in windows 7, the...

View Article

merge resourcedictionary from another assembly

Here are lines of xaml from a UserControl. <ResourceDictionary.MergedDictionaries><ResourceDictionary Source="/BusinessLogic;component/Resources/Resources.xaml"...

View Article

Having a celltemplate inside a datagridcolumn with static resources converter...

Hi,I am generating a GridColumn within a DataTemplate("MyCellTemplate") as follows.<DataTemplate x:Key="MyCellTemplate"><ContentControl><dxg:GridColumn FieldName="{Binding...

View Article


Reshaping a Triangle using Adorners?

First, here's an example of the result that I'm after: http://www.mathopenref.com/trianglecircumcenter.html with one addition: I want to also be able to drag the center dot.I'm just getting started...

View Article

Print text over image flowdocument

Hello,I'm trying to print an image in the background of my text. eg a logo in  flowdocument C# dynamicWatermark in MswordPlease help

View Article

wpf popup Dispay on the Chart

Has to define a chart control in the other panels show there is no problem, but can not be displayed in the popup. seeking what are the solutions

View Article


wpf custom control reference in winform

I have written a custom wpf controls, by elementhost references to the project. Referral process are not problems in the implementation of all the the StaticResource resources are unavailable....

View Article


Presenting a character with image (Mini Game Project)

Hey,I'm working on a project that its actually a game.the game is about one good character that sould kill some bad ones.in that point, I'm having some truble with creating Class of character, and some...

View Article

How to set color of DataGridRow if it has same specific values in some of...

HelloDataGrid has columns from DataTable: myDataGrid.ItemsSource = dataTable.AsDataView();            I want have color row in DataRow if 5 of 7 columns on load dataTable has specific value. And every...

View Article

Do I Need MVVM

Hi, I have an old winforms app which is pretty large. I want to convert it to WPF. This app mainly needs user actions like, the user has to click a button and the data is presented, click another...

View Article

combobox in datagrid wpf

I have a DataGridTemplateColumn containing a combobox in its datatemplate in a datagrid wpf. the combobox has a name ie x:name="teh_cdcombo" and a selectionchanged event handler associated with this...

View Article


how to set a border content in code behind

hi everybody.I am making a usercontrol in which I have a border. I want to use it as a container.to be specific I am making something like a window control. I have the title bar and I added a border...

View Article

c# WPF Button Background Color with Thread

Hello Friends,I am designing a Quiz game, I am now facing a little problem I want to change the background of color of Button for few time. I am using this code:public void myMethod(){  if...

View Article


Can I use same Model for MVVM and ASP.Net MVC?

Hi,More I read about MVC and MVVM, and their connection, more I get confused. All I want is to use same Model for MVVM and MVC applications I am currently developing in WPF and ASP.Net MVC...

View Article

HOw to position the start angle of child in customer cirlce panel

Dear all,I am using this approach to display child item in circle as state in this exemple :http://www.codebullets.com/custom-circle-panel-wpf-part-1-216But the thing I am trying to do is that I would...

View Article


Close Login window and open mainwindow on Login

Hi, I have a WPF app using MVVM with a login screen, on login, I need the login window to close and the Mainwindow to open. Here's what I'm trying to do to achieve that: In App.xaml.cs: protected...

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

Expand/Close Expander control in parent UserControl or Window

Hi, using C# 2010 Express WPF form I have MainWindow with expander control and also calls EnvUsercontrol EnvUserControl itself has an Expander control and also calls JobUserControl Now, inside...

View Article
Browsing all 18858 articles
Browse latest View live


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