Hello!
Plattform:
.NET 3.5 with C#
WPF
3DTools
I'm using 3DTools from the Codeplex site (3D Tools) for rotating and panning of 3D Models. This works fine. The Trackball class also contains a method for zooming models with the mouse wheel. However, this method always scales the model with Point(0,0,0) as the center of the zooming. B...
How can i have a dialog for editing the properties of a class with binding, and have OK-Cancel in the dialog?
My first idea was this:
public partial class EditServerDialog : Window {
private NewsServer _newsServer;
public EditServerDialog(NewsServer newsServer) {
InitializeComponent();
this.DataContext = (_new...
I have an application that my customers can write plugins (that have WPF UIs) for. Now I would like to expose a set of styles as a library that they can use and that will help them with the development of the UIs sO they don't have to reivent the weel. How would I idealy expose those styles without actually having to deploy a lot of xaml...
Hi,
I've created a WPF application with a frame inside. I can attach some other pages to this frame like
frame1.Source = new Uri("Page1.xaml", UriKind.RelativeOrAbsolute);
The question is after loading this page (Page1.xaml) an Load another page in the same frame (Page2.xaml)
is the Page1.xaml disposed automaticly or is it still runni...
Hello:
I defined a Window in WPF, into this one I put a "stack panel" and inside this panel I put a "tab control" and some "button controls".
When executing the program, I would like that when I have to resize the window using the mouse, the stack panel and all controls inside it can also be resized automatically and proportionally to ...
I'm hooking up an previewmouseleftbutton event handler on a treeview. Now I want to determine in my event handler, when I'm at the last element in the tunnel series. How do I do that?
...
Hi, I have a Frame (used to display a local html file) in a WPF window. I would like that when the user clicks on a link or such, this is opened in an external browser window ( user's default web browser).
Any ideas how to go about this please?
...
How can I programatically set the text on a RibbonButton? Right now I have the code below, but the button does not display 'Browse'. Any suggestions?
RibbonButton btn = new RibbonButton();
btn.Name = "btnBrowse";
btn.Content = "Browse";
btn.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
btn.Click += new RoutedEventHandle...
I store user specified settings using application settings properties and databinding. It has been working fine, until i want user selected to font for combobox. Databinding between user settings and combobox not working. I want to store font family name.
App.XML
<Application.Resources>
<ResourceDictionary>
<properties:Setti...
Trying to show a label only when a certain item in a combo is selected. Code should pretty much explain it.
<ComboBox Name="comboMyCombo">
<ComboBoxItem>Don't show the label</ComboBoxItem>
<ComboBoxItem>Show the label</ComboBoxItem>
</ComboBox>
<Label Visibility="Collapsed">This is my label
<Label.St...
Im trying to create some chart images without ever displaying those charts on the screen. I'v been at this for quite a while and tried a lot of different things but nothing seems to work. The code works perfectly if I display the chart in a window first, but if I don't display it in a window, the bitmap is just white with a black border ...
I have a ListView whose ItemsSource is bound to an ObservableCollection. The collection is filled with "WaypointItem" objects (a small class we defined with the info for the listview).
The WaypointItem is our binding source for each row, but is there any magic way to get a reference to all objects (targets) binding to this class from wi...
I have a string property in my ViewModel/Datacontext and want a simple button that copies its contents to the clipboard. Is this possible to do from XAML, or I do I need to handle the button click event (or use an ICommand) to accomplish this? I thought the following would work, but my button is always greyed out:
<Button Width="1...
I'm trying to override the cursor for the entire computer
this.Cursor = Cursors.Pen;
System.Windows.Input.Mouse.OverrideCursor = Cursors.Pen;
This works within the WPF "Window", but not anywhere outside it.
What .dll will let me do this?
...
I am writing a text editor and had planned on using the richtextbox control however, the richtextbox's performance is abysmal. On even small documents the wpf richtextbox lags if you hold a key down. I do not need all of the features of the wpf richtextbox, but I do need rtf support.
How can I implement this?
...
I've got listbox that employs an item template. Within each item in the list, as defined in the template there is a button. When the user clicks the button I change a value in the data source that defines the sort order of the list. Changing the datasource is not a problem as this is working just fine within my application template.
How...
I'm having trouble with refreshing objects in my database. I have an two PC's and two applications.
On the first PC, there's an application which communicates with my database and adds some data to Measurements table.
On my other PC, there's an application which retrives the latest Measurement under a timer, so it should retrive measure...
So Here is the Problem, I am trying to get that circle to align on the number. When I do that in blend it shows me I have a Left (23), I try to do that programmaticly Canvas.SetLeft(thePanel,23) it overshoots. Better yet, if anyone knows of a control like this in silverlight let me know. What this does is when the user clicks on a number...
As per the pattern, the ViewModel exposes Properties(with change notification) and Commands (to notify the VM of user actions) that the View binds to.
The only communication that flows from the VM to the View is the property change notifications (so that the View can refresh itself with updated data).
In MVP or PresentationModel form ...
One of my data sources produces a collection of values which are typed to the following interface
public interface IData
{
string Name { get; }
FrameworkElement VisualElement { get; }
}
I'd like to use data binding in WPF to display a collection of IData instances in a TabControl where the Name value becomes the header of the ...