Skip to content

Instantly share code, notes, and snippets.

<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
{
<UserControl x:Class="MaterialDesign.Dialog.Example.Dialogs.MessageDialog"
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.Dialogs"
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.Dialogs.ViewModels"
d:DataContext="{d:DesignInstance {x:Type viewModels:MessageDialogViewModel},
package com.mc.sample.timbersample;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.mc.sample.timbersample.Logs.Logger;
public class MainActivity extends AppCompatActivity {
@Override
package com.mc.sample.timbersample.Logs;
import timber.log.Timber;
/**
* アプリケーション固有のログ出力機能クラスです。
*.このように、基本的にログの出力機構をラップして作成する。
*/
public class Logger {
package com.mc.sample.timbersample.Logs;
import android.util.Log;
import timber.log.Timber;
/**
* ログの出力先を制御するための機能クラスです。
* @remarks 基本的にリリースモードはこのように独自のログ出力機構が必要になる。
*/
<Window x:Class="MediaPlayerNoiseApp.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:MediaPlayerNoiseApp"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="525"
Height="350"
Loaded="MainWindow_OnLoaded"
using System.Windows;
namespace MediaPlayerNoiseApp
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Documents;
using System.Windows.Media;