Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

how to disable focus in a custom control (ItemsControl)?

Hi EveryOne,I need to disable focus in my custom control which is inherited from ItemsControl. Now it got focus when select items in ItemsControl. I tried with FocusManager and SetFocusable as false....

View Article


How to open winform as window in viewmodel without breaking the MVVM design...

Hi,I am using MVVM design pattern. I have a view model command attached to button in view. When user clicks on this button I should open an winform as window. If I do this in viewmodel, will it break...

View Article


Image may be NSFW.
Clik here to view.

wpf - update datasource after adding table to entity framework?

I'm learning WPF and EF so I may not use the correct terminology.  Using the EF wizard, I used two tables already in a SQL database.  Then I created a datasource and used that for control binding.I...

View Article

Dynamically Rotate a button

I have a round button that I want to allow the user to turn - How would I apply a turning animation to the button as the user is dragging it in a turn position?

View Article

get shellicon pump my memory to crash

hey,yesterday i asked about filling a datagrid. It chrashed after filling it too often with a class. But after testing i was able to identify the source of the Memory leak. To get the Icon for the...

View Article


import 3d obj model and control rotate,traslate,scale.... from buttons

hi, i'm new at WPFi searched all over the internet for some example that demonstrate how to move some 3d Model with the regularevents.i'll explain what i mean:i'm using Visual studio 2012 and opened...

View Article

How to connect Web Camera with WPF application ?

Hi All,          I  want use web camera by wpf application. How it's possible hardware devices (Web Camera) attached by WPF application.I want to use web camera in my wpf application so please replay....

View Article

Dispatcher.BeginInvoke vs DispatchTimer.tick

What are the differences (if any) and are there any advantages to using one method vs the other? I used BeginInvoke calls in my WPF application but a fellow developer used the DispatcherTimer.tick...

View Article


How to use JsonObject or the Windows.Data.Json namespace..?

I am porting a Metro app to Wpf and need to use the JsonObject (or similiar)I don't want to use the DataContractJsonSerializer because the object type is not givenIn addition and if possible, I prefer...

View Article


DesiredSize is not beeing respected

I created a custom MediaElement, very simple, just to add another property to it, which influences the layout of the MediaElement. The property is AspectRatio, which is the aspect ratio that the...

View Article

wpf and EF - sort data before filling datagrid

I'm new to EF (version 6.0.1) and fairly new to WPF.  Using this tutorial, I've created a master/detail scenario.  The following code was generated to bind the datagrid to the EF. Dim...

View Article

Image Metadata List (camera maker) struggling to achieve this in mvvm pattern

public class CameraMakersViewModel : ObservableObject //2nd VIEWMODEL - Create Collection For Camera Manufacturers { private ObservableCollection<string> _FoundManufacturers; //The...

View Article

When will MS get this forum to work correctly

I am attempting to find a post but this forum is against that.  I put in search terms and get a list.  It seem to start about 5 years ago and I don't have a month to scroll thru.  I notice that there...

View Article


Datagrid Checkbox

I have found that when selecting a checkbox within a Datagrid and I scroll down I find other checkboxes have checked themselves.This is a new problem as the checkbox have been in use for some time...

View Article

WPf bound DataGrid - how to block DataGRid updates

Hi,I have two VIEW/VIEWMODEL pairs (MASTER & DETAILS) based on the same MODEL. Both VIEWs have a DataGrid bound to an ObservableCollection in the common model via the two VIEWMODELs. When i have...

View Article


industry standard in icons used in the system tray

Hello All,I have searched high and low for documentation on how to make a decision on what resolution icon to use for a new app that i am writing. This icon should sit in the system tray while the app...

View Article

How to set and change the Targeted Framework version in Visual Studio 2012...

Hi,     Could you help me "How to change and set the Targeted Framework version in Visual Studio 2012 solution project?" Because, I want to change the .NET Framework in 3.5 or below version to support...

View Article


How to add a "new tab" to CEF

Hi all,I hope you know about chromium embedded framework. I have a question about how I can add  "open a new tab" feature to chromium embedded framework.

View Article

Binding from a Setter in Codebehind to a brushdefinied in resources

Hey,i temporaly inside a Style for a control in codebehind. There, i applied a Trigger. This Trigger should bind to a brush, which is definied inside a ResourceDicionary. So, the StaticResource Keyword...

View Article

I implemented ICommandSource in a Slider, how can I target it to several...

I implemented ICommandSource on a Slider, then I used it on a TextBox and it works perfectly.<local:CommandedSlider x:Name="FontSlider" Background="AliceBlue" Minimum="0" Maximum="40" Value="10"...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>