Skip to content

Commit

Permalink
Add example regions
Browse files Browse the repository at this point in the history
  • Loading branch information
NotYoojun committed Oct 30, 2024
1 parent 42cc983 commit 5068ce4
Show file tree
Hide file tree
Showing 72 changed files with 709 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
<local:ControlExample.Example>
<DatePicker ui:ControlHelper.Header="Calendar" ui:ControlHelper.PlaceholderText="Pick a date" />
</local:ControlExample.Example>
<local:ControlExample.Xaml>
<sys:String>
&lt;DatePicker ui:ControlHelper.PlaceholderText=&quot;Pick a date&quot; ui:ControlHelper.Header=&quot;Calendar&quot; /&gt;
</sys:String>
</local:ControlExample.Xaml>
</local:ControlExample>
</StackPanel>
</ui:Page>
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,14 @@ public CalendarDatePickerPage()
{
InitializeComponent();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution1, Substitution2 };
ExampleAccessories.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
});
Example1.Substitutions = new ObservableCollection<ControlExampleSubstitution> { Substitution1, Substitution2, Substitution3 };
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,15 @@ private void Option_Unchecked(object sender, RoutedEventArgs e)
SetCheckedState();
}
#endregion

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,15 @@ private void Combo3_Loaded(object sender, RoutedEventArgs e)
{
Combo3.SelectedIndex = 2;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,15 @@ private void MyImageButton_Click(object sender, RoutedEventArgs e)
{
ShowMenu((sender as Button).IsMouseOver);
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution1, Substitution2 };
Example3.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@ private async void Compact_Checked(object sender, RoutedEventArgs e)
page?.CopyState(oldPage);
}
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,15 @@ private async void ShowDialog_Click(object sender, RoutedEventArgs e)
DialogResult.Text = "User cancelled the dialog";
}
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,15 @@ public ContextMenuPage()
{
InitializeComponent();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,15 @@ private void LoadTimeTextBlock_MouseLeftButtonUp(object sender, MouseButtonEvent
{
LoadTimeTextBlock.Visibility = Visibility.Collapsed;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@ private void BlackoutDatesInPast(object sender, RoutedEventArgs e)
{
datePicker.BlackoutDates.AddDatesInPast();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ public DropDownButtonPage()
{
InitializeComponent();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution> { Substitution1, Substitution2, Substitution3, Substitution4 };
Example1.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@ protected override void OnNavigatedTo(NavigationEventArgs e)

Items = ControlInfoDataSource.Instance.Groups.Take(3).SelectMany(g => g.Items).ToList();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@ private void DeleteConfirmation_Click(object sender, RoutedEventArgs e)
f.Hide();
}
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
10 changes: 10 additions & 0 deletions source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/GridPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
});
Example1.Substitutions = new ObservableCollection<ControlExampleSubstitution> { Substitution1, Substitution2 };
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ public GridSplitterPage()
{
InitializeComponent();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,15 @@ private void ControlExample2_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution1, Substitution2, Substitution3, Substitution4, Substitution5 };
(sender as ControlExample).Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,15 @@ public GroupBoxPage()
{
InitializeComponent();
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution };
Example1.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution };
Example1.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
10 changes: 10 additions & 0 deletions source/iNKORE.UI.WPF.Modern.Gallery/ControlPages/ImagePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,15 @@ private void Page_Loaded(object sender, RoutedEventArgs e)
ObservableCollection<ControlExampleSubstitution> Substitutions = new ObservableCollection<ControlExampleSubstitution>() { Substitution };
Example3.Substitutions = Substitutions;
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,15 @@ private void ValueNumberBox_ValueChanged(NumberBox sender, NumberBoxValueChanged
DynamicInfoBadge.Value = (int)args.NewValue;
}
}

#region Example Code

public void UpdateExampleCode()
{

}

#endregion

}
}
Loading

0 comments on commit 5068ce4

Please sign in to comment.