Click here to Skip to main content
14,237,525 members

Silverlight / WPF

 
AnswerRe: About drag-and-drop issues Pin
Richard Deeming29-Mar-18 3:04
mveRichard Deeming29-Mar-18 3:04 
GeneralRe: About drag-and-drop issues Pin
Member 1300190329-Mar-18 20:26
memberMember 1300190329-Mar-18 20:26 
GeneralRe: About drag-and-drop issues Pin
Gerry Schmitz2-Apr-18 7:18
mveGerry Schmitz2-Apr-18 7:18 
GeneralRe: About drag-and-drop issues Pin
Pete O'Hanlon2-Apr-18 7:50
protectorPete O'Hanlon2-Apr-18 7:50 
GeneralRe: About drag-and-drop issues Pin
Gerry Schmitz2-Apr-18 8:08
mveGerry Schmitz2-Apr-18 8:08 
GeneralRe: About drag-and-drop issues Pin
Member 130019032-Apr-18 17:25
memberMember 130019032-Apr-18 17:25 
GeneralRe: About drag-and-drop issues Pin
Pete O'Hanlon2-Apr-18 22:45
protectorPete O'Hanlon2-Apr-18 22:45 
QuestionUse dependency properties with a WPF custom control Pin
bytesport27-Mar-18 23:18
memberbytesport27-Mar-18 23: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 7:58
mveRichard Deeming28-Mar-18 7:58 
QuestionWPF DataGrid Group Summary Rows Pin
Kevin Marois19-Mar-18 17:26
professionalKevin Marois19-Mar-18 17:26 
AnswerRe: WPF DataGrid Group Summary Rows Pin
Mycroft Holmes19-Mar-18 21:58
memberMycroft Holmes19-Mar-18 21:58 
GeneralRe: WPF DataGrid Group Summary Rows Pin
Kevin Marois20-Mar-18 5:01
professionalKevin Marois20-Mar-18 5:01 
GeneralRe: WPF DataGrid Group Summary Rows Pin
Mycroft Holmes20-Mar-18 12:29
memberMycroft Holmes20-Mar-18 12:29 
AnswerRe: WPF DataGrid Group Summary Rows Pin
Gerry Schmitz20-Mar-18 8:14
mveGerry Schmitz20-Mar-18 8: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 2:47
memberMc_Topaz15-Mar-18 2: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 6:35
mveGerry Schmitz15-Mar-18 6:35 
QuestionWPF: GroupBox background Image Pin
Hervend8-Mar-18 22:01
memberHervend8-Mar-18 22:01 
AnswerRe: WPF: GroupBox background Image Pin
Pete O'Hanlon8-Mar-18 22:44
protectorPete O'Hanlon8-Mar-18 22:44 
GeneralRe: WPF: GroupBox background Image Pin
Hervend8-Mar-18 23:06
memberHervend8-Mar-18 23:06 
GeneralRe: WPF: GroupBox background Image Pin
Hervend8-Mar-18 23:24
memberHervend8-Mar-18 23:24 
GeneralRe: WPF: GroupBox background Image Pin
Hervend9-Mar-18 2:31
memberHervend9-Mar-18 2:31 
AnswerRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin8-Mar-18 22:47
memberLeif Simon Goodwin8-Mar-18 22:47 
AnswerRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin8-Mar-18 22:49
memberLeif Simon Goodwin8-Mar-18 22:49 
GeneralRe: WPF: GroupBox background Image Pin
Hervend8-Mar-18 23:13
memberHervend8-Mar-18 23:13 
GeneralRe: WPF: GroupBox background Image Pin
Leif Simon Goodwin9-Mar-18 0:38
memberLeif Simon Goodwin9-Mar-18 0: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.