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

WPF

 
GeneralRe: slverlight 3.0 Pin
Pete O'Hanlon19-Mar-12 3:00
subeditorPete O'Hanlon19-Mar-12 3:00 
GeneralRe: slverlight 3.0 Pin
manivinof519-Mar-12 3:05
manivinof519-Mar-12 3:05 
AnswerRe: slverlight 3.0 Pin
Abhinav S21-Mar-12 5:16
Abhinav S21-Mar-12 5:16 
QuestionComponenetOne Flexgrid for WPF as user control Pin
Greeshma M J19-Mar-12 2:20
Greeshma M J19-Mar-12 2:20 
QuestionJust a stray thought Pin
Mycroft Holmes18-Mar-12 16:22
professionalMycroft Holmes18-Mar-12 16:22 
AnswerRe: Just a stray thought Pin
Paul Daniel Ruston19-Mar-12 10:32
Paul Daniel Ruston19-Mar-12 10:32 
GeneralRe: Just a stray thought Pin
Mycroft Holmes19-Mar-12 13:53
professionalMycroft Holmes19-Mar-12 13:53 
QuestionRestore object's properties using XAMLReader Pin
Tryxo17-Mar-12 19:41
Tryxo17-Mar-12 19:41 
Hi, I am using the following code below to save and load the changes a user makes to shapes on a canvas (called 'myCanvas'). So I use the XamlWriter to save the entire Canvas to a file and the XamlReader to read. The XamlWriter writes appropriately but after calling the XamlReader the Canvas does not update with the saved content.
Am I missing a step?
C#
private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            FileStream fs = new FileStream("savedproperties.xml", FileMode.Open);
            myCanvas = (Canvas)XamlReader.Load(fs);
        }

        private void Window_Closed(object sender, EventArgs e)
        {
            FileStream fs = new FileStream("savedproperties.xml", FileMode.Create);
            XamlWriter.Save(myCanvas, fs);
        }

QuestionHow to Fill a shape with vertical and/or horizontal lines Pin
Tryxo17-Mar-12 18:14
Tryxo17-Mar-12 18:14 
AnswerRe: How to Fill a shape with vertical and/or horizontal lines Pin
Abhinav S18-Mar-12 21:11
Abhinav S18-Mar-12 21:11 
GeneralRe: How to Fill a shape with vertical and/or horizontal lines Pin
Tryxo23-Mar-12 11:58
Tryxo23-Mar-12 11:58 
QuestionWPF ViewModel - Saving user Preferences Pin
Kevin Marois17-Mar-12 12:49
professionalKevin Marois17-Mar-12 12:49 
AnswerRe: WPF ViewModel - Saving user Preferences Pin
Mycroft Holmes17-Mar-12 16:01
professionalMycroft Holmes17-Mar-12 16:01 
QuestionHow To Create This Look Pin
Kevin Marois16-Mar-12 14:56
professionalKevin Marois16-Mar-12 14:56 
AnswerRe: How To Create This Look Pin
Mycroft Holmes16-Mar-12 15:12
professionalMycroft Holmes16-Mar-12 15:12 
AnswerRe: How To Create This Look Pin
Richard MacCutchan16-Mar-12 23:35
mveRichard MacCutchan16-Mar-12 23:35 
QuestionDataGrid Dynamic Data Pin
michaelgr116-Mar-12 6:03
michaelgr116-Mar-12 6:03 
QuestionTileLayout control Pin
Nitin20TechBLR15-Mar-12 19:51
Nitin20TechBLR15-Mar-12 19:51 
QuestionUsing C# dependency property in XAML Triggers Pin
Prasoon Chaudhary15-Mar-12 1:30
Prasoon Chaudhary15-Mar-12 1:30 
AnswerRe: Using C# dependency property in XAML Triggers Pin
George Nistor15-Mar-12 8:00
George Nistor15-Mar-12 8:00 
AnswerRe: Using C# dependency property in XAML Triggers Pin
Pete O'Hanlon15-Mar-12 8:35
subeditorPete O'Hanlon15-Mar-12 8:35 
GeneralRe: Using C# dependency property in XAML Triggers Pin
Prasoon Chaudhary16-Mar-12 0:38
Prasoon Chaudhary16-Mar-12 0:38 
AnswerRe: Using C# dependency property in XAML Triggers Pin
George Nistor16-Mar-12 0:29
George Nistor16-Mar-12 0:29 
GeneralRe: Using C# dependency property in XAML Triggers Pin
Prasoon Chaudhary16-Mar-12 0:40
Prasoon Chaudhary16-Mar-12 0:40 
QuestionWhat Does This Do? Pin
Kevin Marois13-Mar-12 13:53
professionalKevin Marois13-Mar-12 13:53 

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.