Get object by its Uid in WPF
Hello, I have an control in WPF which has an unique Uid. How can I retrive the object by its Uid? Thanks in advance Jose ...
Hello, I have an control in WPF which has an unique Uid. How can I retrive the object by its Uid? Thanks in advance Jose ...
I am using the MVVM pattern for a WPF application. In several places I bind commands to input elements in the views as in the following XAML: <Button Command="{Binding TheClickCommand}" >Click</> What is the best practice for handling exceptions thrown when the command is executed in my viewmodel - i.e. what is the best way to inform...
Dragging happens from "source" to "target". When the source calls DoDragDrop() with allowedEffects as DragDropEffects.Copy, then I'm able to cancel the drop by setting Effects = DragDropEffects.None at the target (in DragOver event). But the same situation fails when I set my allowedEffects as DragDropEffects.Move. To reproduce the sit...
I am new to WPF. I just need to write a small piece of code in xaml, for which i need to know the if condition equivalent in WPF. Can anybody here help in that? ...
I have a wpf application that uses several Telerik RadNumericUpDown controls to enter measurements. Turns out that the Telerik control only accepts "." from the numeric keypad (next to the 0 on the right side of the keyboard). Most of my clients have laptops, and so they don't have this button, but they have the "." next to the "," and...
In a WPF application, I've got my events centralized in one class like this: public class EventFactory { public static void Button_Edit_Click(object sender, RoutedEventArgs e) { MessageBox.Show("you clicked edit"); } public static void Button_Add_Click(object sender, RoutedEventArgs e) { MessageBox.S...
Apart from the fact people get to view the app in a browser which may be familiar. Is there any actual compelling reason to use the XBAP model in WPF rather than a straightfoward stand alone WPF app. All I can see are potential security issues and restrictions but no benefits. Am I missing something? ...
Has silverlight replaced or killed off XBAPS? ...
I have a ComboBoxItem [Line Color] that displays a PopUp on IsHighlighted and I want to eat the click on the ComboBoxItem. I know how to do it programmatically but I was wondering if there's any way to accomplish this in XAML? ...
I am beginning to heavily invest in WPF and was wondering what those more knowledgeable than myself thought as to the wisdom of this decision. Is WPF the way forward? ...
My understanding of the client profile preview is that it's a stripped down version of .NET focusing on fulfiling the needs of client applications. However it would be useful to know what is included and excluded from this? Does anyone know? ...
Hey folks, After reading many related posts on this site on the subject of image comparison I'm thinking I'll try implementing a PCA on each image in order to see if an image is 'similar' or not, but I'm not sure how to get the data from my images - is there a VB function that I can use to convert the image into an array of bytes or som...
I have the following data trigger on the ListBoxItems in my Multi-selection ListBox <DataTrigger Value="True"> <DataTrigger.Binding> <MultiBinding Converter="{StaticResource DisableWorkItemConverter}"> <Binding ElementName="MainForm" Path="PickedWorkItemID"/> <Binding Path="Id"/> </MultiBindin...
Hello, does anybody know, if there is a WindowsExplorer-like filebrowser which I can include in my WPF-window. I don't want use OpenFileDialog. I have searched a bit and only found simple directory-trees or lists. I want to have an interface like it is in OpenFileDialog. Would be great if there are any advices, Greetings, Martin ...
Hi, I have come across a bit of a problem while using Unity and WPF. The scenario is I have a WPF application which follows the MVVM design pattern. A have a module called ViewKDI. Within this module I have a service called ViewKDIService, the ViewKDIService service utilises another service called UserService. Every time I load the ...
I have a style for a ListBox. In the listbox style I have a style for the ListBoxItems. All of this is in the section. I want to catch the IsEnabledChanged event for the Listbox Items (see this question for why). I tried setting up an EventSetter, but it can't see the event because it is not a "routed event". How can I attach an ev...
I'm having a hard time even phrasing this question. I'm displaying preview images to users in my UI within a ListBox. When a user hovers over the image, I'd like to expand it so the user can see more detail. I've gotten to the point where I can "pop up" the image, but of course it is still within its normal position in the layout, mea...
I am working without expression blend and just using the XAML editor in vs2010. The wisdom of this aside, I am increasingly seeing a need for design-time data binding. For simple cases, the FallbackValue property works very nicely (Textboxes and TextBlocks, etc). But especially when dealing with ItemsControl and the like, one really need...
Does anybody know how to get a border in WPF with a caption, i.e. the way web browsers display <fieldset> tags ? Is there an easy way, like setting a property, or am I going to have to make a ControlTemplate ? ...
In Visual Studio 2008 Team System, this is my warning: Different checksum values given for '<some folder>' ...\Visual Studio 2008\Projects\... \Debug\...\SomeFile.g.cs The offending line in the SomeFile.g.cs file is: #pragma checksum "..\..\..\..\..\..\...\SomeFile.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A18BC47B27EC4695C69B6...