Updated This is kind of an interesting problem I am experiencing. I need to have a progress dialog show when a background process is running. Normally, this would work but the problem is that I need to set public static data within the background process. Here is an example of what I am attempting to accomplish:
public partial clas...
I'd like to start making a small project (nothing too fancy) for the desktop and web using Silverlight. Here are my questions:
Will I need Silverlight 4.0 or does 3.0 have out-of-browser features? Are there significant changes between the two versions, with regard to this?
What other options do I have besides Silverlight? I'm also cons...
I've got a very simple app.xaml.cs that, when the app starts up, creates a new PrimeWindow, and makes it accessible to the outside.
public partial class App : Application
{
public static PrimeWindow AppPrimeWindow { get; set; }
private void Application_Startup(object sender, StartupEventArgs e)
{
AppPrimeWindow = ne...
I have a button in a ListBoxItem. I want the button to stay enabled even if the list box Item is disabled. Is this possible?
Here is my style code for the listbox, listbox item and the button (called btnPick).
<Window.Resources>
<Style x:Key="CheckBoxListStyle" TargetType="ListBox">
<Style.Resources>
<Style TargetType="ListBoxI...
For my WPF application I have developed a virtual keyboard. It runs fine on my development machine. However, on slower machines the button click response is slow. After the button is clicked, there is a delay before the display updates with the button down state and the buttons event. What can I do to remove this delay? Is the problem a ...
What is a good approach for drawing lines between elements in WPF?
I have a view in my application with several buttons that make up a diagram. They scale and move depending on the view's size and shape. I would like to indicate a relationship between some of the buttons using a line.
I am not using a Canvas to lay everything out becau...
What are the responsibilities of one vs the other? What kind of logic should go in one vs the other? Which one hits services and databases? How do I decide if my code should go in the viewmodel or the controller?
for the record, I am using asp mvc
...
I have a native C++ application that, for the time being simply needs to send its command line string and current mouse cursor coordinates to a WPF application. The message is sent and received just fine, but I cannot convert the IntPtr instance in C# to a struct.
When I try to do so, the application will either crash without exception ...
Hi everybody!
I 'm going mad!!
Created a "MainVM" (VM stands for ViewModel) in which there is defined a SelectedItem of type "EditVM". There is also another property (let's call it) excavations (this is an app for archaeologists) and its corresponding excavationsCollectionView (hope the type is clear, to not get into details).
This e...
I have created an xbap front end that brings data from an sql server and displays them. A BackgroundWorker is responsible for this communication, in order for the UI to remain responsive during the query. Everything works as expected on my machine when debugging.
Then I publish the project on a network drive, and it still behaves as exp...
I am developing an application using WPF. The app runs full screen, and I need it to resize nicely no matter the monitor resolution. The graphic designer has designed beautiful images for the UI buttons, backgrounds, etc. Using an Illustrator plug-in, all the images have been converted to xaml files. I've added all these images into the ...
I'm teaching myself WPF and xaml by replicating existing controls and UI from AutoCAD 2010 and Excel 2010. Once the various controls are polished, I would be happy to share any code. Is there sites or communities that are open source and WPF or xaml based?
...
We can all see Runtime BindingExpression errors in the Visual Studio Output Window. But can we capture these events in the running app itself? I'm hearing about WPF tracing... does this have something to do with this facility? Also, the System.Windows.Data namespace contains no documented events (like a BindingExpression error event), wh...
Is there a way to set your column (or row) to a named value rather than a number?
I am about to go add a column to my grid. That means I have to go to every control after the new column and bump up its column number. This is tedious and error prone.
Is there a way that I can bind to a named column? Maybe via resources? (As I write ...
I'm developing a video player using WPF and AxShockwaveFlash.
It has following steps:
find video from a web service.
it acquires information of each video.
pass video information to AxShockwaveFlash and embedded flash video player.
embedded flash video player starts streaming download from web service.
I have a problem on step 4.
St...
I've been exploring WPF and XAML for a while now, but have hit a slight stumbling block revolving around binding to a method.
My situation is:
There is a ComboBox bound to a DataTable. There is a ListBox bound to the return value of a method (GetDates) via an ObjectDataProvider. One of the input parameters of the method GetDates is an ...
In my WPF application data model I have multiple classes representing data for interaction with backend DB through WCF self hosted service.
Should I have multiple Data Contracts or multiple Service Contacts or Endpoints in my WCF Sevice for representing these multiple WPF data model classes? What is correct (or maybe the only) way to a...
Hi, I have quite simple (I hope :)) problem:
In MVVM, View usually listens on changes of ViewModel's properties. However, I would sometimes like to listen on event, so that, for example, View could start animation, or close window, when VM signals.
Doing it via bool property with NotifyPropertyChanged (and starting animation only whe...
How is the Application button and quick access toolbar placement accomplished?
...
I'm trying to build a chart using the columnSeries from the wpf toolkit and I appear to be having trouble with the data binding. Here is the xaml:
<Grid>
<chartingToolkit:ColumnSeries Height="18" HorizontalAlignment="Left" Margin="188,169,0,0" Name="columnSeries1" VerticalAlignment="Top" Width="18" IndependentValueBinding="{Binding ...