Update: We are still using XP at work and I got my solution working, but now knowing that Vista and beyond have the isolated session I am going to implement a WCF IPC...
I have a windows service that needs to notify the user of an event of some type occurring. I decided that something similar to email notification messages would make s...
I have a single RoutedUICommand that can be accessed through various places in the UI. Such as global Keyboardshortcut, Menu, ContextMenu or Button. The code that is to be executed in the RoutedUICommand.CanExecute and RoutedUICommand.Execute methods depends on what UI element was used. How can I achieve this differentiation. I was thi...
Hi,
I'm trying to write a simple WPF app that has two ellipses, joined by a line, like you might see in a network graph. When the ellipses are animated, I just want the joining line to automagically 'stick' to the canvas locations of the two ellipses that the line joins. The XAML is just a canvas:
<Window x:Class="UIDataBindingDemo.W...
So I am learning WPF right now, and want to do a simple databind between a bool value, and whether or not a menu item is enabled or not.
I have coded it like this:
<MenuItem Name="miSaveFile" Header="Save" Click="miSaveFile_Click"
IsEnabled="{Binding}"</MenuItem>
And in the .cs file I set miSaveFile.DataContext = dataChanged;
Fo...
This may seem like a high-level question. But that is because I'm unfamiliar with cutting edge ASP.net and even less with this behemoth called Sharepoint. So please bear with me..
First off is it possible to take functional custom WPF controls which contain certain unmanaged subcomponents that do DirectX rendering (for performance reas...
Do you know of a simple .NET component which can be used in a WPF client application with these features:
load images from file or clipboard into canvas,
scaling and moving,
define canvas background color,
export canvas as new image.
Thx in advance,
Prensen
...
I am creating a textbox and a button dynamically using the following code.
Button btnClickMe = new Button();
btnClickMe.Content = "Click Me";
btnClickMe.Name = "btnClickMe";
btnClickMe.Click += new RoutedEventHandler(this.CallMeClick);
someStackPanel.Childern.Add(btnClickMe);
TextBox txtNumber = new TextBox();
txtNumber.Name = "txtNum...
Is it possible to use a JPG file as a Window Icon using strictly XAML? I've found examples where you can use a BitmapFrame within C# to generate an ImageSource on the fly (which is then assignable to the Icon property), but I'd love to do something like:
<Window.Icon>
<SomeXAMLThatLetsMeUseJpg Source="MyJpg.jpg" />
</Window.Icon>
...
Hi there, is possible to manage words inside RichTextBox/TextBox with spellcheck enable, I found this necesary cause some medical technicians are highlighted (not found in .net dictionary resource)
please advice if this feature is enable yet, thanks!
• C# - Fx3.5
...
Why i cant set selecteditem property programatically?
Im calling it from another XAML Window, that hace certaing controls , one of them is a ComboBox i was trying this :
string tm = (from ea in db.EXAMENXATENCIONs where ea.codigo == Convert.ToInt32(numeroinforme) select ea.turnomedico).FirstOrDefault();
demo.cb...
I'm working on a web-enabled media center which will be able to load video feeds into a gallery style view. (like Cooliris)
Rather than loading thumbnail images of each video, I plan to load the actual video so it can be played in-place and/or popped out to fullscreen.
This means I need to host a bunch of flash-player instances 'inside...
I would like to serialise a collection of Custom objects in the Settings file of WPF application. I am able to serialise a single Custom object by deriving from ApplicationSettingsBase, however I am unable to serialise a collection of these objects.
Could you please help?
Thanks in advance!
public class TestSetting: ApplicationSettings...
Hope anyone can shed light on this so I can use pens with dash patterns?
I am writing a scrollable chart (a Panel inside ScrollViewer that implements IScrollInfo) in WPF using DrawingVisual's DataContext.DrawX. I have several thousand DrawingVisuals that get scrolled by using TranslateTransform on the Panel that hosts them. I implement...
The title pretty much stays it all. Say I have an enum with four values:
public enum CompassHeading
{
North,
South,
East,
West
}
What XAML would be required to have a ComboBox be populated with these items?
<ComboBox ItemsSource="{Binding WhatGoesHere???}" />
Ideally I wouldn't have to set up C# code for this.
Tha...
If I have the following code:
Style defaultStyle = (Style)FindResource("MyTestStyle");
Is there a way to get the name of the style (i.e. reverse-lookup)? Something like:
string name = defaultStyle.SomeMagicLookUpFunction()
Where name would evaluate to "MyTestStyle."
Is this possible?
...
This problem stems from not being able to get my TextBlock to wrap. Basically as a last-ditch attempt I am setting MaxWidth on my container grid's columns. I was surprised to find that my child label and textbox still do whatever they want (bad children, BAD) and are not limited by my grid column's MaxWidth="200".
What I'm really tryi...
I am trying to find a good way of accessing a Business Intelligence OLAP Cube from C#.
I don't really care much as to how this is done, but since currently I am trying to implement this with the codeplex WPF Toolkit, I would be happy if it was something directly related to the tool, but any suggestions are very welcomed.
My WPF skills ...
I have quite a basic WPF form with a DockPanel, there's a Menu bar, a Status bar, and a UserControl. Like so:
<DockPanel>
<Menu DockPanel.Dock="Top">
...
</Menu>
<StatusBar DockPanel.Dock="Bottom">
...
</StatusBar>
<UserControls:MyUserControl />
<DockPanel>
My problem is: Based on an event, I want to transition the U...
I'm rendering text using FormattedText, but there does appear to be any way to perform per-char hit testing on the rendered output. It's read-only, so I basically only need selection, no editing.
I'd use RichTextBox or similar, but I need to output text based on control codes embed in the text itself, so they don't always nest, which ma...
Which .Net technology is best suitable for which kind of game? What the criteria for choosing between WPF, Silverlight or XNA?
...