Any smart pattern to accomplish Bubbling and Tunneling for Events on Winforms?
Can we accomplish on Winforms both Tunneling and Bubbling? Maybe by using some API Message Interception? Any article about that? ...
Can we accomplish on Winforms both Tunneling and Bubbling? Maybe by using some API Message Interception? Any article about that? ...
I stitched together from code I found in internet myself WH_KEYBOARD_LL helper class: Problem this had is now solved, thanks to Mattias S, following YourUtils.cs is fixed. Put the following code to some of your utils libs, let it be YourUtils.cs: using System; using System.Diagnostics; using System.Runtime.InteropServices; using Syste...
Is it possible to change the amount that the WPF ScrollViewer scrolls? I am simply wondering if it's possible to change the scrollviewer so that when using the mouse wheel or the scrollviewer arrows, the amount of incremental scrolling can be changed. ...
I'd like to implement the Master-Detail pattern in my WPF application, so that when the user selects an item in a ListView its details are displayed elsewhere. However my data source (some XML) is not structured in a hierarchical manner; rather, each item stores a list of IDs which can be used to identify the details in another section o...
I currently have a set of buttons that I would like to set triggers so that each one will perform the same animation. Is there a way in XAML to 'pass' the target to the storyboard so that I don't have to rewrite the storyboard each time for each target? ...
Is there an equivalent mechanism to the ItemsControl.ItemTemplate that works with a Grid? I have a collection of items and I'd like to present them as rows in a Grid so that I can assign Grid.Column to the individual elements inside the template (as opposed to rows in a list control). Is this possible in WPF using standard controls? ...
hi, I have recently begun development using c# and wpf. In our application we have a DataGrid object that we would like to bind to a list. However we do not want all entrys in the list to be bound, only those that meet a certain criteria. The reason that we cannot bind to a seperate list (ie. bind to a list created by the applying th...
I have a standard button style applied accross my application that specifies a mouseover style that changes the text content from white to black. To achieve this I have tried modifying the button template, removing the ContentPresenter and replacing it with a TextBlock. However, this means that I can't have mixed content such as: <Butto...
I have legacy windows forms user control that exposses several public methods. I wrapped this control on a wpf user control and encapsulated the Methods with a relaycommand on the new wpf usercontrol. Now my problem is how to use the mvvm pattern to execute the commands on my user control form the viewmodel that is used with the view...
I can modify/access controls and MessageBox with ease in the MainWindow.xaml.cs file of my WPF application. However, when I create some folders and add classes there, I no longer have access to MessageBox nor do I have see the control names in the Intellisense dropdown. (This seems quite elementary but I'm new to C# and WPF) ...
In Expression Blend and WPF i've created a datasource at the application level ( in App.xaml called ViewModelDataSource ). So, doing my bindings is a snap, however if I create a user control and in that user control set any data contexts to the ViewModelDataSource I created in App.xaml the parent control that contains that user control n...
Hey there. I'm having an issue when trying to do something which should be as easy as. I've attempted to use a trigger based on a dependency property or a data trigger - I can't get either to work. XAML for the trigger is: <Style x:Key="FileWatchButton" BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}"> <Styl...
This question is a result of a lunch-time conversation with a co-worker...I've read questions like WPF vs. Winforms...and I personally think that long term WPF is the way to go. The problem/question is what to do in the meantime. Yes, WPF certainly has its advantages; not being built on GDI/USER is one of them. But at this point in ti...
Is it safe to assume that WPF TwoWay data binding Wont work on controls which dont have focus ? For example in the following code. <Window.Resources> <XmlDataProvider x:Key="TestBind1" XPath="/BindTest1"> <x:XData> <BindTest1 xmlns=""> <Value1>True</Value1> </Bind...
Hi In WPF is there a way that you can modify the way any path is drawn APART from "Dash-Dot" sequences? Say I want draw a triple line for any path I am drawing or small triangles,waves..etc on the drawing path itself. I have tried Brushes but it will not follow the Path. Pl help thx ...
I'm considering writing a cross-platform desktop app, initially for Mac/Windows, but eventually for Linux as well. Currently, I plan to structure it like so: Mac UI using Cocoa/Objective C/Interface Builder Windows UI using WPF In future, Linux UI using GTK# Business/data access layers in C# - i.e. .NET on Windows, Mono on Mac/Linux ...
Hello, I have a GridView as a content for ListView. As you can see in the code below I use a template for gridview cells. Now I would like to traverse every cell in particular column and set some values. Specifically I would like to select some range and change some text characteristics (for every row) This selection will be based on tw...
Let's say that you have a List that looks like the following public List<Person> Persons { get; set; } You set an ItemSource on a ListBox to get the data from Persons and for each person in that list, you want to select other items, depending on the social security number. It is not an option to store the data in the Person, so the D...
Hello, I'm trying to fill an area of an image in WPF. Something similar to the bucket in Paint. How should I do this? I'm thinking of getting the pixel color under the mouse, and change all the pixels with the same color near. Is there a simpler way? What should I use? WriteableBitmap? Thank you ...
Hi there, i get a winHdl (which is a winForm) from a native c++ application. Plugin implementation in c#: public int Create(int hParentWnd ...){ ... // here i want to put wpf on this hParentWnd } Now i want to put my WPF user control in this window. How can i do this? Any code snippets available? thanks ...