Programmatically add controls in Grid Cell
I have a 2x2 grid and I want to add a control in the 2nd row 2nd column. The below adds it to the 1st row and 1st column. How can I do this?<Grid ShowGridLines="True"...
View ArticleAccess to path denied error while debugging VS 2012 WPF
I'm working on the "Building a Simple WPF Application WalkThrough" on MSDN and am getting an UnauthorizedAccessException error when trying to read the contents of certain folders, such as "My Music"....
View ArticleVisual Studio 2012 WPF Designer & Satellite Assemblies
Dear all,I'm developing a localization extension for WPF and other Frameworks based on MarkupExtension with design-time support. This worked well for VS 2010.Beginning with VS2012 (and earlier with...
View ArticleSet converter on binding pulled out of a multibinding
Been at this for hours now and can't seem to find the solution... any help is greatly appreciated! I have a DataGridTextColumn that has multiple bindings. I have the converter working great in my XML...
View ArticleWPF Canvas DoubleClickSize test?
So I need a double click event on a canvas that I am using.I successfully see a double click using the mouse down event per some other code suggestions on the web, and I use the...
View ArticleFramework Crash occurring while entering Japanese Kana in WPF text Box after...
Hi,When I enter Japanese Kana character in WPF TextBox soon after setting Focus, System.Environment.FailFast Exception is occuring. The following details is obtained from event log, 場所...
View ArticleAnimation like Windows 8 waiting visual cue
Hi all,When I open a program or website which take a bit long to load, there is a waiting visual cue displayed which is either series of dot running horizontally or in circle(with easing).Have anyone...
View ArticleUsing a vector based button in WPF.
Create a xaml file to render a vector based button(Say Previous Button) Instead of referencing a graphic file, the Bitmap database should be used to reference a XAML file. Modify the wpf class to use...
View Articleitemscontrol&internal function
hi, i am new to wpf.why some useful functions are defined internal in itemscontrol. such as:internal void NavigateByLine(FocusNavigationDirection direction, ItemNavigateArgs itemNavigateArgs) {...
View ArticleNew to MVVM: how to workout the View
I've just got 3 classes: Topic, Example and Exercise. Topic is the main class where both Example and Exercise is linked to. In my window (non-MVVM) I am populating a listbox with my topics, and upon...
View ArticleAnonymous Type and observablecollection
I want to create an anonymous type of a data type class that has more fields that I wantThat's not the problemI want to return an observablecollection(of ?) from the anonymous typeI assume that I could...
View ArticleScatter puzzle sample for Windows 8
Hello, I am trying to run the Microsoft Surface SDK 2 code sample for the Scatter Puzzle on a Windows 8 computer. It works great on Win 7 but generates a stack overflow error on Win 8 when compiled for...
View Articlelabel dynamic update
Hi, I have strange situation with my label update during long loop.I found nearby a nice and elegant way to update this label by Dispatcher.BeginInvoke, which is work until I separate this code to...
View ArticleWPF and windows application
Hi,All the WPF demos I've seen were displayed in Silverlight. Is it possible to get the same visual effects in a Window Application? I'm thinking about animation, controls and so on.thanksacheoacheo
View ArticleIs WPF dead or going to be
I read this article and not sure if its worth learning WPF in case its not used in future - anyone got any thoughts?http://www.theregister.co.uk/2010/09/09/microsoft_html_5/
View ArticleIs this ShowDialog tip valid or obsolete?
I am going through the confusion (aka learning curve) about:using Microsoft.Win32; vs. using System.Windows.Forms;and Forms vs. WPF, so please bear with me.Is the tip described here valid?...
View ArticleHyperlink disappear after binding the text?
Hyperlink shows well in code below:<TextBlock x:Name="textBlock" Text = "Hello"><Hyperlink Name="Contacthyperlink" Foreground="Blue"> world</Hyperlink></TextBlock>But it just...
View ArticleHow to use CommandTarget with a custom RoutedCommand
Hi everybody,I'm encountering problems with a RoutedCommand. I have a RoutedCommand that looks like the following one (stored in a static class namedCommands) :public static RoutedCommand...
View ArticleOne Dataview from two dataset's table
Dear Experts,I am working in wpf with vb.netI have a global dataset, in this dataset having more then 10 tables,one table one dataview is working fine as 'Dim dv as New...
View ArticleNeed the simplest DataGrid populated
Could a kind soul please show us the code (C#, not XAML!) to fill the following in a System.Windows.Controls.DataGrid??Name: "Bill Gates", Company: "Microsoft"Name: "Steve Jobs", Company:...
View Article