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

Matrix transformation or RenderTransform are wrong.

Dear Sir:Background:I have attached (SimpleWatch2.svg) working example. There is no issue with that file. Just double click the clock will show in your browser. I can write this application in...

View Article


Loading/Waiting Screen

Hello Everyone,I have this app that take several seconds to load data from database. While it is loading, the app freezes and get all blank on the screen. I tried to call another window while it...

View Article


70-502 exam not showing up on the website

Why can't I see the exam 70-502 on the url : URLAnjum S Khan Admin/Analyst Blog.TrackNifty.com

View Article

[WPF] How to clone a style?

I need to modify style, but it is impossible, because it becomes sealed once created.How to clone it?

View Article

Image may be NSFW.
Clik here to view.

What is the best way to bind "unnamed" properties to DataGrid with...

Guys, I need advice. What I have is a class which does not have "named" properties:public class ColumnsValues { public int IdProperty { get; set; } public string ColumnName { get; set; } public string...

View Article


Raise Exception from ViewModel to View in wpf

Hi,I'm using MVVM pattern in project which I'm working on now.There is scenario where we are getting data from external device and it's come to Model --> view Model--> view.There is condition...

View Article

Problem in adding adding datagrid row values

Hi All,Below code is done with "Winform" & I would liek to know how can do this with WPF?Rows.add doesn't exist in WPF datagrid.foreach (IPrintable dev in MsStat.Instance) { try {...

View Article

Entity Framework - Login and Register, same Window.

Hey, so I have got my Register method working perfectly and the Validation. However I also have got a login section on the same Window, how would you go about working this? Only think I can think of is...

View Article


TreeView bound to object graph

I know this topic was created recently (by me), but then it was marked as an answer by me so I didn't know if I could open it again. Now the situation is slightly different and I want to make a new...

View Article


VS2015 XAML suggests error when using Interactivity.Behaviors

For some reason, when I upgraded to using Visual Studio 2015, I started receiving an error message regarding one of my custom behaviors.  The error message either says "Cannot addinstance of type...

View Article

Nest a ListView inside a Listview WPF

I am trying to nest a listview inside a listviewI have two classes:{ public class TestData { public string Case { get; set; } public ObservableCollection<SubData> StainList { get; set; } public...

View Article

data source multiple collections

Hi I need to source data had several collections I used CompositeCollection <DataGrid.Resources>                <CollectionViewSource x:Key="CollectionSourceOne" Source="{Binding...

View Article

UserControl with textbox - LostFocus not triggering

Hi, i am using custom controls to make stuff behave like i want it to.In this control i use a double click to swap the label to a textbox, so the user can edit the text, and then press enter OR click...

View Article


Writeable bitmaps memory consumption

I am having a snippet as follows,  WriteableBitmap wb = null;  int dpiX = 96;  int dpiY = 96;  BitmapPalette bitmapPalette = null;  wb = new WriteableBitmap(ImageWidth, ImageHeight, dpiX, dpiY,...

View Article

HLSL, PixelShader. How to get the information of adjecent pixels??

Hi, I am newby in HLSL and I am making an effect for an application in WPF to calculate the information of each pixel using the information of the adjacents pixels. I know that the function tex2D...

View Article


Image may be NSFW.
Clik here to view.

How to implement a control that can contain a large number of tabs (like Excel)?

Our application is almost ready, but is has a serious shortcoming. Its interface is based on a DataGrid, with some features borrowed from Excel. The feature that I don't know how to implement is the...

View Article

Error in VS (2015 SP1) designer for a 4.5.2 project when *not* running...

I got this annoying error in my designer after upgrading a project to .Net 4.5.2:Error:The property "SelectionFiltersEffective" is not a DependencyProperty. To be used in markup, non-attached...

View Article


how to draw a line with a arrow head in canvas

Line line = new Line() { X1 = EllipseList[EllipseList.Count - 2].X, Y1 = EllipseList[EllipseList.Count - 2].Y, X2 = EllipseList[EllipseList.Count - 1].X, Y2 = EllipseList[EllipseList.Count - 1].Y,...

View Article

datagrid

this is my code for datagridcontactDataGrid.ItemsSource = dbCtx.Contacts.ToList().OrderBy(x => x.ContactName);and it makes ui freeze..any suggestion how can i do it?asif bakhtiyar

View Article

Image may be NSFW.
Clik here to view.

wpf DataGrid

DataTable dt = new DataTable();public MainWindow() {      InitializeComponent();      dt.Columns.Add(new DataColumn("Column1"));      dt.Columns.Add(new DataColumn("Column2"));      DataRow dr;...

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>