Adding image from source property of image control(WPF) at Access Database
Hi to all First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). This is tested solution
Why is there a performance difference when my application becomes activated?
I am working on a WPF application that displays a grid of many images with scrolling/expanding animations that display a video when the user hovers the image. When this application is run on an Intel CPU + NVidia GPU machine, the animations and video…
WPF - Change cell colour when operation is successfull
Hello! I have this datagrid: The last column has buttons ("+") that when pressed open the following window: In this window when the "Registar" button is pressed the app executes an operationa and returns to the…
How to start WPF in separate thread and still updating it continuously
Hi. C#, .Net 3.1, WPF I want to have a WPF window that takes data from a BlockingCollection<ColorAddress>(ConcurrentQueue<ColorAddress>) continuously. I have managed to start the window in it's own thread, but while doing this with the…
Are there namespaces and XAML components unique to Silverlight?
I have inherited a legacy application and need to know if it is using Silverlight. Apart from uninstalling Silverlight, is there any way to look at the code and determine if it is a Silverlight application? If it is a Silverlight application, I need…
WPF: rotate a Model3D about the Viewport3D center
I have a WPF app where different Model3Ds are arranged in a Model3DGroup and displayed in a Viewport3D. I may pan, zoom in / out the displayed models. Everything is handled programmatically in the .Net app. The only Xaml code is to define a UserControl…
How can I access resources from external assembly?
I don't seem to be able to access remote resources from an external assembly. The following line in MainWindow.xaml isn't working, no background color is getting displayed: <StackPanel Grid.Row="0" Background="{DynamicResource…
Question about performance in Wpf
Hi, I have a general question about the right way to bind a class to a listview or list box or any other control in wpf. Lets say that I have a textbox which the width is binded with the property of my class "my width" <Textbox…
WPF Listview
Hi, I have a WPF ListView, the objects of which are bound to a view model and I use a CollectionViewSource to group them based on their properties - the CollectionViewSource dynamically creates expanders and groups the items in the ListView - this…
WPF ListView change arrow icon
Hi, I've created an app in Visual Studio in C# using a WPF page - all works fine. The app displays a list view which has several sub lists (looks very similar to an Expander), I don't like the large arrow in circle icon and would like to change it to…
How to store and retrieve image using MVVM pattern in WPF C#
Please I am looking for a solid means to save and retrieve image to/fro SQL server database. I am using MVVM pattern in WPF. I have gone through everything I saw on Google concerning this issue, all I'm seeing is Image control being tied directly to code…
INotifyDataErrorInfo implementation for several values, check that there are no errors in Dictionary (WPF MVVM)
I have been trying to implement INotifyDataErrorInfo and everything seems to be working except SaveSettings() and especially bool HasErrors. Can somebody please tell me why and how to fix it? I mean that SaveSettings is always triggered, even if there…
How can I bind text and have it format itself on the UI?
Hi. How can I bind text and have it format itself on the UI? For example, suppose the string in the ViewModel is this: myDependencyProperty = @"<b>Title: </b>My title\n<b>Description: </b>This is my…
Azure work well with the new ghostly app?
Does the new ghostly app work well with Azure? And if so what's the best platform to integration with?
Accessing property from multiple Classes (MVVM WPF application)
I have been trying to learn C# by creating a small app. Recently I have been trying to implement SessionEvent for screen lock/unlock to pause the timer. I am having a problem understanding how to access timer from App.xaml.cs. Currently while locking the…
How to make a Home-button in UserControl switch a page in MainWindow frame without using mvvm?
Hi there! I am new in wpf and c#. I have now used 2 days on searching the web without any solutions I could implement in a satisfying way. Either I can't make the solutions work or it's the annoying MVVM pattern. At my current learning step it's just…
WPF rendering a Viewport3D to RenterTargetBitmap changes RGB values
I'm trying to render a Viewport3D with textured triangles to a RenderTargerBitmap. But the colors in the bitmap are different than in the viewport: Right side: an actual in-app Viewport3D. Left side: the RenderTargetBitmap shown in a…
WPF MVVM how to show data from many tables in one view
Hi, I think this is very common scenario when you have relational database and classes witch represent each table as class (as is model) public class Role : AppEntityBase { public int RoleId { get; set; } public string…
WPF MVVM relational database with foreign keys sample
Hi what is the best practice to work with foreign keys? How to design object class? Should I use valueConverter to switch between RoleId to RoleName
Access IValueConverter From ResourceDictionary
I have Canvas that is icon: Dictionary1.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" …