Click here to Skip to main content
15,906,816 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to bind the Stackpanel object into ListView Pin
DavJes26-Jul-10 2:00
DavJes26-Jul-10 2:00 
AnswerRe: How to bind the Stackpanel object into ListView Pin
Michael Eber27-Jul-10 17:38
Michael Eber27-Jul-10 17:38 
GeneralRe: How to bind the Stackpanel object into ListView Pin
DavJes4-Aug-10 21:41
DavJes4-Aug-10 21:41 
GeneralRe: How to bind the Stackpanel object into ListView Pin
Michael Eber5-Aug-10 7:08
Michael Eber5-Aug-10 7:08 
QuestionRemoving specific object from a container and add it to another Pin
sadas232341s24-Jul-10 3:48
sadas232341s24-Jul-10 3:48 
AnswerRe: Removing specific object from a container and add it to another Pin
Parwej Ahamad24-Jul-10 7:30
professionalParwej Ahamad24-Jul-10 7:30 
AnswerRe: Removing specific object from a container and add it to another Pin
Michael Eber27-Jul-10 12:10
Michael Eber27-Jul-10 12:10 
QuestionData binding to static resource: shown to work in VS but not when run Pin
Jonathan Davies24-Jul-10 2:36
Jonathan Davies24-Jul-10 2:36 
Hi,
I'm following a Data Binding example from: microsoft[^] which displays the expected result in the VS2008 design window on XP but not when I run it. The XML looks OK to me with the XMLDataProver in a Resource :
<XmlDataProvider x:Key="MoreColors" XPath="/colors">

and the ListBox attribute :
ItemsSource="{Binding Source={StaticResource MoreColors}, XPath=color/@name}">

, any ideas why it displays data in the ListBox in design mode in VS2008 but doesn't display any data in the ListBox when its run?
<Window x:Class="WpfText2LableBinding.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">

    <StackPanel>
        <StackPanel.Resources>
            <XmlDataProvider x:Key="MoreColors" XPath="/colors">
                <x:XData>
                    <colors >
                        <color name="pink"/>
                        <color name="white"/>
                        <color name="black"/>
                        <color name="cyan"/>
                        <color name="gray"/>
                        <color name="magenta"/>
                    </colors>
                </x:XData>
            </XmlDataProvider>
        </StackPanel.Resources>

        <TextBlock Width="248" Height="24" Text="Colors:" TextWrapping="Wrap"/>

       <ListBox x:Name="lbColor" Width="248" Height="56" IsSynchronizedWithCurrentItem="True" 
            ItemsSource="{Binding Source={StaticResource MoreColors}, XPath=color/@name}">
       </ListBox>
            
    </StackPanel>
</Window>

AnswerRe: Data binding to static resource: shown to work in VS but not when run Pin
Pete O'Hanlon24-Jul-10 4:25
mvePete O'Hanlon24-Jul-10 4:25 
GeneralRe: Data binding to static resource: shown to work in VS but not when run Pin
Jonathan Davies24-Jul-10 7:18
Jonathan Davies24-Jul-10 7:18 
QuestionUser Control Height is 0 before its drawn to screen. Pin
Poohshoes23-Jul-10 15:33
Poohshoes23-Jul-10 15:33 
AnswerRe: User Control Height is 0 before its drawn to screen. Pin
Kunal Chowdhury «IN»24-Jul-10 4:44
professionalKunal Chowdhury «IN»24-Jul-10 4:44 
GeneralRe: User Control Height is 0 before its drawn to screen. Pin
Poohshoes26-Jul-10 4:38
Poohshoes26-Jul-10 4:38 
AnswerRe: User Control Height is 0 before its drawn to screen. Pin
Kunal Chowdhury «IN»26-Jul-10 5:04
professionalKunal Chowdhury «IN»26-Jul-10 5:04 
GeneralRe: User Control Height is 0 before its drawn to screen. Pin
Poohshoes26-Jul-10 8:18
Poohshoes26-Jul-10 8:18 
AnswerRe: User Control Height is 0 before its drawn to screen. Pin
Kunal Chowdhury «IN»26-Jul-10 8:29
professionalKunal Chowdhury «IN»26-Jul-10 8:29 
QuestionWPF controls on web [modified] Pin
Prasoon Chaudhary22-Jul-10 21:58
Prasoon Chaudhary22-Jul-10 21:58 
AnswerRe: WPF controls on web Pin
Jammer27-Jul-10 0:49
Jammer27-Jul-10 0:49 
AnswerRe: WPF controls on web Pin
Jugortha27-Jul-10 13:20
Jugortha27-Jul-10 13:20 
GeneralRe: WPF controls on web Pin
Pete O'Hanlon27-Jul-10 21:50
mvePete O'Hanlon27-Jul-10 21:50 
QuestionBinding ListBoxes to Calender Pin
carrigart22-Jul-10 14:38
carrigart22-Jul-10 14:38 
QuestionA weird WPF build-time error [modified] Pin
makumazan8422-Jul-10 4:26
makumazan8422-Jul-10 4:26 
QuestionUnable to read bmp and gif files in Silverlight [modified] Pin
yogesh_kumar_agarwal21-Jul-10 23:48
yogesh_kumar_agarwal21-Jul-10 23:48 
QuestionTrouble testing Custom Installation screen [modified] Pin
vikas amin21-Jul-10 8:21
vikas amin21-Jul-10 8:21 
AnswerRe: Trouble testing Custom Installation screen Pin
Abhinav S21-Jul-10 18:29
Abhinav S21-Jul-10 18:29 

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.