WPF Image bind in DataGrid
How to bind an image in DataGrid? <my:DataGrid.Columns> <my:DataGridTemplateColumn Header="状況写真" Width="100"> <my:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image > ?????????????????? </Image> ...
How to bind an image in DataGrid? <my:DataGrid.Columns> <my:DataGridTemplateColumn Header="状況写真" Width="100"> <my:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image > ?????????????????? </Image> ...
I'm looking into creating a system / site which includes a website. I would like to get the benefits of WPF, and WBA seems to be a good avenue of doing this. Silverlight on the other hand is also good for accomplishing this goal, with the difference that WBA provides more options and power than Silverlight. What are the benefits / losse...
Hi, My group is building an editor-type app in WPF. One thing we noticed is that on my WinXP machine, running with the "windows classic style" theme, the text on buttons is fits fine. However on my friend's machine, who's running with the "windows xp style" theme, the font size is bigger so text on buttons get clipped at the bottom. I...
I need to implement a canvas which scales it's contents according to it's size. I know there is Viewbox, which scales everything inside of it. However I cannot use that, because some elements have a fixed size and cannot be scaled. Also how can I bind the size of the Canvas to the parent element (for example a resizable window). There i...
Hi All What i am trying to do is show a window, that does not explicitly have a height/width, (both values ommited or set to Auto). I was guessing that the window would find out its size by auto - calculating all contained usercontrols sizes but this doesnt actually work! Instead i get a big window with Actualwidth and Actualheight ...
I've got a WPF application on an ultrasound machine that displays ultrasound images generated in C++ at a speed upwards of 30 frames per second. From what I understand, the normal process for displaying images in WPF is to create a BitmapSource for your image and set the Source for your Image, which then causes it to invalidate and disp...
I have a class that derives from ObservableCollection. I wanted to add some properties to this class (not the items in the collection) but have discovered that its implementation of PropertyChanged is protected. Since its protected I assume that is why my attempts at binding to these new properties in XAML are failing. Short of creating...
I'm trying to put standard output from nmap into WPF window application (textbox exactly). I'm trying to use Dispatcher.Invoke but when nmap process starts everything just freezes. When I tried this in a console application (w/o Invoke), everything worked just fine, I think it's a problem with the Invoke method. Nmap itself is working, a...
The XAML below does not work (the text does not change when mousing over): <Window.Resources> <Style TargetType="TextBlock"> <Style.Triggers> <Trigger Property="IsMouseOver" Value="true"> <Setter Property="Text" Value="hover"/> </Trigger> </Style.Triggers> </Style> </Window...
Does anyone have some sample code that will trap the CTRL+TAB and CTRL+SHIFT+TAB for a WPF application. We have created KeyDown events and also tried adding command bindings with input gestures but we are never able to trap these 2 shortcuts. ...
I have a text like this: 'Rails on IIS7 http://is.gd/vWPn' (it's a tweet by shanselman). I'd like to display it somehow using wpf. How should I preprocess the text and what controls use then? Current solution is that I create 2 controls: Label and Hyperlink and add them into a TextBlock. In powerboots it looks like this: boots { borde...
How to create Fileupload control in wpf? I want to upload jpg image files. plz give me some samples. ...
Is it possible to read WPF ResourceDictionaries from WinForms? If yes, how? ...
Hi, I'm trying to create a sound volume control and for that I've created a storyboard which is animating the volume visually. And I've put this inside an common slider control. And I want to databind the value of the slider directly to the storyboards timeline position. If the slider is value 0, then the storyboard should be at 00:00 et...
Can you recomend me a good way to implement a Multilanguage system for a WPF app? The method i'm using right now involves xml, classes and a xaml extension. Works fine in most of cases, but when I have to deal with dynamic labels or dynamic text in general it require some extra effort. I would like to let the programmer working only i...
Office 2007 and the Ribbon introduced the concept of "Key Tips". In short, every single command in the Ribbon receives a letter which you can press to activate that command. ... The letters are indicated by small "KeyTips" which indicate the letter to press to activate the control. KeyTips are displayed using the Alt key,...
How to create a WPF application that can be deployed as either a XBAP or as a native Windows application with as little overhead as possible? XBAPs are binary compatible with WPF Windows applications and run on top of the same CLR (Unlike Silverlight). They still differ in some ways. From deployment point of view their largest differenc...
I am using the Infragistics XamDateTimeEditor control and I want to add a dependency property to it to allow the developer to choose to have all the text selected when the control gets focus. I have created a style that is used to set the behavior I want but I want the developer to decide if the behavior should be executed based on a bo...
I'm currently working on a Log Window for my application that looks and behaves just like the Output Window in Visual Studio. It can be bombarded by thousands of messages per second, and it needs to handle a very large log (hundreds of thousands of lines). So far, I've made one quickly by using a RichTextBox and it works well. I used th...
Instead of attaching a PreviewKeyUp event with each TextBox in my app and checking if the pressed key was an Enter key and then do an action, I decided to implement extended version of a TextBox that includes a DefaultAction event that fires when an Enter Key is pressed in a TextBox. What I did was basically create a new Class that ex...