This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Windows; | |
| public static class ItemsControl | |
| { | |
| public static readonly DependencyProperty EnumSourceProperty = DependencyProperty.RegisterAttached( | |
| "EnumSource", | |
| typeof(Type), | |
| typeof(ItemsControl), | |
| new PropertyMetadata(default(Type), PropertyChangedCallback)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Assert.AreEqual($END$); // Name this ae |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Windows; | |
| using System.Windows.Data; | |
| public class DependencyPropertyListener : DependencyObject | |
| { | |
| private static readonly Guid Default = new Guid(); // Want a signal if null | |
| public static readonly DependencyProperty SourceProperty = DependencyProperty.Register( | |
| "Source", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Automation | |
| { | |
| public static void SimulateClick(this CheckBox checkBox) | |
| { | |
| checkBox.RaiseMouseButton(UIElement.PreviewMouseLeftButtonDownEvent, MouseButton.Left, 1) | |
| .RaiseMouseButton(Mouse.PreviewMouseDownEvent, MouseButton.Left, 1) | |
| .RaiseKeyboardFocusEvent(Keyboard.PreviewGotKeyboardFocusEvent)// old: System.Windows.Controls.TextBox new: System.Windows.Controls.CheckBox Content: IsChecked:False | |
| // .SetProp(UIElement.IsKeyboardFocusWithinProperty, True) | |
| // .SetProp(UIElement.IsKeyboardFocusedProperty, True) | |
| .RaiseRoutedEvent(FocusManager.GotFocusEvent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Remove Copyable icopyable & idirty | |
| Undocache notifying on dirty | |
| Cache + diff | |
| Test that inpc signals for all props for class | |
| Reset undo for textbox/updowns on undo/save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Grid TextBlock.FontSize="23"> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="Auto" /> | |
| <ColumnDefinition Width="Auto" /> | |
| <ColumnDefinition Width="*" /> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="50" /> | |
| <RowDefinition Height="*" /> | |
| <RowDefinition Height="Auto" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Test, Explicit] | |
| public void ParseChm() | |
| { | |
| foreach (var file in Directory.EnumerateFiles(@"C:\Git\ComApiExplorer\Apis\decompile\HTML")) | |
| { | |
| if (System.IO.Path.GetExtension(file) != ".htm") | |
| { | |
| continue; | |
| } | |
| var document = new HtmlAgilityPack.HtmlDocument(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Grid> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="Auto" /> | |
| <RowDefinition /> | |
| <RowDefinition Height="Auto" /> | |
| </Grid.RowDefinitions> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="Auto" /> | |
| <ColumnDefinition /> | |
| </Grid.ColumnDefinitions> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Specialized; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| public static class ListBoxExt | |
| { | |
| public static readonly DependencyProperty SelectedItemsBindableProperty = DependencyProperty.RegisterAttached( | |
| "SelectedItemsBindable", | |
| typeof(IList), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class TokenReader | |
| { | |
| private readonly Token[] _tokens; | |
| private readonly int _startAt; | |
| public TokenReader(Token[] tokens, int startAt) | |
| { | |
| _tokens = tokens; | |
| _startAt = startAt; | |
| } | |
| public int Index { get; private set; } |