I have an application that need to open a dialog from a button where the user enters some information.
At the moment I do it like this (which works fine)
The button click generates a command in the ViewModel.
The ViewModel raises an event which the Controller listens to.
The Controller works out the details of the new window (i.e. Vie...
Hi All,
I have a very simple Storyboard with an Int32Animation that targets a custom DP on my class.
I have an OnChanged callback for my DP, that does a Console.WriteLine("Current Value: " + MyDP).
When I run the storyboard, I can see the Console output just fine, and when I pause the storyboard, the Console output stops, BUT, when I ...
Im adding a list of buttons in code and also subscribing to their mouseleave event. For each button i subcribe to the event with an anonymous function, the problem is that when I run the app they are all subscribed to the last anonymous function. Here is the code, I hope I explained myself.
var modules = ModulesSC.GetAllMoudules();
var ...
I have a user control with a button bound to the NavigationCommands.RefreshCommand. The handler for the command is the parent control. The handler's CanExecute looks like this:
e.CanExecute = !IsConnecting; // IsConnecting is a Dependency Property
For some reason, the button will remain disabled until I click on the window.
If I clic...
If I have a MultiPresenter and I am using a ListBox to display the Presenters it is hosting, how do I get Caliburn to discover and bind the views and view models for the items?
For example, if I have a simple view that looks something like this:
<UserControl x:Class="MyProject.Views.CarView"
xmlns="http://schemas.microsoft...
Hi,
Recently I'm trying to reuse some UI elements in my application. When I started programming with WPF I'm told that DataTemplate is the best way to reuse UI elements. You can define a template for your data entity and use it everywhere. It sounds very good.
However, I also found some disadvantages, especially when it is compared wit...
My Custom UserControl's dependency property will bind correctly if the value is statically defined in the XAML calling it, like this:
ItemTypeIdCode="addresses"
but not if the value is bound dynamically itself:
ItemTypeIdCode="{Binding ItemTypeIdCode}"
What do I have to do to my custom UserControl so that it's dependency property r...
When I try to add 3D-content to a Viewport3D, asynchronously, this results in "This API was accessed with arguments from the wrong context." in a TargetInvocationException.
The 3D-content is generated from the data of a 3D-scanning device. The communication&calculations needed for that are done in a separate thread. First, I tried to a...
Hi There,
Does anyone know any way of displaying an editable PDF from within a WPF application?
Ideally I would like to display an editable PDF, and then to have it save to a predefined directory for later use.
Thanks
...
I'm trying to build an application that needs to lock down access to the PC while it is running. I need to make the app run topmost, in full screen mode, and ensure that alt-tabbing doesn't allow access to other apps or the taskbar.
So far I have set TopMost = true, WindowStyle = WindowStyle.None and WindowState = WindowState.Maximized...
How do I get the application's directory from my WPF application, at design time? I need to access a resource in my application's current directory at design time, while my XAML is being displayed in the designer. I'm not able to use the solution specified in this question as at design time both System.IO.Path.GetDirectoryName(Process.Ge...
How I can access to wpf methods from javascript???
...
Hello, i have written some code, which fills controls with some data from a database. Everything works fine if controls are put directly in a window. But how to fill controls, which are inside other controls, such as TabControls, GroupBoxes etc.
My code looks like this:
Some window:
private void LoadDataP()
{
if (ID.Length > 0)
...
If you are sticking with Delphi for Win32, what do you use as GUI framework, in order to approach the versatility and performance of the WPF framework on .NET?
There are some alternatives out there, such as DXScene, but it appears to have a problem with font clarity. Graphics32 and AGG are excellent low-level libraries, but lack a high-...
Hi there,
i have another layout problem. I have a WorkflowElement which contains other Workflow Elements: one fixed subelement and on the right side a horizontal List of subelements
here goes my XAML Code:
<Grid Grid.Column="0" Name="defaultGrid" >
<Rectangle Grid.Column="0" Grid.Row="0" Width="2" HorizontalAlignment="Ce...
I have ItemsControl in a WPF application, which is bind to an array of objects.
And I am using ItemTemplate to render the list.
I want to display for each item in the list the item order, like for example
Customer 1
Name : xxxxx
Age: 9999
Customer 2
Name : yyyy
Age: 8888
Any idea how to do it
Thanks
...
Hi
I want to bind an ItemsControl to an array of object, using ItemsSource and DataTemplate.
And I want to show the index of each item.
Like
Customer 1:
Name: xxxx
Age:888
Customer 2:
Name: yyy
Age: 7777
...
In WinForms you can get a list of all open windows using Application.OpenForms? Is there a WPF version of that?
...
I'm working on implementing an event aggregation with Prism. I have a few modules, and I want each of them to subscribe to events that tells them when they are requested. I started out doing an all plain example with both subscribed and publisher in the shell. No problems there. Now; when I move the subscribers out to my modules they don...
Simple Request - I want to be able to display the current time within my WPF application window. Are there free controls out there for this? Just need to display the time, nothing else.
...