wpf

WPF Datagrid. Get the values of each cell of the selected row.

I'm using the WPF toolkit datagrid. How can I get the values of the cells of the selected rows? Thanks ...

Hello im very new to Wpf and also to progamming. I need to do project on barcode generation.

I found lot of Barcode generation codeprojects in C#. But could not find 1 in VB.Net. Please help me on this. ...

Is it possible to inherit XAML?

I have usercontrols which inherit a base class which looks like this: BasePage.cs: using System.Windows.Controls; namespace TestPageManager23434 { public class BasePage : UserControl { public string ButtonPreviousText { get; set; } public string ButtonNextText { get; set; } protected PageManager pageMa...

XAML equivalent to DIV in HTML?

What I want to be more specific is an element I can use for grouping a set of other elements, without effecting their layout. The only thing it should do besides giving a nicer XAML by grouping related elements in their own parent tag is to propagate ambient properties such as DataContext. It should be a purely logical element without an...

wpf grid xaml layout

I am writing my UI mostly in XAML without a wysiwyg in grids you can do <textbox Grid.Column="0" Grid.Row="0" ... when creating a grid comming from a html background i have been doing ... <textbox Grid.Column="0" Grid.Row="0"> <Label Grid.Column="1" Grid.Row="0"> <textbox Grid.Column="0" Grid.Row="1"> <Label Grid.Column="1" G...

WPF Timeline Control

Hi, I am looking for a WPF Timeline User Control. I have checked out Blendables Timeline and Animated Timeline control from IdentityMine, but it is rather basic and buggy. I am looking for a timeline control that is similar to the MIT Similie timeline. http://www.simile-widgets.org/timeline/ What i need to be able to do is add inte...

WPF shadow on stackpanel controls

Hello everyone, Is there a way to make the shadow of the first control in a StackPanel appear on top of the second control? I'm having trouble with this, look at the picture! Code sample: <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

WPF: How can I wrap a content control in another?

I have the following as the body of a UserControl: <Label FontWeight="Bold" x:Name="PaletteLabel" HorizontalAlignment="Stretch" BorderThickness="1" > <Label.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFB6B5C3...

WPF Combo Box Binding

Hello All I am trying to bind a combo box with some data. The problem is that I have the data in the combo box like this: <ComboBox> <ComboBoxItem>Item 1</ComboBoxItem> <ComboBoxItem>Item 2</ComboBoxItem> <ComboBo...

WPF Drill-down GridView to display live data

I'm writing a monitoring system that displays real-time sensor data. The sensors are arranged in a hierarchy. Sensor 1 could, for instance, have S1.1 and S1.2 as children, which could in-turn have S1.1.1, S1.2.1, and so forth. I'm looking for a GridView control that allows one to drill-down each parent item, while still refreshing the ...

Linked Themes/Generic.xaml Files will not work in visual studio 2008

i have a project that i am doing and i need to share the code between silverlight and WPF Assembly problem is that even though the wpf assembly is the owner of that file and the silverlight assembly only has a link to the file, all of the build actions are page everything is correct. if i make the silverlight assembly the owner then silv...

How can I bind a custom object in code-behind to a Grid in XAML?

In the following example, the Message property binds correctly but the FirstName, LastName and Age properties of the Customer object are blank. Why is that? XAML: <Window x:Class="TestBinding9922.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

Nothing displayed when set a line to DashStyles.Dot

<DockPanel LastChildFill="True" Height="18"> <Image Height="18" Width="80"> <Image.Source> <DrawingImage> <DrawingImage.Drawing> <GeometryDrawing Brush="Black"> <GeometryDrawing.Geometry> <LineGeometry StartPoint="0,9" EndPoint="38,9" /> ...

WPF Docking library

I need to use an existing WPF docking library. There are several libraries: AvalonDock .NetBar SanDock ActiPro Infragistics does anyone has any experiance with one of those libraries? Can you recommend one of them? ...

How to set maxlength for combobox in WPF?

Hi, How do i set maxlength to combobox, which is having a style applied to it. Thanks ...

thread usage pattern (.net wpf)

I'm having trouble understanding how to use threads. In a delegate that is called as needed to allow the user to select from a collection of projects, the first instantiation is costly due to data retrieval. The method looks like so: private void _doStandAloneProjectPickSession(ProjectDataMode dataMode) { var picker = new ProjectPick...

Is there a use for XAML <ColumnDefinition>Something Here Example</ColumnDefinition>?

Hi, I was just creating a Grid in my XAML when i noticed that Visual Studio automatically creates ColumnDefinitions like this: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> </Grid> I always stop this from happening by using the s...

Nested TextBlocks and Hyperlinks, How do you replicate this XAML in C#?

I have this XAML: <TextBlock TextWrapping="Wrap" Foreground="Green" Text="This is some Green text up front. "> <TextBlock Foreground="Blue"> This is some Blue text. </TextBlock> This is some Green text following the Blue text. <Hyperlink> <TextBlock Text="And finally, this is a Hyperlink." Tex...

Databinding with WPF User Control...

I've been Googling for it; but without any luck. I think this is fairly simple. I have a user control named 'TicketGroup'. TicketGroup is the visual representation of a List object I have. The XAML code I've got looks like this. <c:TicketGroup Grid.Row="1" /> <c:TicketGroup Grid.Row="2" /> <c:TicketGroup Grid.Row="3" /> ...

Get or Set Accessor of Attached Property not firing on databind? WPF

I have a custom Attached Property but the Accessors on never being accessed on databinding. Are theses accessors meant to be accessed everytime the attached property changes? public static readonly DependencyProperty CharacterColumnNumberProperty = DependencyProperty.RegisterAttached("CharacterColumnNumber", typeof(int), typeo...