View Issue Details

IDProjectCategoryView StatusLast Update
0001122NoesisGUIC++ SDKpublic2019-04-18 18:10
Reporternikobarli Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionopen 
Product Version2.0.2f2 
Target Version2.2.2Fixed in Version2.2.2 
Summary0001122: Errors when loading XAML
Description

From forum discussion: http://www.noesisengine.com/forums/viewtopic.php?f=3&t=1130

The following XAML (modified from the original version found in https://stackoverflow.com/a/11455413/1767995) cannot be loaded by NoesisGUI

    <Grid>
        <Grid.Resources>
            <RoutedUICommand x:Key="MyCommand1" Text="Text" />
            <RoutedUICommand x:Key="MyCommand2" Text="Another Text" />
        </Grid.Resources>

        <Grid.CommandBindings>
            <CommandBinding Command="{StaticResource MyCommand1}" 
                Executed="FirstMethod" />
            <CommandBinding Command="{StaticResource MyCommand2}" 
                Executed="SecondMethod" />
        </Grid.CommandBindings>

        <Grid.InputBindings>
            <KeyBinding Key="Z" Modifiers="Ctrl" Command="{StaticResource MyCommand1}" />
            <KeyBinding Key="H" Modifiers="Alt" Command="{StaticResource MyCommand2}" />
        </Grid.InputBindings>

        <StackPanel>
            <Button x:Name="btn1" Command="{StaticResource MyCommand1}" Content="Click me" />
            <Button x:Name="btn2" Command="{StaticResource MyCommand2}" Content="Click me" />
        </StackPanel>
    </Grid>
  • RoutedUICommand class is not available to be used directly in the xaml.
  • CommandBinding cannot use StaticResources to set the Command property.
PlatformAny

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-06-30 02:47 nikobarli New Issue
2017-08-30 12:27 sfernandez Assigned To => sfernandez
2017-08-30 12:27 sfernandez Status new => assigned
2018-11-01 02:14 jsantos View Status public => private
2018-11-22 20:46 sfernandez View Status private => public
2018-11-22 20:46 sfernandez Platform => Any
2019-04-18 18:10 sfernandez Status assigned => resolved
2019-04-18 18:10 sfernandez Fixed in Version => 2.2.2
2019-04-18 18:10 sfernandez Target Version => 2.2.2