I'm looking for some guidance on creating a WPF UserControl.
My objective is to create an indeterminent progress bar, that slides an image back and forth. I'd like to be able to dock the left and right edges of this user control to the sides of the Window so if the user resizes the window, the width of the progress bar is also increased...
I want to draw a normal graph with some vertexes and edges in 3D WPF.
That means vertexes are going to be a Spheres and edges are going to be a Cylinders.
I want to draw some of the Spheres first and then connect those with Cylinders. I am able to draw the Spheres and Cylinders separately in a free space using the examples in Practical ...
Several (newbie) questions:
1) I see a lot of
public Person SelectedPerson { get; set; }
I am assuming this does NOT fire a property change?
So, if I want to do so, I must provide the following?
private Person selectedPerson;
public Person SelectedPerson
{
get
{
return this.selectedPerson;
...
Dev machine: Windows 7 64bit desktop. Visual Studio 2008 Professional.
Not sure what the cause is but the behavior is this:
I can develop in VS on this desktop just fine. Have done some class libraries and windows forms with no issues from what I have seen. However in WPF project I cannot get any content to render in window when I run t...
I have a class with an ObservableCollection called List and I am trying to bind to textboxes individually. I have been trying:
<TextBox Text="{Binding Source=List[0], Path=Value}" />
<TextBox Text="{Binding Source=List[1], Path=Value}"/>
The StringObject class is just:
class StringObject
{
public string Value { get; set; }
}
Ca...
We need close window when user minimize the window, but keep it on taskbar, like a normal window behavior.
We do this for fixed a problem like: WPF application wink on Win7
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=474986
Image: http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/Capt...
Hey guys, I've got what I think is an interesting question:
You all know and love the Skype chat interface: each message is enclosed in a bubble, with emoticons and link capabilities, as well as an avatar at the left.
What is the most ideal WPF component to house each message in, if I were creating a Skype-like interface?
I am using...
i need to fill a listbox with items one by one
like the list to be filled with one item than after 1/5 sec an other item will be added to the list
any ideas how this could be done (in wpf)?
...
Hey
Databinding in WPF is great, but the moment you try make things more complex it gets exceedingly difficult to implement things.
I have a collection of objects, where each object has observable properties that are bound to a user control.
I would like to (ideally) simply add a new object to my collection, and have a new user contro...
I have a WPF Grid with some rows and columns, e.g.
<Grid Name="myGrid" MouseMove="OnMouseMove">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnD...
Hello. The way I develop may not be correct, any advice welcome.
At the moment I have a WPF application that uses a SQL2008 database. I have a copy of the database on a laptop and on my home machine. My application is versioned using SVN and I am obviously able go from the work laptop to the home machine and update/commit as required to...
I have a WPF ListView control with a ContextMenu written in XAML Code. With every right-click on the ListView the ContextMenu is shown even when there are no items in the ListView.
This is a behavior I don't want. The ContextMenu should only open if there are items in the ListView. I have no problem counting the items but I don't find t...
What is the simplest example of binding the items of a TabControl to an ObservableCollection?
Each tab's content will have unique data, and indeed this data will have observableCollections of its own bound to the items components.
Currently I have a user control, which I would like to set as the content of each tab as soon as it is cre...
WPF programmed in C#: I have a program where the user can click a box and a dialog box pops up and they can select any image. Whatever image they select will appear in the box. I want to be able to display the width and height of the image, because if the image they selects is small, it'll resize to fit the box. But I want to display the...
I have a thread that call an object that get some stuff from Internet. When this object is filled up with all information required, it raises an event with an object will all the information. The event is consumed by the controller that has started the thread.
The returned object from the event is than added into a collection that is bi...
Hi,
I'm working on a WPF MVVM application. The thing that I'm noticing is that I have to write an inordinate amount of boilerplate code just to declare commands (through DelegateCommands from the WPF Team's MVVM Toolkit), attached properties and attached behaviors. Are there any strategies available to reduce the amount of boilerplate c...
My "metric" for when WPF is truly "ready to go" is when there is a menustrip control available in Visual Studio. Without that, from my perspective, it's still "under construction" a bit, in comparision to winforms. This isn't a technical argument, just a personal preference.
So my question is: when will stock Visual Studio come with a W...
I am trying to create a button which has 3 images: a Normal image, a Pressed image and a Disabled image (I will use these for creating up/down arrow buttons).
I believe the correct approach would be to derive from Button and use a Template and set triggers to change the image. I have 3 dependency properties, one for each image.
The im...
OpenFileDialog's ShowDialog method returns a nullable boolean, set to true if the user clicked OK or false if he clicked Cancel. When does it return null? The documentation does not say.
...
In Windows Vista whenever we change the appearance from display properties, it is forcing recreation of the windows controls in our application. Is there a way we can disable this events at application level? BTW our application needs to have consistent look and feel across different themes.
...