I have a Enum defined as Type
public Enum **Type**
{
OneType,
TwoType,
ThreeType
};
Now I bind Type to a drop down Ribbon Control Drop Down Menu in a Ribbon Control that displays each menu with a MenuName with corresponding Image.
( I am using Syncfusion Ribbon Control ).
I want that each enum type like ( OneType ) has dat...
In WPF, I've three objects exposing the same DependencyProperty (let's say it's an integer). I want all three property values to remain synchronized, i.e. that whenever the int value changes in an object, this value is propagated to the two other objects. I think of multibinding to do the job, but I don't know how to detect which object ...
A DirectX scene can be drawn inside of a WindowsFormsHost, but this solution concerns struggling with some interop issues, mainly the 'airspace' problem. Thus, before creating whole framework for this, I'd like to know, if a D3DImage used within a WPF window will cause alike problems with overlay and sizing as described in the WindowsFor...
System.TypeInitializationException was unhandled
Message=The type initializer for 'SmartHomeworkOrganizer.ViewModels.MainViewModel' threw an exception.
Source=SmartHomeworkOrganizer
TypeName=SmartHomeworkOrganizer.ViewModels.MainViewModel
StackTrace:
at SmartHomeworkOrganizer.ViewModels.MainViewModel..ctor()
at Smar...
Is it possible to increase the distance from a grid splitter from which the user can grab it?
My splitter is only 1px in width. I would like to be able to grab the splitter from a greater distance.
As it is now i must point the mouse on the exact 1px line to grab it.
And the splitter must still be 1px in width
...
I have done a few months of development with Qt (built GUI programatically only) and am now starting to work with Cocoa. I have to say, I love Cocoa. A lot of the things that seemed hard in Qt are easy with Cocoa. Obj-C seems to be far less complex than C++.
This is probably just me, so: Ho do you feel about this?
How does Cocoa compar...
I have a Canvas element, contained within a ScrollViewer, which I'm zooming using ScaleTransform. However, I want to be able to keep the scroll position of the viewer focused on the same part of the canvas after the zoom operation has finished. Currently when I zoom the canvas the scroll position of the viewer stays where it was and the ...
We need a datagrid for financial applications to replace existing winforms datagrids.
We tested a number of WPF grids over a year ago, but at the time they weren't up to standards of their winforms counterparts. What we found is that whilst their demos showed they had most of the features we'd need, after say a couple of weeks usage w...
Is there any way to force wpf to run the value converter again on a specific event?
...
Hello,
I have lets say a WeeklyViewUserControl.xaml and a DailyViewUserControl.xaml.
Normally I used stuff like this to switch content:
<DataTemplate DataType="{x:Type ViewModel:LessonPlannerViewModel}">
<View:LessonPlannerDailyUC/>
</DataTemplate>
This worked so far. But now I have still the WeeklyViewUC which uses 90 ...
Hi
I have a wpf datagrid containing multiple datagridtemplatecolumns, which all are build up from a datatemplate which contains a textbox.
Now I want to get the binding of the textbox (I have a reference to the template column which textbox's binding I woukld like to determine).
Alternatively it would be nice to return the X:Name of ...
Does ICommand implementation in MVP (Model - View - Presenter) belong in Presenter or its own class?
...
Hi,
I am trying to detect when a storyboard is still active, still has an effect on a property(ie completed by still has a hold on the dependecy property it is animating).
Completed="DeviceExplorer_Completed">
Duration="0:0:0.5">
In code I do
Storyboard aStoryBoard = this.Resources["openDeviceExplorer"] as Storyboard;
...
I wonder, how to create this binding, since Line.X2 IS NOT dependency property! :(
<Line Y1="0" X1="0" Y2="0" Stroke="Blue" StrokeThickness="3" Margin="0 -2 0 -2" X2="{Binding Path=RenderSize.Width, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type StackPanel}}}"/>
...
I am creating a kiosk application and I want to ensure it is always, no matter what, on top of other Windows applications and the Windows task bar.
I am already blocking Windows keyboard commands (alt-tab, etc) but there are still situations that could cause an application to launch and steal the screen.
Is it possible to hook into Win...
I am using the latest WPF Toolkit but am running into a height issue when I have a large record set bound into a datagrid inside an AccordionItem item. The height of the Accordion itself scales nicely but the datagrid inside the accordion control doesn't get get a scrollbar or get constrained in any way so the records are hidden.
I know...
I have been using this website to learn a lot about C# for a while, but this is my first time posting a question. I look forward to hearing back from some of the seasoned C# veterans!
I have been working on a C# 4.0 WPF project and need to figure out how to databind a boolean value. I have a reference to my Application.Current object ...
I am coding a simple login UserControl with two TextBoxes (Username and Password) and a Login button. I want the Login button to be enabled only when the username and password fields are filled in. I am using Prism and MVVM. The LoginViewModel contains a property called LoginCommand that is bound to the Login button. I have a CanLoginExe...
Im deriving from a third party control. It is implementing ApplicationCommands.SelectAll. However the behaviour i want is slightly different. there is no virtual method i can override, and when i register a class handler, like so
CommandManager.RegisterClassCommandBinding(typeof(MyDerivedControl), new CommandBinding(ApplicationComm...
Hai
am having a WPF user control in my WPF Form, when i click my button in my form , i just want to pass some value to the textbox which is in the usercontrol, tell me how to do this.
...