Click here to Skip to main content
15,791,050 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: About drag-and-drop issues Pin
Richard Deeming29-Mar-18 4:04
mveRichard Deeming29-Mar-18 4:04 
GeneralRe: About drag-and-drop issues Pin
Member 1300190329-Mar-18 21:26
Member 1300190329-Mar-18 21:26 
GeneralRe: About drag-and-drop issues Pin
Gerry Schmitz2-Apr-18 8:18
mveGerry Schmitz2-Apr-18 8:18 
GeneralRe: About drag-and-drop issues Pin
Pete O'Hanlon2-Apr-18 8:50
subeditorPete O'Hanlon2-Apr-18 8:50 
GeneralRe: About drag-and-drop issues Pin
Gerry Schmitz2-Apr-18 9:08
mveGerry Schmitz2-Apr-18 9:08 
GeneralRe: About drag-and-drop issues Pin
Member 130019032-Apr-18 18:25
Member 130019032-Apr-18 18:25 
GeneralRe: About drag-and-drop issues Pin
Pete O'Hanlon2-Apr-18 23:45
subeditorPete O'Hanlon2-Apr-18 23:45 
QuestionUse dependency properties with a WPF custom control Pin
bytesport28-Mar-18 0:18
bytesport28-Mar-18 0:18 
Hi, maybe everybody can help me with Dependency Properties and a custom Control, this costumer Control contains a grid, the grid shall be created progammatically- new columns with Buttons and external controls.
I have a dependency properties in this custom Control, but when i call the custom Control then the grid doesn't change.

It seems I have no accessto the grid? Because nothing will created in the grid, no column, no button. What do I wrong?

What I have tried:

my dependency property :

public static DependencyProperty Symbol1Name =
          DependencyProperty.Register("Sym1Name", typeof(string), typeof(UserControl1), new FrameworkPropertyMetadata("test", OnSymbol1PropertyChanged))



public string Sym1Name
       {
           get { return (string)this.GetValue(UserControl1.Symbol1Name); }
           set { this.SetValue(UserControl1.Symbol1Name, value); }
       }

The onChange Function

private static void OnSymbol1PropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
       {
           UserControl1 ak = dependencyObject as UserControl1;
           ak.OnPropertyChanged("Symbol1Name");
           ak.OnSymbol1PropertyChanged(e);

}

The function to Change works in normal WPF App:

private void OnSymbol1PropertyChanged(DependencyPropertyChangedEventArgs e)
        {
            try
            {
                

                
                change(Sym1Name, 0);
                

            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }


The XAML:
<Grid x:Name="Grid1" Grid.Column="1" Background="Gray" Margin="5,0,0,0" >

               <Grid.RowDefinitions>
                   <RowDefinition Height="Auto"  />

               </Grid.RowDefinitions>

           </Grid>

Rant[REPOST] Use dependency properties with a WPF custom control Pin
Richard Deeming28-Mar-18 8:58
mveRichard Deeming28-Mar-18 8:58 
QuestionWPF DataGrid Group Summary Rows Pin
Kevin Marois19-Mar-18 18:26
professionalKevin Marois19-Mar-18 18:26 
AnswerRe: WPF DataGrid Group Summary Rows Pin
Mycroft Holmes19-Mar-18 22:58
professionalMycroft Holmes19-Mar-18 22:58 
GeneralRe: WPF DataGrid Group Summary Rows Pin
Kevin Marois20-Mar-18 6:01
professionalKevin Marois20-Mar-18 6:01 
GeneralRe: WPF DataGrid Group Summary Rows Pin
Mycroft Holmes20-Mar-18 13:29
professionalMycroft Holmes20-Mar-18 13:29 
AnswerRe: WPF DataGrid Group Summary Rows Pin
Gerry Schmitz20-Mar-18 9:14
mveGerry Schmitz20-Mar-18 9:14 
QuestionBind the Text property of a TextBlock inside a ListView inside a cell of a DataGrid to a ViewModel Pin
Mc_Topaz15-Mar-18 3:47
Mc_Topaz15-Mar-18 3:47 
AnswerRe: Bind the Text property of a TextBlock inside a ListView inside a cell of a DataGrid to a ViewModel Pin
Gerry Schmitz15-Mar-18 7:35
mveGerry Schmitz15-Mar-18 7:35 
QuestionWPF: GroupBox background Image Pin
Hervend8-Mar-18 23:01
Hervend8-Mar-18 23:01 
AnswerRe: WPF: GroupBox background Image Pin
Pete O'Hanlon8-Mar-18 23:44
subeditorPete O'Hanlon8-Mar-18 23:44 
GeneralRe: WPF: GroupBox background Image Pin
Hervend9-Mar-18 0:06
Hervend9-Mar-18 0:06 
GeneralRe: WPF: GroupBox background Image Pin
Hervend9-Mar-18 0:24
Hervend9-Mar-18 0:24 
GeneralRe: WPF: GroupBox background Image Pin
Hervend9-Mar-18 3:31
Hervend9-Mar-18 3:31 
AnswerRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin8-Mar-18 23:47
Leif Simon Goodwin8-Mar-18 23:47 
AnswerRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin8-Mar-18 23:49
Leif Simon Goodwin8-Mar-18 23:49 
GeneralRe: WPF: GroupBox background Image Pin
Hervend9-Mar-18 0:13
Hervend9-Mar-18 0:13 
GeneralRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin9-Mar-18 1:38
Leif Simon Goodwin9-Mar-18 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.