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
| C#でも有効なのかなーと思ってたんだけど、C++だけっぽい。 | |
| 知らなかった。。 | |
| https://msdn.microsoft.com/ja-jp/library/cyhcc7zc(v=vs.110).aspx | |
| [実行時に、ビルドまたは配置のエラーが発生したとき] | |
| [ビルド] のメニューからビルドを開始するときにビルド エラーが発生すると、メッセージが表示されます。 アプリケーションを起動して続行するかどうかをビルド エラーが発生するたびにメッセージが表示されるかどうか、および指定できます。 メッセージを表示するかどうかを動作がメッセージが表示されない場合は必要であることを指定するには、このオプションを使用します。 | |
| メモ メモ | |
| このオプションは、Visual C++ プロジェクトにのみ適用されます。 |
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
| <!-- ぴったりだと描画される --> | |
| <Line X1="0" X2="125000" Y1="1" Y2="2" StrokeThickness="1" Stroke="Black"/> | |
| <!-- ちょっとでも超えると描画されない。--> | |
| <Line X1="0" X2="125001" Y1="1" Y2="2" StrokeThickness="1" Stroke="Black"/> | |
| <!-- Tips:Lineを引くオブジェクトを分割することができるのであれば、 | |
| 分割したPanelそれぞれに対してLineを引くことも検討するべきかと。 | |
| ただ、オブジェクトが増えるとRenderingのパフォーマンスが悪くなるため、 | |
| トレードオフがつきまとうため、妥当点の模索が必要。--> |
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
| // http://csfun.blog49.fc2.com/blog-entry-41.html | |
| public void Test() | |
| { | |
| InitializeComponent(); | |
| // InitializeComponentの処理が終了した時点ではレイアウトシステムがまだ処理を | |
| // 完了していないため、Dispatcher.BeginInvokeでAucualHogeHogeをセットするようにする。 | |
| Dispatcher.BeginInvoke( | |
| () => | |
| { |
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
| <!-- http://stackoverflow.com/questions/14936002/dotted-border-around-a-button --> | |
| <Border x:Name="MyBorderedButton" Width="101" Height="31" BorderThickness="2" > | |
| <Border.BorderBrush> | |
| <VisualBrush> | |
| <VisualBrush.Visual> | |
| <Rectangle StrokeDashArray="4 2" | |
| Stroke="Red" | |
| StrokeThickness="2" | |
| RadiusX="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=CornerRadius.TopRight}" | |
| RadiusY="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=CornerRadius.BottomLeft}" |
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
| <Window MouseDoubleClick="Window_MouseDoubleClick"> | |
| <Canvas> | |
| <Button Click="Button_Click" PreviewMouseDoubleClick="Button_MouseDoubleClick">Click Me!</Button> | |
| </Canvas> | |
| </Window> |
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
| <!-- ContentControlで囲って、MouseDoubleClickを宣言する。 --> | |
| <ContentControl MouseDoubleClick="OnDoubleClick"> | |
| <Border Margin="10" BorderBrush="Black" BorderThickness="2"> | |
| <Grid Margin="4"> | |
| <Rectangle Fill="Red" /> | |
| <TextBlock Text="Hello" FontSize="15" /> | |
| </Grid> | |
| </Border> | |
| </ContentControl> |
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
| // memo | |
| // http://grabacr.net/archives/1240 | |
| // https://jacobaloysious.wordpress.com/2013/08/19/mvvm-using-contenttemplateselector-in-tab-control-view/ | |
| // https://msdn.microsoft.com/ja-jp/library/system.windows.controls.itemscontrol.itemcontainerstyleselector(v=vs.110).aspx | |
| // http://okazuki.hatenablog.com/entry/2014/08/25/164331 | |
| // https://msdn.microsoft.com/ja-jp/library/system.windows.controls.tabcontrol.contenttemplateselector(v=vs.110).aspx |
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
| <DataGridTextColumn IsReadOnly="{Binding IsReferenceInactive}"/> <!-- NOP --> | |
| <DataGridTextColumn IsReadOnly="True"/> <!-- Works as expected, cell is r/o --> |
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
| <Window x:Class="ListBoxTest.MainWindow" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" | |
| xmlns:my ="clr-namespace:TestAikazu" | |
| Title="MainWindow" Height="350" Width="525"> | |
| <Grid> | |
| <ListBox x:Name="Text"> | |
| <i:Interaction.Behaviors> | |
| <my:ListBoxSelectionBehavior/> |