Click here to Skip to main content
15,887,477 members
Home / Discussions / WPF
   

WPF

 
QuestionTemplates for calendar control Pin
priyagee3-Feb-09 18:17
priyagee3-Feb-09 18:17 
AnswerRe: Templates for calendar control Pin
Mark Salsbery3-Feb-09 19:18
Mark Salsbery3-Feb-09 19:18 
QuestionIs there any native WPF Multiselect combobox available ? Pin
Member 57039053-Feb-09 8:19
Member 57039053-Feb-09 8:19 
AnswerRe: Is there any native WPF Multiselect combobox available ? Pin
JS 20084-Feb-09 3:17
JS 20084-Feb-09 3:17 
AnswerRe: Is there any native WPF Multiselect combobox available ? Pin
schiebel-t6-Feb-09 2:26
schiebel-t6-Feb-09 2:26 
QuestionSimple listbox stuff Pin
Ray Cassick3-Feb-09 7:22
Ray Cassick3-Feb-09 7:22 
AnswerRe: Simple listbox stuff Pin
Mark Salsbery3-Feb-09 15:14
Mark Salsbery3-Feb-09 15:14 
QuestionCan´t catch XamlParseException Pin
Czechtim3-Feb-09 1:01
Czechtim3-Feb-09 1:01 
I´ve got problem with XamlParseException in WPF application.
I´m parsing XAML file and I ´m catching XamlParseException (if user try to parse bad XAML), but that isn´t working (can´t catch XamlParseException). I´ve got VisualStudio 2008 and .NET Framework 3.5 SP1 installed.

Does somebody know please how to catch that Exception?

my code:
......
object obj;

try 
{ 
   obj = (object)XamlReader.Load(fs); 
} 
catch (XamlParseException) 
{ 
   MessageBox.Show("Error"); 
   return false; 
} 
....


and here is screen of my problem

That happens when trying to parse xaml file that looks like: (I´m trying to parse xaml file from my WPF project)
<Window x:Class="Administration.Video" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Title="Video"  
        WindowStartupLocation="CenterScreen" 
        SizeToContent="Height" 
        Width="340" 
        Name="This_Color" 
        ResizeMode="CanMinimize" 
        Loaded="This_Color_Loaded"> 
    <Grid> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="*" /> 
            <RowDefinition Height="*" /> 
        </Grid.RowDefinitions> 
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" /> 
        </Grid.ColumnDefinitions> 
        ...... 
            </Grid> 
        </Border> 
    </Grid>        
</Window> 

Questionplotting in WPF Pin
jeshmitha3-Feb-09 0:21
jeshmitha3-Feb-09 0:21 
AnswerRe: plotting in WPF Pin
Pete O'Hanlon3-Feb-09 1:01
mvePete O'Hanlon3-Feb-09 1:01 
QuestionWPF Browser Application ApplicationCommands.Paste Pin
haticeaaaaaa2-Feb-09 21:12
haticeaaaaaa2-Feb-09 21:12 
QuestionUser Controls Rock!!!! Pin
BlitzPackage2-Feb-09 13:06
BlitzPackage2-Feb-09 13:06 
AnswerRe: User Controls Rock!!!! Pin
Mark Salsbery2-Feb-09 16:00
Mark Salsbery2-Feb-09 16:00 
AnswerRe: User Controls Rock!!!! Pin
Pete O'Hanlon2-Feb-09 21:57
mvePete O'Hanlon2-Feb-09 21:57 
GeneralRe: User Controls Rock!!!! Pin
BlitzPackage3-Feb-09 7:27
BlitzPackage3-Feb-09 7:27 
GeneralRe: User Controls Rock!!!! Pin
Pete O'Hanlon3-Feb-09 8:49
mvePete O'Hanlon3-Feb-09 8:49 
AnswerRe: User Controls Rock!!!! Pin
Jammer5-Feb-09 6:46
Jammer5-Feb-09 6:46 
Question"Silverlight" vs "WPF Web Browser App" Pin
devvvy1-Feb-09 16:48
devvvy1-Feb-09 16:48 
AnswerRe: "Silverlight" vs "WPF Web Browser App" Pin
Pete O'Hanlon2-Feb-09 4:56
mvePete O'Hanlon2-Feb-09 4:56 
AnswerRe: "Silverlight" vs "WPF Web Browser App" Pin
salon9-Feb-09 21:55
salon9-Feb-09 21:55 
QuestionDependencyProperty problem Pin
schiebel-t31-Jan-09 7:58
schiebel-t31-Jan-09 7:58 
AnswerRe: DependencyProperty problem Pin
Insincere Dave31-Jan-09 11:13
Insincere Dave31-Jan-09 11:13 
AnswerRe: DependencyProperty problem Pin
Pete O'Hanlon1-Feb-09 8:30
mvePete O'Hanlon1-Feb-09 8:30 
QuestionHow to Change the Resources at runtime in WPF Application? Pin
sankarlearns30-Jan-09 13:40
sankarlearns30-Jan-09 13:40 
AnswerRe: How to Change the Resources at runtime in WPF Application? Pin
Jammer1-Feb-09 10:40
Jammer1-Feb-09 10:40 

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.