Skip to content

Instantly share code, notes, and snippets.

<Window x:Class="LiveCharts.Wpf.Example.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:LiveCharts.Wpf.Example"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="800"
Height="450"
resources:
- repo: self
queue:
name: Hosted Ubuntu 1604
steps:
- bash: |
# Write your commands here
# Use the environment variables input below to pass secret variables to this script
util/docker_build.sh ergodox_ez:default
@Iyemon-018
Iyemon-018 / .circleci_config.yml
Created January 24, 2019 12:49
ErgoDox EZ のキーマップをCircle CI でビルドするための設定ファイル
version: 2
jobs:
build:
machine: true
steps:
- checkout
- run:
name: docker build
command: util/docker_build.sh ergodox_ez:default
- store_artifacts:
@Iyemon-018
Iyemon-018 / XamlIslands.Wpf.MapControl.cs
Created December 28, 2018 04:58
MapControl に関するコード
namespace XamlIslands.Wpf
{
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT;
/// <summary>
/// MainWindow.xaml の相互作用ロジック
using System.Windows;
using MaterialDesign.Dialog.Example.Services;
using MaterialDesign.Dialog.Example.ViewModels;
using MaterialDesign.Dialog.Example.Views;
using Prism.Unity;
namespace MaterialDesign.Dialog.Example
{
public class Bootstrapper : UnityBootstrapper
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using System.Windows.Documents;
using System.Windows.Input;
using MaterialDesign.Dialog.Example.Services;
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Threading.Tasks;
using MaterialDesign.Dialog.Example.Dialogs;
using MaterialDesign.Dialog.Example.Dialogs.ViewModels;
using MaterialDesignThemes.Wpf;
namespace MaterialDesign.Dialog.Example.Services
{
public class DialogService : IDialogService
{
using System.Threading.Tasks;
namespace MaterialDesign.Dialog.Example.Services
{
public interface IDialogService
{
Task<bool> Question(string message);
}
}
<Window x:Class="MaterialDesign.Dialog.Example.Views.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MaterialDesign.Dialog.Example.Views"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:viewModels="clr-namespace:MaterialDesign.Dialog.Example.ViewModels"
x:Name="window"
using Prism.Mvvm;
namespace MaterialDesign.Dialog.Example.Dialogs.ViewModels
{
public class MessageDialogViewModel : BindableBase
{
private string _message;
public string Message
{