I've written a simple game-like app in WPF. The number of objects drawn is well within WPF capabilities - something like a few hundred ellipses and lines with simple fills. I have a DispatcherTimer to adjust the positions of the objects from time to time (1/60th of a second).
The code to compute the new positions can be quite intensive ...
We have an application that needs the 3.5 SP1 framework and when we click on the prerequisite option in the setup kit we made, we only see the framework without the SP1. When we install, it does not indeed install the correct one.
Is there a way to make this work?
The application was made in WPF if that changes anything.
Thanks!
...
I am currently working on an Paint-like WPF application and now stand before the problem how I enable my users to save the created images. Normally I would just save them to disk but in this application I have the requirement to later enable the user to create bigger "images" out of the already created ones. This would still be no proble...
Hi, I've created a WPF UserControl which contains a Button. I now want any consumer of the usercontrol to be able to set a Command property on the usercontrol, and for that command to be assigned to the button within the control. i.e. so that when the button is clicked, it runs the command (in this case a Prism DelegateCommand).
So, m...
Hi!
What I want to do is scrolling line by line instead of group by group when my items in listview are grouped and I press down/up arrow button of vertical scroll bar.
Thanks!
...
Does anyone have any idea why my ListBox would not populate when running in non Visual Studio Debug version? When running in debug version(F5) it perfectly fine without any breakpoints, but when I run in non debug(Ctrl+F5) it doesn't get populated.
I don't even know where to start regarding this as google shows nothing useful and I can...
I've created a grid of super headers that bind to a datagrid. The super headers stay positioned over their respective datagrid columns during resizing of datagrid columns.
The XAML binding is great and everything works fine.
The only problem however, is that I need to be able to construct this dynamically in C# code. Tried a number of...
Hi all. I'm pretty new to WPF so excuse me for any dumb question...
I have a ListView with three columns that is binded to a XmlDataProvider source like the following:
<XmlDataProvider x:Key="Properties" XPath="/Info">
<x:XData>
<Info xmlns="">
<Property Name="Text" Value=""/> ...
I have a custom WinForms ActiveX toolbar control that I want to add to a WPF form. One of the options on the toolbar is to exit the current application.
How can I make the control raise/bubble an event to close the WPF window that contains the control?
...
Hey guys, new to WPF and really struggling with 'the right way' to do things...
public void Save(CompanyContact entityToSave)
{
try
{
var saveEntity = (from cc in db.CompanyContacts
where cc.CompanyContactId == entityToSave.CompanyContactId
select cc).SingleOrDefault();
if (saveEntity == null)
{
/...
I've got a plain-old WPF ListBox defined in my .xaml:
...
<ListBox Name="foo">
</ListBox>
...
In my matching .xaml.cs I programmatically add strings to this ListBox.
I'd like to be able to edit these strings from the UI at runtime.
I'm new to WPF, so my first thought was to dynamically replace the string in the ListBox's colle...
How do I create a custom header for a combo box using WPF and VB.NET? I would like to have items in the dropdown list to show an image next to text, but when the item is selected, have only the text show in the closed combobox. Also, I would like to be able to do this in the code, without using data templates.
Is this possible?
...
I am Binding a Datagrid to dynamic data via IDictionary: http://www.scottlogic.co.uk/blog/colin/2009/04/binding-a-silverlight-datagrid-to-dynamic-data-via-idictionary/comment-page-1/#comment-8681
But I do not want to define any columns in the xaml (below is how it is done in Colin Eberhardt's post
<data:DataGrid.Columns>
<data:Data...
All,
Can someone tell me why this KeyTime is telling me it is a negative value at runtime? I've removed some logic that builds a path to an image.
public Storyboard CreateAnimationStoryBoard(DependencyObject dependencyObjectTarget,Image targetImage)
{
try
{
Storyboard sb = new Storyboard();
S...
I'm getting an odd result in a Composite Event handler in a Prism app I am writing. I created the event handler and put in an exception statement to verify that the handler is being called:
public void OnDateSelected(DateTime selectedDate)
{
// Temporary code
throw new ApplicationException("Not implemented yet.");
}
I run the ...
Hello,
I've read the MSDN article about the layouts pass, that states:
When a node is added or removed from the logical tree, property invalidations are raised on the node's parent and all its children. As a result, a top-down construction pattern should always be followed to avoid the cost of unnecessary invalidations on nodes tha...
in wpf datagrid how to get the blank row on top? ie when user wants to add new row, it always comes at the bottom. But I want it to be on top ... can i do this in XAML ?
...
I need to be able to set the Value of a setter to an attached property, but am having difficulty coming up with the syntax. This is what my trigger looks like:
<DataTrigger Binding="{Binding Path=IsDisabled}" Value="True">
<Setter TargetName="LayoutRoot" Property="Opacity" Value="0.3" />
<Setter TargetName="LayoutRoot" Property=...
I am attempting to make it so that when I hover over a button in my application, the "tooltip" displays my wording, along with a transparent background, instead of the white background.
I am merely trying to change the tooltip default settings to a transparent background..
I have looked and looked, but to no success.. anyone have any i...
I have a WPF scrollViewer that I use for panning (MouseDown, MouseMove, MouseUp) and I would like to include an acceleration effect that incorporates inertia. So, if the mouse moves beyond a threshold speed and I release the mouse, it continues to pan but slows down as a function of the initial speed. Any ideas, thoughts or examples?
...