I have made some custom attached properties that enable me to create a "pop out" effect on any control.
It animates the width and/or height when a boolean DependencyProperty is toggled.
Is there a good way to set all ScrollViewer's scrollbar visibility inside the control to hidden during this effect? You can see some ugly scrollbars a...
Im having a little trouble understanding the relationships between the animation defined for a state, say state "A", and the animations defined for a state transition from A -> B.
At what situation does the transition defined for state A get played? Is it just from the base state to A?
...
I have a class and a set of IEnumerables that are using this class to give me a list in a list. (See this question's answer for details.)
Here is the code:
public IEnumerable<IEnumerable<WorkItemColumn>> EnumerateResultSet(WorkItemCollection queryResults)//DisplayFieldList displayFieldList)
{
foreach (WorkItem workItem in queryRes...
Hello,
I'm writing an application with WPF and part of it involves managing for the user various files which are used configure custom, in-house devices. I need to be able to manipulate different types of configurations in tabs in the same TabControl, meaning that the content of the TabItems must be dynamically generated. I'd like to d...
I'm writing a really simple name / value editor control where the value is editable - label on left and property text box on right. Control works fine except that when the user hits TAB when inside one of the "value" text boxes on the right, the focus shifts away from my control to the next control in the hiearchy. I want the focus to ...
I'm nearing completion of one of my kick ass programs and I'm positive it's going to be a hit.
This is just the cherry on the top (for me, nyuk nyuk). It's been a long standing tradition for me to place the about form last as a finishing touch.
What information should I place there for everyone to see?
...
Actually I'm using an items control and animating the childrens of it. The problem is when adding the items dynamically through Add() method the first item is not getting animated and just comes to display as usual.
I've planned to hide the dynamically added child and later make it visible when i want to use it with animation and that ...
A friend of mine has difficulties in using both hands in the keyboard. He always use his left hand only. He asked me to write a C# program to send key combinations to the system so that it override the default shortcut keys.
For example he wants to replace LWin + D with Ctrl + L so that when he presses Ctrl + L it'll show his desktop.
...
hi am new to wpf can any body help me how to display hierarchy /grouping in wpf datagrid using backend as sqlserver 2005 ,language c#.
thanks in advance....
...
Hello!
Here are the DataTemplates:
<DataTemplate DataType="{x:Type data:Item}" x:Key="ItemTemplate">
<Border/>
</DataTemplate>
<DataTemplate DataType="{x:Type data:StyleItem}" x:Key="StyleItemTemplate">
<Border>
<ContentControl Content="{Binding Item}"
ContentTemplate="{StaticResource ItemTemplate}"/>
...
I have a flowdocument with a named Span" test1" which I want to replace the contents of programmatically
TextRange tr = new TextRange(this.test1.ContentStart,this.test1.ContentEnd);
Run run = this.test1.Inlines.First() as Run;
run.Text = "replaced text";
This works, however the problem is when doing the update the name of the span...
I am novice in WPF. I have a wpftoolkit datagrid where i am using a combo box as datagridcombox column. I am using a observable collection of Codes for binding the combo box. Below is the collection and its class...
#Region "Class & Coll"
Public Class CodesColl
Inherits ObservableCollection(Of Codes)
End Class
Public Class Codes
...
DataGridTextColumn col = new DataGridTextColumn();
col.Header = "Text1";
col.Binding = new System.Windows.Data.Binding("Text1");
grd.Columns.Add(col);
I want to get the Binding propertyname for each column
foreach (DataGridTextColumn column in grd.Columns)
{
}
How do I achieve this?
...
This is actually two questions in one:
First, when you write your XAML and Intellisense fails to recognize the type you want to use (in my case, Array), what steps do you go through to figure out what's going on? I initially look over my XML namespaces to make sure that everything looks like it's in order. If it's a CLR type (not one ...
My problem feels very similar to the issue mentioned in this post. Essentially, Invoke is hanging (only when run outside the debugger). I think it's due to nesting of Invoke calls.
I'm using MVVM Light, and I've tried two implementations of a multi-thread friendly ObservableCollection - I've used this one for ages and recently tried t...
I'm having a problem with the default button in the xaml code below -
<Window x:Class="WebSiteMon.Results.Views.GraphicSizeSelectPopUp"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:commonWPF="http://rubenhak.com/common/wpf"
xmlns:WPF="clr-namespace:Bennedi...
Is there a way to read/write the cookies that a WebBrowser control uses?
I am doing something like this...
string resultHtml;
HttpWebRequest request = CreateMyHttpWebRequest(); // fills http headers and stuff
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (StreamReader sr = new StreamReader(response.GetRes...
Debugging a binding when it is like this
IsChecked="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType={x:Type ListBoxItem}}, Mode=TwoWay, Path=IsSelected}"
is easy. You add the following:
xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"
IsChecked="{Binding RelativeSource={Relat...
To keep code out of the view when using the Model-View-View Model pattern (aka Presentation Model), I can expose commands as properties in the view model and bind to those commands from the view. This way my views can be entirely written XAML and no code-behind, other than the mandatory constructor call to InitializeComponent().
This wo...
Apologies for this trivial question, I'm new to WPF and keep finding blogs that almost describe what I want...
I have a Label that is bound to a property and updating nicely on screen, and now I'd like a small animation that flashes the background colour of the label whenever the value is updated. Ideally I'd like a pure xaml solution
...