This website's effect using wpf.
Hi The website http://www.dontclick.it/ has a cool hand and mouse effect which i am wondering if i could do this using wpf. Will appreciate any suggestions/direction. Thanks N ...
Hi The website http://www.dontclick.it/ has a cool hand and mouse effect which i am wondering if i could do this using wpf. Will appreciate any suggestions/direction. Thanks N ...
Now this question looks similar to the question I've asked here, however, this time I have multiple Path objects. I want to create a control that centers the paths nicely. Example: <Grid> <Path Stroke="Black" Data="M 3,3 L 7,4 3,12 3,3" /> <Path Stroke="Black" Data="M 3,6 L 7,4 12,6 3,6" /> </Grid> Is there an easy way to ac...
I am returning to WPF after a year of winforms development and am trying to get my eye back in with a small project. I am creating a simple 'Filename Textbox' which is a usercontrol with a textbox and a button ("...") which spawns the FileOpenDialog. On this usercontrol I have declared a dependency property of Filename which the Textbox...
Geometry class in WPF contains a Combine() method which is extremely useful when you need to exclude one geometry from the other, etc. Silverlight version of Geometry doesn't have such a method. The same goes for CombinedGeometry class which does the same. Are there any other options to exclude one geometry from another in Silverlight? ...
Hello, i Have problem with WPF comboBoxEdit. I load values it it like this: comboBoxEdit1.ItemsSource = dtCat.DefaultView; Values are loaded, everything works good, but when i select some value from dropdown, in combobox i see not the "DisplayMember" value, but the "ValueMember" value (some numeric ID). What i do wrong?I want to see...
Anyone knows if WPF and ClickOnce works on Windows Embedded Standard 2009 (WES)? I've understood that WES ships with .NET Framework 3.5, but it's not clear to me whether the above technologies are included. I'm guessing WPF will work, but I can't find any docs saying whether ClickOnce will work or not. ...
Hi, I have a scenario where i load an ICollectionView in a datagrid. In some cases I modify the data where the collectionview gets it's data from. If I then reload the grid with configGrid.ItemsSource = configData; for example, the data gets updated. Now the thing is, I sometimes open a new window using: var newWindow = new Edit(movi...
Is it possible to assign value to a dynamic resource from another dynamic resource? For example <sys:Double x:Key="ButtonWidth">48</sys:Double> <sys:Double x:Key="SmallButtonWidth"> ButtonWidth / 2 </sys:Double> ...
I have WPF ListBox that shows a lot of data. I need smooth scrolling, so I've set ListBox.ScrollViewer.CanContentScroll to False that disables virtualization. Now when I open tab where this ListBox is placed, I see nothing for few seconds because ListBox is loading/creating items/rendering. I also have a control that shows some animation...
Is there any way I can add grid column dynamically in xaml (e.g. using trigger/datatrigger)? The case is that I want to add/remove grid column depending on the Visibility property that is binded to that grid. ...
I have created a static resource defining the border of a specific item in my xaml, but I can't find a good way to define a unique color for each side! xaml: <Border Style="{StaticResource SidePanelBorder}"> <!-- rest of the xaml --> </Border> StaticResource: <Style x:Key="SidePanelBorder"> <Setter Property="Control.Bord...
I defined in XAML DataTemplate for my own type. <DataTemplate DataType="{x:Type MyType}"> ... </DataTemplate> Now I want to add one more template for the same type in the same scope. How would I choose then which of templates to use in concrete ItemsControl? Background: I have ItemsControl that displays objects of different types...
I am creating dynamically ScatterView items using template: <s:ScatterView.ItemTemplate > <DataTemplate> <DockPanel LastChildFill="True" > <DockPanel.Background> <ImageBrush ImageSource="{Binding Type, Converter={StaticResource imgSelector}}" Stretch="Fill" /> ...
I'm having problems understanding how WPF app.xaml works. Is it like Main method in winforms programing? What I want is a MainController class which keeps track of my Window object. For example: public MainController() { _windowMain = new WindowMain(this); } public WindowMain GetWindowMain { get { _windowMain; } } And so on with...
Hi, In WPF, i have raised previewMouseLeftButton down for tabItem.I want this event to raise when tabitem's header is clcked. Tab item's content is textbox and button, But whenever i click on textbox or button, tabitem's previewmouseleftbuttondwn is raised. How can it be avoided?,Please help Thanks, ...
In WPF Binding.Mode, when selecting Default, it depends in the property being binded. I am looking for some list or some convention or any information for the defaults for the various controls. I mean, what properties is TwoWay by default and so on. Any links, ideas, thoughts and even rants are welcommed! ...
I have a treeview control which is binded to System files to show it . similar to Windows explorer Treeview . I use items.SortDescription.Add(..,..) for sorting .The same works for sorting other hierarchical data objects . But it doesn't work for treeview , Help me plz? ...
I'm using the excellent Magellan navigation framework from Paul Stovell. When you have this method in the controller Public Function Save(ByVal Contact As Contact) As ActionResult Try Contact.Save() Return Index() ''//Call other action result that brings the list of contacts Catch ex As Exception Return ...
I want a multiline textbox which shows apostrophes before and after each line. So that the textbox looks like: " Hello this " " is a funny " " string test " Or for example: // This is // a muliline // comment. Edit: These special characters must be readonly and if the user copies text from the textbox these characters should not ...
Is there a way to change a WPF assembly icon from code? I'm not referring to the window icon, but to the icon that appears on the .exe file. EDIT: I'm trying to achieve interactivity in the application icon's representation - different user-initiated actions combined with a current state should lead to a different application icon. I r...