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

Button within List view

Hi, I want to attach one picture file to button below <GridViewColumn Header="Edit Record"><GridViewColumn.CellTemplate><DataTemplate><StackPanel Margin="6,2,6,2"><Button...

View Article


how to draw an arrow line point to a ellipse or textblock like state machine...

how to draw an arrow line point to a ellipse or textblock like state machine graphNew

View Article


WPF touch application: Scaling in one direction only

I'm trying to get a WPF multi-touch application working. One of the things I need in this app is the ability to independently scale in the X and Y directions - so if you move your fingers more...

View Article

[WPF ]How to implement the idea inside Style?

The idea: There is grid inside Window. I need to create Style for 2 scenarios. Scenario 1:Mouse enters grid.Mouse leaves gridGrid's background becomes Red. Scenario 2:Mouse enters grid.Mouse presses...

View Article

Why does VS 2015 say the namespace doesn't exist, when it clearly does?

One of my co-workers has made a side project, using the same namespace as our main project. However I can't compile it. I'm getting errors that the "CoreFramework" project doesn't exist. It does. I...

View Article


Access Property in ContentControl's Parent ViewModel

I have got my MainWindow which loads new UserControls and there ViewModel's into it's ContentControl, so the Views are switched. However, I need to access a property in my MainWindow ViewModel from a...

View Article

ForeignKeyReferenceAlreadyHasValueException - Linq and MVVM

Hi,I have a table User with a foreign key IDCity to an ID in a table City. They are in different datacontexts and i'm trying to edit them on usercontrol. I have a combobox that is working when adding a...

View Article

Installed font missing from WPF designer font family

Hi - I'm working in Visual Studio 2012 on a WPF application. We have 5 fonts we hope to use: 4 work fine, but one ("NeueHelveticaPro-49CmLight.ttf") doesn't appear as a selection for the font family in...

View Article


I am trying to set the selectedIndex of a datagrid when I click a button with...

I have a datagrid and a button. I would like to set the selectedIndex of the datagrid to -1 to deselect all the items when I click the button, but the data trigger is not fire, because after clicking...

View Article


Avoid hang in WPF application using WindowsFormsHostControl

public partial class MainWindow : Window { public IntPtr MainWindowHandle { get; set; } [DllImport("user32.dll", SetLastError = true)] private static extern long SetParent(IntPtr hWndChild, IntPtr...

View Article

Rotations

Hi, I'm Daniel and fairly new to programming but I have this, probably a simple task,  but I can't quite solve it. :-/ I have to rotate/move the line using a slider so that like the bottom of the line...

View Article

Adding Buttons to a Canvas in a Grid Format

It seems a canvas is ideal for this... if I want to continually add buttons to a grid-type display and have them stored somewhere where they can be saved, then a canvas is the best option?What I don't...

View Article

Rendering images and geometry from WPF objects in ASP.net application doesn't...

Hi! I'm working on ASP.net (4.5 at this moment) application, which consumes API, which was before consumed by WPF app.There are tasks I'm trying to achieve:Iterate through list of objects, which are...

View Article


I am not able to find why is null the list in this behavior to get the...

I am following this example.https://social.msdn.microsoft.com/Forums/en-US/5041c158-e48b-4efd-9f73-848a85abba83/datagrid-selecteditems-in-mvvm?forum=wpfAnd I open this new obe because the original post...

View Article

Datagrid SelectedItems in MVVM

Hi,I have written the following for retrieving the datagrid selecteditems, which is a readonly property .namespace Wpf.Behaviours {    using System.Collections;    using System.Windows;    using...

View Article


Runtime cursor change

Hi, I am new to C# and WPF. I need to change the mouse cursor to a Rectangular type cursor in runtime.The cursor should show when the custom cursor should show when mouse move out of the window. and it...

View Article

Problem to Datagrid

Hi, I do not know why the two columns below, were repeatedly shown as the last two columns, using these codes<DataGrid x:Name="dataGrid"><DataGrid.Columns><DataGridTextColumn...

View Article


DataAnnotations

Hi to allSo I have just finished reading about IDataErrorInfo, when I came upon DataAnnotations.  Seem useful, a logical idea to have something like that implemented, but the problem is, they don't...

View Article

[WPF ]How to implement the idea inside Style?

The idea: There is grid inside Window. I need to create Style for 2 scenarios. Scenario 1:Mouse enters grid.Mouse leaves gridGrid's background becomes Red. Scenario 2:Mouse enters grid.Mouse presses...

View Article

Problem with UniformGrid as ItemsPanel in listbox

I have the following XAML:<ListBox x:Name="TicketNumbers" Background="Transparent" ItemsSource="{Binding Numbers}"><ListBox.ItemsPanel><ItemsPanelTemplate><UniformGrid Rows="5"...

View Article
Browsing all 18858 articles
Browse latest View live


Latest Images

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