wpf

is there something similar to asp.net mvc for winforms or wpf ?

anybody knows something similar to asp.net mvc for winforms or wpf ? ...

C#, WPF, Automatically call Dispatcher.Invoke when needed??

I have a program with a Geospace map embedded into it. The event handling for the map is handled on a separate thread to keep the map responsive (for example, the events that fire when the map is clicked). The problem I am having is when the map fires an event, my program needs to update some things in it's gui, and also call back into ...

WPF - pagination when printing a visual

I have a WPF window with a frame. I have some code to print out the content of the frame using the printdialog and printvisual. But this will only print what appears on the screen even though the frame scrolls and other parts are available. Is there a way to add pagination and make sure that the entire content of my frame will print. ...

Smooth transition from image to image

Here is my XAML: <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Image x:Name="Expander_Normal" Source="/Images/arrow-e.tiff" Width="13" Height="13" /> <ControlTemplate.Triggers> <Trigger Property="ToggleButton.IsChecked" Value="True"> <Setter x:Name="Expander_Expanded" ...

Change Telerik Theme

How can I change the default telerik theme for a RadTreeView. I have multiple elements and the RadTreeView doesn't follow the color style of the rest of the elements. Say I want to change it to Vista. ...

Why don't my media elements resize and clip properly when using UniformToFill?

Why don't my media elements fill the screen correctly when I use the UniformToFill stretch? The mediaElement clips at the bottom if the window is wider than the mediaElement, and it clips at the right if the window is taller than the mediaElement. <Window x:Class="WpfApplication1.Window3" xmlns="http://schemas.microsoft.com/winfx/2006/x...

Display sum of grouped items in ListView

I'm creating a WPF TimeCard app using the MVVM design pattern, and I'm trying to display the sum (total) hours the user has clocked in grouped by each day. I have a ListView with all of the TimeCard data broken into groups using the following XAML: <ListView.GroupStyle> <GroupStyle ContainerStyle="{StaticResource GroupItemStyle}"> ...

Services and WPF.

This is a general technologies question. I am building a Media Player for a school project. It is written in C# and uses WPF for the interface. I am adding a service to it to maintain the database as the user makes changes to it. I also want it to contain the config class I built in a previous iteration which is the subject in the obser...

WPF Tooltip Binding

I am only two weeks into WPF so this is probably a trivial question. I have a collection "CellList" which has a few properties I would like to bind to a tooltip so when I hover over a label information from the current instance of "CellList" is displayed. How do I do that? I understand simple binding and this maybe simple binding too ...

Dynamically generated Image Contorls in WPF Application

i want to create as an Image control dynamically in WPF application and set the properties of that controls ...like Size,location,color,sizemode how can i do it? Give me any Samplecode for that.. ...

[WPF] How should I evaluate a property path?

I am writing a custom control, and I have a property path as string (think comboBox.SelectedValuePath). What is the best way in code to evaluate this string for a arbitrary object? I obviously can just parse it myself, but it is a hack, and I want the path to support everything comboBox.SelectedValuePath does (for consistency). Result ...

Timeline Events by Category

Hi. I try to use Silverlight & WPF Timeline Control from http://timeline.codeplex.com/ Is any have some experience with this control? I have two questions. Howe to group events by category? For example: ------------------------------------------------------------------------------------------- Catgory A Event1 Event2 -----...

Model Transperency

How can I achieve transparency on a model? ...

Stop a WPF Textbox from losing focus

Hi, I have a WPF Textbox, that I want to check that the text value is correct before I allow it to lose keyboard/focus. I have tried setting e.Handled in the InputBox_LostFocus & InputBox_LostKeyboardFocus events, but it doesnt seem to be achieving what I want. Any suggestions on how I can lock focus to a textbox? ...

Writing Visual Studio 2010 Plugin, would like to show a toolbox like Resharper in code editor.

Hello, I would like to write a plugin for Visual Studio 2010 but in fact I face some problems. What I want to do seems easy, I would like that a little toolbox appears when selecting the text in code editor like in Resharper (little pen with menu that helps in refactoring) or like here: http://www.axtools.com/products-vs2010-extensions...

WPF: Display HTML-based content stored in resource assembly

In my WPF project I need to render HTML-based content, where the content is stored in a resource assembly referenced by my WPF project. I have looked at the WPF Frame and WebBrowser controls. Unfortunately, they both only expose Navigation events (Navigating, Navigated), but not any events that would allow me, based on the requested URL...

MVVM Update binding issue

Hi. I have user control to which I bind a viewmodel, this implements the INotifyPropertyChanged, thru the datacontext, this has a property that is a IList that I bind to the itemsdatasource of a grid, then on the code, in another class I add some values to the list, but the UI doesn't reflect this change although in debug I can see that...

Change a textbox bound text value in the set accessor

Hi, I hope someone can help me with this one, I suspect I am doing something stupid. I have bound a textbox so that the Text is bound to 'InputValue'. Basically, when the text value changes I have a method (Inches.Parse), which examines the value and returns a well formatted string. If there are no errors with the parsing I want the tex...

How to set the IsChecked property of a RadioButton from the Contents of a ComboBox declaratively?

I have a comboBox which has the following items: a1, a2, a3, a4 and I have two RadioButtons r1 and r2. This is what I want to accomplish: if the user selects item a2 from the combobox the IsChecked property of r1 should be set to true. If the user selects either item a3 or a4 from the combobox the IsChecked propertyr of r2 should be set ...

How to ignore Parent's event handler in order to use Child event handler (for DragEvent) in WPF

Hi I am having a problem in using the DragEventHandler. The scenario is that: A parent element which has its own DragEventHandlers (in this case Grid) contains child element (Panel) which also has its own DragEventHandlers. So when an item is dragged over the child element, the event handlers of the parent elt is used instead of the ...