This file contains 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="Helloworld1.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
Hello World | |
</Window> |
This file contains 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; | |
namespace ConsoleApplication3 { | |
class Program { | |
[STAThread] | |
static void Main(string[] args) { | |
var window = new Window() { Content = "Hello world" }; | |
window.ShowDialog(); | |
} |
This file contains 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.Controls; | |
namespace ConsoleApplication3 { | |
class Program { | |
[STAThread] | |
static void Main(string[] args) { | |
var window = new Window() { | |
Content = new TextBlock() { |
This file contains 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; | |
namespace MenuButtonApp.Models { | |
public class Person { | |
public Int32 Id { get; set; } | |
public string Name { get; set; } | |
public Int32 Age { get; set; } | |
} | |
} |
This file contains 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
Option Explicit On | |
Option Strict On | |
Namespace Models | |
Public Class Person | |
Public Property Id() As Int32 | |
Public Property Name() As String | |
Public Property Age() As Int32 | |
End Class | |
End Namespace |
This file contains 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 Livet; | |
using Livet.Commands; | |
using MenuButtonApp2.Models; | |
using System.Collections.ObjectModel; | |
using System.Windows; | |
namespace MenuButtonApp2.ViewModels { | |
public class MainWindowViewModel : ViewModel { | |
public MainWindowViewModel() { | |
this.Persons = new ObservableCollection<Person>(); |
This file contains 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
Option Explicit On | |
Option Strict On | |
Imports System.Collections.ObjectModel | |
Imports MenuButtonApp.Models | |
Namespace ViewModels | |
Public Class MainWindowViewModel | |
Inherits ViewModel |
This file contains 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
<!-- MainWindow.xaml --> | |
<Window x:Class="MenuButtonApp.Views.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:ei="http://schemas.microsoft.com/expression/2010/interactions" | |
xmlns:l="http://schemas.livet-mvvm.net/2011/wpf" | |
xmlns:v="clr-namespace:MenuButtonApp2.Views" | |
xmlns:vm="clr-namespace:MenuButtonApp2.ViewModels" | |
Title="MainWindow" Height="350" Width="525"> |
This file contains 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
<Style x:Key="TextBoxStyle1" TargetType="{x:Type TextBox}"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="{x:Type TextBox}"> | |
<Border> | |
<Grid> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition /> | |
<ColumnDefinition Width="24" /> | |
</Grid.ColumnDefinitions> |
This file contains 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="ReportWindow" | |
・・・・・中略・・・・・ | |
<Window.Resources> | |
<ResourceDictionary> | |
<ResourceDictionary.MergedDictionaries> | |
<ResourceDictionary Source=".\DefaultWPFViewerTemplates.xaml" /> | |
</ResourceDictionary.MergedDictionaries> | |
</ResourceDictionary> | |
</Window.Resources> | |
・・・・・中略・・・・・ |
OlderNewer