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
sudo dotnet workload install maui |
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
namespace MauiApp1; | |
public partial class MainPage : ContentPage { | |
int count = 0; | |
public MainPage() { | |
InitializeComponent(); | |
} | |
private void OnCounterClicked(object sender, EventArgs e) { |
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.ComponentModel | |
Imports System.Globalization | |
Imports System.Runtime.CompilerServices | |
Public Enum SampleEnum | |
<Description("なし")> | |
None |
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.Resources> | |
<ObjectDataProvider x:Key="sampleenums" MethodName="GetValues" ObjectType="{x:Type local:SampleEnum}"> | |
<ObjectDataProvider.MethodParameters> | |
<x:Type TypeName="local:SampleEnum"/> | |
</ObjectDataProvider.MethodParameters> | |
</ObjectDataProvider> | |
<local:ModeConverter x:Key="modeConverter"/> | |
</Window.Resources> | |
<Grid> | |
<ComboBox x:Name="comboBox" Height="26" Width="150" |
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.Windows; | |
namespace DotNetBrowserSample { | |
public partial class MainWindow : Window { | |
public MainWindow() { | |
InitializeComponent(); | |
} | |
private void Button_Click(object sender, RoutedEventArgs e) { | |
browser.Browser.LoadURL(textBox.Text); |
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="DotNetBrowserSample.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:browser="clr-namespace:DotNetBrowser.WPF;assembly=DotNetBrowser" | |
Title="DotNetBrowserSample" > | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="24"/> | |
<RowDefinition /> | |
</Grid.RowDefinitions> |
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 Infragistics.Windows.DataPresenter; | |
using Infragistics.Windows.DataPresenter.Events; | |
/// <summary> | |
/// レコードのフィルタリング完了時のイベント | |
/// </summary> | |
private void XamDataGrid_RecordFilterChanged(object sender, RecordFilterChangedEventArgs e) { | |
// 保留中の変更を適用します | |
e.RecordFilter.ApplyPendingFilter(); |
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.Windows.Threading; | |
using Infragistics.Windows.DataPresenter; | |
using Infragistics.Windows.DataPresenter.Events; | |
/// <summary> | |
/// レコードのフィルタリング完了時のイベント | |
/// </summary> | |
private void XamDataGrid_RecordFilterChanged(object sender, RecordFilterChangedEventArgs e) { | |
// 当方のシステムでは ContextIdle でうまくいった。 |
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 Infragistics.Windows.DataPresenter; | |
using Infragistics.Windows.DataPresenter.Events; | |
/// <summary> | |
/// レコードのフィルタリング完了時のイベント(必要箇所のみ抜粋) | |
/// </summary> | |
private void XamDataGrid_RecordFilterChanged(object sender, RecordFilterChangedEventArgs e) { | |
var presenter = sender as DataPresenterBase; | |
if (presenter != null) { |
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 PersistenceSample2.Views { | |
public partial class MainWindow : Window { | |
private string _defaultLayout = ""; | |
private string _saveLayout = ""; | |
public MainWindow() { | |
InitializeComponent(); |