Click here to Skip to main content
15,909,822 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Convert a glyph from a font to a WPF shape. Pin
Christian Graus22-Jun-09 10:54
protectorChristian Graus22-Jun-09 10:54 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Lutosław22-Jun-09 13:27
Lutosław22-Jun-09 13:27 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Christian Graus22-Jun-09 13:42
protectorChristian Graus22-Jun-09 13:42 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Lutosław22-Jun-09 14:09
Lutosław22-Jun-09 14:09 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Christian Graus22-Jun-09 15:13
protectorChristian Graus22-Jun-09 15:13 
AnswerRe: Convert a glyph from a font to a WPF shape. Pin
Pete O'Hanlon22-Jun-09 11:24
mvePete O'Hanlon22-Jun-09 11:24 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Lutosław22-Jun-09 13:01
Lutosław22-Jun-09 13:01 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Pete O'Hanlon22-Jun-09 22:19
mvePete O'Hanlon22-Jun-09 22:19 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Lutosław24-Jun-09 4:35
Lutosław24-Jun-09 4:35 
GeneralRe: Convert a glyph from a font to a WPF shape. Pin
Pete O'Hanlon24-Jun-09 4:38
mvePete O'Hanlon24-Jun-09 4:38 
QuestionVertical/Horizontal scrollbar for silverlight page Pin
Sunil P V22-Jun-09 6:06
Sunil P V22-Jun-09 6:06 
QuestionRe: Vertical/Horizontal scrollbar for silverlight page Pin
Mark Salsbery22-Jun-09 8:37
Mark Salsbery22-Jun-09 8:37 
AnswerRe: Vertical/Horizontal scrollbar for silverlight page Pin
Sunil P V22-Jun-09 19:52
Sunil P V22-Jun-09 19:52 
GeneralRe: Vertical/Horizontal scrollbar for silverlight page Pin
Mark Salsbery22-Jun-09 20:05
Mark Salsbery22-Jun-09 20:05 
GeneralRe: Vertical/Horizontal scrollbar for silverlight page Pin
Sunil P V22-Jun-09 22:27
Sunil P V22-Jun-09 22:27 
GeneralRe: Vertical/Horizontal scrollbar for silverlight page Pin
Sunil P V30-Jun-09 22:16
Sunil P V30-Jun-09 22:16 
QuestionCatastrophic failure while running thread with BackgroundWorker Pin
salon22-Jun-09 2:31
salon22-Jun-09 2:31 
GeneralRe: Catastrophic failure while running thread with BackgroundWorker Pin
Viral Upadhyay22-Jun-09 3:03
Viral Upadhyay22-Jun-09 3:03 
GeneralRe: Catastrophic failure while running thread with BackgroundWorker Pin
salon22-Jun-09 3:14
salon22-Jun-09 3:14 
GeneralRe: Catastrophic failure while running thread with BackgroundWorker Pin
Viral Upadhyay22-Jun-09 4:31
Viral Upadhyay22-Jun-09 4:31 
GeneralRe: Catastrophic failure while running thread with BackgroundWorker Pin
salon22-Jun-09 19:11
salon22-Jun-09 19:11 
GeneralRe: Catastrophic failure while running thread with BackgroundWorker Pin
salon22-Jun-09 21:16
salon22-Jun-09 21:16 
QuestionListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 14:56
BlitzPackage21-Jun-09 14:56 
Good people,

I have a listbox embedded within a user control.   The user control is then housed within a data template.   I have created a dependency property for the user control; the type of this property is an observable collection that is intended to be the source of items for the listbox.

The difficulty I am having is that the listbox will not display the items when the user control is part of the datatemplate.   It will display items when it is not part of the data template.   I am pasting code below.   Any help, advice or information would be really helpful.   Thanks in advance.

Here is the code for the list box as it is in the user control.
<pre>
<ListBox SelectionChanged="ListBoxImages_SelectionChanged" IsSynchronizedWithCurrentItem="True" Margin="8,40.76,8,174.91" x:Name="ListBoxImages" Grid.Row="1" ItemsSource="{Binding Path=Photos, ElementName=UCAscensionImageManagement, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ItemTemplate="{DynamicResource DataTemplateImageList}">
          </ListBox>
</pre>

This is the user control, that contains the listbox.   It is in a datatemplate.
<pre>
<SG2_Ascension:UserControlAscensionImageManagement Margin="21.234,0,17.733,54" VerticalAlignment="Bottom" Height="475" x:Name="UCAIMEventPhotos" Width="615" Photos="{Binding Path=UCGeneralDataSeries, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>

Finally, this is the dependency property as it is coded in the user control
<pre>
public static DependencyProperty PhotosProperty = DependencyProperty.Register(
                  "Photos", typeof(GeneralDataSeries), typeof(UserControlAscensionImageManagement)/*,
                  new FrameworkPropertyMetadata(new PropertyChangedCallback(OnRatingChanged))*/
                                                                                                                                    );
            /// <summary>
            /// Photo objects.
            /// </summary>
            public GeneralDataSeries Photos
            {
                  get
                  {
                        return (GeneralDataSeries)GetValue(PhotosProperty);
                  }
                  set
                  {
                        SetValue(PhotosProperty, value);
                  }
            }
</pre>

Again, any help would be greatly appreciated.
AnswerRe: ListBox Binding From Within A User Control Pin
Mark Salsbery21-Jun-09 16:38
Mark Salsbery21-Jun-09 16:38 
GeneralRe: ListBox Binding From Within A User Control Pin
BlitzPackage21-Jun-09 17:08
BlitzPackage21-Jun-09 17:08 

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.