Owner: ferocia animi URL:http://rredcat.blogspot.com/ Join Date: Wed, 14 May 2008 20:04:51 -0500 Rating:0 Site Description: C sharp, WPW, XAML, Windows VISTA and other programming's sweet Site statistics:Click here
Problem with focus scope in WPF. 2008-05-12 14:46:00 WPF contains interesting static class FocusManager. This class (more precisely: its static method SetIsFocusScope) allows to set the specified DependencyObject as a focus scope (You can read more about it here).But we have a limitation that didn't describe in MSDN (or more precisely, I not found). We can't use all controls that were inherited from ButtonBase in this focus scope, as these controls Read more:Problem
Inherit properties 2008-05-05 15:39:00 When I investigated WPF feature, I was interesting how use inherit property (If consider that Binding is low performance feature). I used these properties as RegisterAttached only. I have write some test samples but these didn’t work to my of the confuse. Little search in MSDN founded the root of problem. It locate in end of inherit property document, after eulogy powerful this feature.Note: Al
Cider vs VS2008's builder. Just for fun 2008-04-16 07:09:00 I wrote little test sample with using WPF. I added a custom class (inherit from Button) in sample's namespace. I needed to add control in application. Taking into account my previous work experience with the implement controls, I wrote like next xmlns:local="clr-namespace:WpfApplication1;assembly=WpfApplication1" , I confused. Project didn't build. It saw that couldn't find my custom class in
ItemsSource tips & tricks 2008-04-13 13:46:00 Describe problem. When we wish to implement the mechanism Drag&Drop of Children for our control in WPF, particularly that our control contains children in its logical tree (in other case attached and inherit properties work incorrect sometimes). Let that control template contains some other controls inherit from ItemControl. We wish add some children to this inherit from ItemControl controls. Read more:tricks
Deployment SVN (Subversion) for Windows as Home Version Control System. 2008-04-08 16:52:00 I need to use Version ControlSystem
in home. It is have requirement: should be free and for Windows
XP. I selected the SVN () version at 1.4.8.12137 (It’s latest in this moment). After installation in InstalataionFolder (default: “C:\Program Files\Subversion” you can select another) you should added repository folder and start server of SVN. You can register repository folder to use svnad Read more:Deployment
Correct use DataTemplateSelector. 2007-09-04 00:44:00 In the many inherited from FrameworkElement in WPF contain a useful dependency property *TemplateSelector type of DataTemplateSelector. It can set our inherit from DataTemplateSelector class and override the method SelectTemplate(). This allow dynamic generate template for a content. Content-data we can get a elementary binding. And now feature: we can use all binding (even that what refet to Ele Read more:Correct
"Cruel" colors substitution. 2007-07-25 05:14:00 Sometime we need custom one or more brush of control in WPF. If template is not available and in base template used system brush, we can use this workaround (example for ListBox):<ListBox><ListBox.Resources><SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Maroon" /><SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Maroon" /><
Custom style for a class which is inherited from the class of Selector 2007-07-25 03:59:00 We need set own custom style or template for item of control which was inheritance from abstract class
'Selector
' (for example: ComboBox, ListBox, TabControl) in WPF.We can use two way:1) We can add in control's resource some style and template. But it isn't good way, because these styles and templates have access only in boundary of control.2) We can use inheritance from Selector ItemContainerSty Read more:inherited
Correct works of MultiDataTrigger. 2007-07-25 03:38:00 Sometimes we will be use a few MultiDataTrigger in WPF and them contain one identical binding. As practice shows better way is write identical binding to last in the list of condition, in other case MultiDataTrigger works not always. For the other types of MultiTriggers the it was unchecked, although scarcely it isn't identical.. Read more:Correct
Correct use ItemsSource in WPF for controls inherited from ItemsControl 2008-06-05 15:30:00 I sometimes read MSDN forums of WPF. I have founded post with interesting problem. I was interested this trouble.We can download sample from there. Pay attention that ListView have strange behavior: pressing "s" moves the focus to the next item. I was interested this problem and little investigate it. This action relations with search functionality. If we don't need search functionality we can ea Read more:Correct
, inherited