switch items DataTemplate
Say I have the following 2 DataTemplates defined - <DataTemplate x:Key="DataTemplateA"> <StackPanel Orientation="Horizontal"> <Button>swap</Button>...
View ArticleWPF creating XBMC like desktop application
I want to create a Media Center Desktop Application like XBMC. with .NET Framework 4.5 on windows 8.1 OS.Please someone advice to choose proper framework ( light MVVM , PRISM , Caliburn Micro,etc.. )....
View ArticleImage control mouse move inside Scrollviewer
Hello all,I have a image inside stackpanel and scrollviewer. I pan and zoom using mousedown and mousemove events using rendertransform. I want to restrict the image movement when zoomed in and out. The...
View Articlewpf richtextbox taing one character per line, when no width or minwidth is set
I have a richtextbox inside a grid and a stackpanel. The problem is I am not setting the width of richtextbox. I want it to occupy according to its parent. But when I type characters, its displaying...
View ArticlePrintTicket not reflecting Printing Preferences
In Windows 7, if I open the Printer Properties via Devices and Printers, I can set both the Printing Preferences (General tab) and the Printing Defaults (Advanced tab). When I create a WPF PrintDialog...
View ArticleRichTextBox line breaks disappear after copying from Settings
Hi, I have two richtextboxes rtbInp and rtbOut. For rtbInp in the xaml I set Paragraph Margin to 0 to avoid extra lines when user hits the 'Enter' key. The button 'Copy' copies content of rtbInp to...
View ArticleGetVisualChild() problem.
Hello. I wrote an application with next descendant of Canvaspublic class DrawingCanvas: Canvas { List<Visual> _visuals = new List<Visual>(); protected override int VisualChildrenCount { get...
View ArticleCAPTCHA code from XAML?
Hi there, is it possible to implement it in a XAML element?Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.
View ArticleDatagrid column header glyph direction is always reverse that of items sort...
Hi,I am running into a weird problem. I have a DataGrid in my application where I observe the Glyph direction is always reverse that of the items being sorted in the column. e.g. If items are sorted in...
View ArticleEnabling ToolTip message when control is IsEnabled = FALSE?
I have not idea how to do thatTIA,Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.
View Articlehow to build a player to run different WPF application
Dear all,I have a project to build an WPF application which will read its configuration setting and parameter from a database hosetd in the cloud. When the local application start, It will read it...
View ArticleHow to bind combo box inside datagrid in wpf with observable collection...
<xcdg:DataGridControl x:Name="dgDetails" Grid.Column="0" Grid.Row="6" Grid.ColumnSpan="4" AutoCreateColumns="False" Width="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto"...
View ArticleUsing Drag and &Dr with textBox
HII have read recent post in the MSDN and I found something very similar :) for what I need.I need to create D&D from listBox to textBox and I found this code which is working 4 me but I have...
View ArticleWhy Illustrator files doesn't flexible and not fit within the Container?
Hi,<DrawingImage x:Key="ShoppingIcon"><DrawingImage.Drawing><DrawingGroup><DrawingGroup.Children><GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 142.892,-41.1384L...
View ArticleRESX keys visible on intellisense stuff?
Hi ya,I'm using lots of keys in my app. I mean, when you write "{Resx" inmediately you can get the whole list of keys for your resource file..Otherwise you need to open the .RESX file and look there...
View ArticleFiring a Tab stroke after CTRL + V on a WPF Textbox?
Hi there,After paste a text (CTRL + V) I would need the cursor would move onwards to the next TextBox without user interaction.It's an entry form where you must fill 5 TextBoxes which composed the full...
View ArticleWPF:FolderBrowser dialog select multiple folders &or Files/Multiple Files (C#)
Hi Guys good morning!I'm using `FolderBrowseDiloag` to open a folder to get images by filter & it works.I want to propose the user to `Select Multiple Folders or File/Files(selected type : ".jpg",...
View ArticleWPF window with DirectX content flickering during resizing
I have an issue with WPF window.Now I use C++/CLI to create code for my DX11 engine. In this code I create WPF window and use it for D3D11 output.I make rendering in another thread and everything works...
View ArticleDatePicker SelectedDateChanged Event Firing Twice
Hello everyone, My application loads data based on date, so when the window loads, I set the value of my DatePicker to today's date. Unfortunately, this seems to fire the SelectedDateChanged event...
View Articlereuse VisualStates on multiple controls
In my application there are a # of similar user controls that I want to apply identical VisualStates to.Don't want to duplicate the xaml for each user control - is it possible to specify the...
View Article