hello Experts
i m using Wpf data Grid When Ever it to be loaded it is to be Come With A blank Defaul Row. there is no such property like windows grid to disable it..how can i disable it
than ks in advance shashank
...
            
           
          
            
            what is the difference between wpf command and event?
...
            
           
          
            
            I am new in WPF, I created a new UserControl MyUserControl. 
Now I am surprised: the UserContol does not have a location.
How can I read (by code) myUserControl1.Location in the parent container?
I explain: 
I have some Dots (UserControls) that the user can drag in a panel. Actually, I am not sure what kind of Panel this will be... P...
            
           
          
            
            I've bound the data context of the following Window to the code behind to give me a MVVM style to demonstrate this behaviour:
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="3...
            
           
          
            
            hello Expert 
i have a problem i have some data in my data table there are 12 column in this whenever i want to bind it to a wpf datagrid(i want that first to column is to disable) and all other are shown in grid
how can i do this thanks
shashank
...
            
           
          
            
            Hello,
I am trying to fill a GridView with data provided by a ITypedList. I have a Dictionary<string,object>, and the columns & values are inside. So if the dictionary has: 
"Name" : "Jack"
"Age" : 20
The GridView will have 2 columns, Name and Age, and the values are Jack and 20.
So, the main idea from which I started was the follow...
            
           
          
            
            I am trying to stretch the wpf tab control content for fit the screen when it resizes even if the tab item is empty. There doesnt seem to be a stretch property?
...
            
           
          
            
            I have a problem stretching the content of a ListBoxItem. I use a DataTemplate with a Grid to place the content of the last column aligned at the right. But I must have something in the basic style of the controls that prevents this kind of display - the "*" ("consume all the rest of space") displays like "auto" ("take only what you real...
            
           
          
            
            Ok, now I can use 2 techniques to launch my threads: Dispatcher and BackgroundWorker.
Dispatcher:
' I launch the asynchronous process
Dim a As New Action(AddressOf operazioneLunga)
a.BeginInvoke(Nothing, Nothing)
' I update the GUI passing some parameters
Dim a As New Action(Of Integer, String)(AddressOf aggiorna_UI)
Me.Dispatcher.Beg...
            
           
          
            
            I am new in WPF, need to bind a line to 2 dots. 
But the code bellow does not work: 
<Canvas>
    <Ellipse x:Name="dot1" Width="5" Height="5" 
             Canvas.Left="50" Canvas.Top="50"/>
    <Ellipse x:Name="dot2" Width="5" Height="5" 
             Canvas.Left="100" Canvas.Top="100"/>
    <Line 
             X1="{Binding ElementNa...
            
           
          
            
            Hi !
I want to pass for as a parameter for the GetValues method from MyItemSourceProvider a concrete value of MyEnum. How to write it please?
<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type local:MyItemSourceProvider}">
    <ObjectDataProvider.MethodParameters>
        <!-- ENUM value (e.g. MyEnum.Record1) -->       
   ...
            
           
          
            
            Can I combine 2 elements in one biding?
<Canvas>
    <Ellipse Fill="Black" x:Name="dot1" Width="16" Height="16" Canvas.Left="124" Canvas.Top="133"/>
    <Ellipse Fill="Black" x:Name="dot2" Width="16" Height="16" Canvas.Left="221" Canvas.Top="40"/>
    <Line Stroke="Black" x:Name="line1" 
          X1="{Binding ElementName=dot1, Path=(Ca...
            
           
          
            
            Given a System.Windows.Media.Geometry class instance, is there an easy way to convert this to a list of outlines and points? For example, how could I simply break this down into a list of LineSegments for custom rendering.
FormattedText formattedText = new FormattedText( "Hello", ...);
Geometry textGeometry = formattedText.BuildGeometry...
            
           
          
            
            Hi 
What is difference between the two, i am just confused so much on these two concepts and not able to apply correctly?
...
            
           
          
            
            I've seen the following thread which is related to my question: 
http://stackoverflow.com/questions/2388833/wpf-combobox-background-color-when-disabled
The above deals with changing the Content Template for a ComboBox.  I am working with WPF, am somewhat new to Styles and Templates, and I want to change the dull gray background color o...
            
           
          
            
            I created style for a toggle button, defined below:
<Style TargetType="{x:Type ToggleButton}">
  <Setter Property="Template">
    <Setter.Value>
      <ControlTemplate TargetType="{x:Type ToggleButton}">
        <Border HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="border" Padding="5,5,5,5" CornerRadius="5" Background=...
            
           
          
            
            I have a TreeView which i build up in code recursively. I would like to change the template of each TreeViewItem so that i can add in images etc. into the header. I have tried setting the ItemTemplate of the TreeView Item by creating a static resource within the XAML 
<DataTemplate x:Key="TreeViewItemControlTemplate">
      <sdk:TreeVie...
            
           
          
            
            Hello fellow StackOverflow users (or Stackoverflowers?):
I'm learning-by-coding WPF. I read several articles/saw several screencasts, and coming from a WEB dev background, I fired up VS2010 and started doing a sample application that would help me learn the basics.
I read some about MVVM too, and started using it. I set up my solution ...
            
           
          
            
            Hi. I want to capture the text from the textbox when enter key is hit.  I am using WPF/visual studio 2010/.NET 4.  I dont know what event handler to be used in the  tag ?  I also want to do the same for maskedtextbox.
...
            
           
          
            
            I am creating a windows application for users with xp, vista or 7 PCs.  I was wondering if WPF would work on all these computers, or should I play it safe and just use winforms?
Thanks!
...