I am trying to create a WPF application that takes command line arguments. If no arguments are given, the main window should pop up. In cases of some specific command line arguments, code should be run with no GUI and exit when finished. Any suggestions on how this should properly be done would be appreciated.
...
Sometimes I create some quick personal projects using c# with windows forms or wpf. I have noticed that depending of the kind of application, looks that managed applications take 2x or 3x more time to start compared with native applications.
It's does a "Quick Notes" application don't so... "quick". :-(
There are some technique to spee...
I'm taking Silverlight XAML and sending it to a web service that renders the XAML in a STA thread and generates a PNG image. All the XAML renders correctly except the <image> entries which 'appear' to load correctly when their Source property is set in WPF but the PNG does not show the referenced image - what am I doing wrong ?
The core...
PHEW.
I'm serious. I'll spell it out as follows...
The Storyboard has a Key "myStoryboard". It's held in a DataTemplate with a key "myDataTemplate".
This data template is used in a ContentControl with the name "myContentControl" by this tag:
<ContentControl Name="myContentControl"
ContentTemplate="{DynamicResource myDataTemplate...
I need to create a "command line" look-and-feel in a WPF app. In WPF, text boxes use a blinking vertical line as the insertion-point cursor. In the command-line world, the insertion-point cursor is a grey rectangle.
Is there a way to change the look-and-feel of the insertion-point cursor in a WPF text box? The obvious (Cursor="Curso...
I have a simple ControlTemplate for buttons which creates a link-like look and feel for them:
<ControlTemplate x:Key="LinkTemplate" TargetType="{x:Type Button}">
<TextBlock Text="{TemplateBinding Content}">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Va...
I have to code a simple control in .Net that draws geometry that looks like following image and the geometry doesn't get any more complex than shown in this image, i.e. it will be a few filled polygons and some dashed lines. This is not a static image however, that is drawn once and forgotten. The dimensions of the geometry can changed b...
Hello
I'm trying to implement my own VirtualWrapPanel in WPF.
I implement it this way :
public class VirtualWrapPanel : VirtualizingPanel, IScrollInfo
{
....
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
{
switch (args.Action)
{
case...
We're working on a WPF-based desktop application that charts financial markets information (candlestick charts, overlayed indicator curves, volume, etc). The charts are displayed in real-time with responses to market ticks being shown in real-time (updating one to two times per second is probably a reasonable display refresh policy). W...
I'm trying to do something rather simple: add a simple icon to the main window of the application. This can be done rather easily. The icon itself is placed in the Resources directory and its build action is set to Resource. The XAML code for the window includes a reference to this icon:
Icon="Resources/wiser.ico"
This works just f...
I am building a WPF app using navigation style pages and not windows.
I want to show a window inside a page, this window must be modal to the page, but allow the user to go to other page, and go back to the same page with the modal window in the same state.
I have tried with the WPF popup control but the problem is that the control hid...
I'm writing an application that needs a log-like view, (similar to how an IM client displays messages in the conversation), with potentially many updates per second. Speed is an issue here; the application locking up due to a large number of incoming events is a possible problem. I need selection and basic text formatting, so manual rend...
Hi,
I would like my listbox to number each item using the SelectedIndex property + 1.
How would I do that to the Text property of a TextBlock
in a DataTemplate of the listbox???
Malcolm
EDIT: i dont think I mean the Selectedindex just the index of the listboxitem.
...
Can I host an XBAP in my WPF application dynamically?
Can I download an XBAP, set it to be hosted in my WPF application, and interact with it programatically?
...
Hi, I am trying to set the default Style for every window in my WPF Windows application in my app.xaml. So far i have this in app.xaml:
<Application.Resources>
<ResourceDictionary>
<Style x:Key="WindowStyle" TargetType="{x:Type Window}">
<Setter Property="Background" Value="Blue" />
</Style>
</Resourc...
I need to know how to set the very top left icon / image on a WPF page. I know how to do it in a WPF Window the page looks to be different.
Thanks,
Darren
...
Hi,
I want to create some up and down buttons using the standard button
background but with black arrows.
What is the best way to do this with WPF??
Malcolm
...
Hi,
i have a listbox with a data template that contains a button.
When the button is clicked I want to get in the button
click handler the index of the listbox item that was current??
How do I do this please?
Malcolm
...
Hi,
This is related to my last post.
i want to have up and down buttons on listbox items
so that they can moved up/down ie changed its index
in the list.
Any ideas how I would actualy do this?
Malcolm
...
I am in the beginning stages of creating software for a mISV-to-be. The program is a desktop application and in the long run I want to have a native version for both Windows and OS X (I have a looked at various cross-platform APIs, and none of them meet my needs). Initially though, I don't think it makes sense to develop for two platform...