I'm a newbie in WPF and I would like to ask if it's possible to access my WPF ojects using C#.
Here is a line of code from WPF:
<Path x:Name="layout1"
Fill="Red" Stretch="Fill" Stroke="Red"
HorizontalAlignment="Left" Margin="374.714,140.786,0,0"
VerticalAlignment="Top" Width="116.215" Height="109.571"
Data="M374...
New to wpf so bare with me.
I am building a proof of concept application before it gets rollout to the real one.
Scenario
I should be able to stop processing in the middle of it.
Toolbar 2 buttons "Start" & "Stop"
User press start and it process a long running task.
User decides out of the blue to stop the task.
I cannot seem to get...
Hello.
I'd like to know if someone has realized a light waterfall animation in WPF/SL, and if so if he could show me how to do this.
KiTe
...
Imagine a control named Testko like this:
public class Testko: Control
{
public static readonly DependencyProperty TestValueProperty;
static Testko()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(Testko), new FrameworkPropertyMetadata(typeof(Testko)));
TestValueProperty = Dependen...
I need to implement a grid in WPF which has squares that can be dragged/dropped to be re-ordered, but I'm not sure the best way to do it. I was thinking using an ObservableCollection of squares and a UniFormGrid but although I have experience with both WPF and drag/drop, ideally I'd like to do a kind of 'jiggle' when before the user rele...
I once have noticied when my Adobe Reader was updating, I saw a small balloon like it always has been. But then I wondered how I could make one of my own balloon/box/border things near my notifyicon. In XAML, I need a small ballon/box/border to appear near a notifyicon.
...
Hello,
I'm trying to replace the content of a WPF grid control by another WPF grid defined in a second XAML file in code (c#).
(simplified example)
Window1.xaml:
<Window x:Class="Demo1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Heigh...
Hello,
I have problems with WPF drawing performance. There are a lot of small EllipseGeometry objects (1024 ellipses, for example), which are added to three separate GeometryGroups with different foreground brushes. After, I render it all on simple Image control. Code:
DrawingGroup tmpDrawing = new DrawingGroup();
GeometryGroup onGroup...
Is it possible to add a dependency property to a ValueConverter and bind it to a property of the object to which the converter is applied?
...
I know the .NET framework and WPF pretty well, but I think the whole thing has gotten too blown up, especially for small apps as the whole .NET framework 3.5 weighs 197 MB by now.
I am looking for a language/framework/library that provides functionality similar to that of WPF (animations, gradients, a.s.o.) and the .NET framework (of c...
Hi All,
I've started a new project where I'm writing a WPF business application, but I'm having trouble with the design. The database was easy to put together, but I'm not sure how I have to go about the designing the application itself.
The main thing that I find hard is the code design. I've decided that the MVVM pattern is very ap...
HI
I have this code
private void Button_Click(object sender, RoutedEventArgs e)
{
ObservableCollection<ListProduct> myList = new ObservableCollection<ListProduct>();
int index = myList.IndexOf((from parcour in myList
where parcour.name == myProduct.name
sel...
How would someone go about adding check boxes to only the children of a tree view in XAML? My goal is to have a tree view where the parent is just a text block and all the children are check boxes but only one child can be checked at a time. I have no problem making the whole the tree view check boxes but I am not sure how to get what ...
There is Interval property on LinearAxis but none on CategoryAxis. I need to control frequency of tick marks on X axis.
The native logic does so many marks that I cant read even if I stretch the chart across 3 wide monitors!!
...
Hi All,
I tried to create linq-to-sqlite dbml using DbLinq but in vain.
Each time I get different type of errors. May be I'm somewhere wrong.
Can anyone tell me the step by step procedure to create the dbml file from the Dblinq source code.
...
Hi, I have two Visual States defined in my MainWindow's LayoutRoot Grid as following:
<Grid x:Name="LayoutRoot" Background="#FF434343" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<VisualStateManager.CustomVisualStateManager>
<ic:Exten...
I am trying to implement an effect that will stretch a polygon along a line from its center point to the mouse location. I've tried various approaches with a SkewTransform and the planar angle between those two points but that isn't giving me what I want.
I am kind of assuming I'll have to go the MatrixTransform route but my linear alge...
I've recently started experimenting with PostSharp and I found a particularly helpful aspect to automate implementation of INotifyPropertyChanged. You can see the example here. The basic functionality is excellent (all properties will be notified), but there are cases where I might want to suppress notification.
For instance, I might ...
I have this very simple ControlTemplate:
<ControlTemplate TargetType="{x:Type ContextMenu}">
<Border
Name="Border"
Background="{StaticResource BlueBackground}"
BorderBrush="LightBlue"
CornerRadius="10"
...
I am writing a text editor and right now if I type very quickly or hold down a key the typing gets very laggy. I was previously working on a winforms version of this program and there was no lag. Would it be possible for me to create a custom richtextbox control and strip out all of the unneeded properties? What would be the best way to ...